clang 18.0.0git
|
One of these records is kept for each identifier that is lexed. More...
#include "clang/Basic/IdentifierTable.h"
Public Member Functions | |
IdentifierInfo (const IdentifierInfo &)=delete | |
IdentifierInfo & | operator= (const IdentifierInfo &)=delete |
IdentifierInfo (IdentifierInfo &&)=delete | |
IdentifierInfo & | operator= (IdentifierInfo &&)=delete |
template<std::size_t StrLen> | |
bool | isStr (const char(&Str)[StrLen]) const |
Return true if this is the identifier for the specified string. | |
bool | isStr (llvm::StringRef Str) const |
Return true if this is the identifier for the specified StringRef. | |
const char * | getNameStart () const |
Return the beginning of the actual null-terminated string for this identifier. | |
unsigned | getLength () const |
Efficiently return the length of this identifier info. | |
StringRef | getName () const |
Return the actual identifier string. | |
bool | hasMacroDefinition () const |
Return true if this identifier is #defined to some other value. | |
void | setHasMacroDefinition (bool Val) |
bool | hadMacroDefinition () const |
Returns true if this identifier was #defined to some value at any moment. | |
bool | isDeprecatedMacro () const |
void | setIsDeprecatedMacro (bool Val) |
bool | isRestrictExpansion () const |
void | setIsRestrictExpansion (bool Val) |
bool | isFinal () const |
void | setIsFinal (bool Val) |
tok::TokenKind | getTokenID () const |
If this is a source-language token (e.g. | |
bool | hasRevertedTokenIDToIdentifier () const |
True if revertTokenIDToIdentifier() was called. | |
void | revertTokenIDToIdentifier () |
Revert TokenID to tok::identifier; used for GNU libstdc++ 4.2 compatibility. | |
void | revertIdentifierToTokenID (tok::TokenKind TK) |
tok::PPKeywordKind | getPPKeywordID () const |
Return the preprocessor keyword ID for this identifier. | |
tok::ObjCKeywordKind | getObjCKeywordID () const |
Return the Objective-C keyword ID for the this identifier. | |
void | setObjCKeywordID (tok::ObjCKeywordKind ID) |
unsigned | getBuiltinID () const |
Return a value indicating whether this is a builtin function. | |
void | setBuiltinID (unsigned ID) |
void | clearBuiltinID () |
tok::InterestingIdentifierKind | getInterestingIdentifierID () const |
void | setInterestingIdentifierID (unsigned ID) |
unsigned | getObjCOrBuiltinID () const |
void | setObjCOrBuiltinID (unsigned ID) |
bool | isExtensionToken () const |
get/setExtension - Initialize information about whether or not this language token is an extension. | |
void | setIsExtensionToken (bool Val) |
bool | isFutureCompatKeyword () const |
is/setIsFutureCompatKeyword - Initialize information about whether or not this language token is a keyword in a newer or proposed Standard. | |
void | setIsFutureCompatKeyword (bool Val) |
void | setIsPoisoned (bool Value=true) |
setIsPoisoned - Mark this identifier as poisoned. | |
bool | isPoisoned () const |
Return true if this token has been poisoned. | |
void | setIsCPlusPlusOperatorKeyword (bool Val=true) |
isCPlusPlusOperatorKeyword/setIsCPlusPlusOperatorKeyword controls whether this identifier is a C++ alternate representation of an operator. | |
bool | isCPlusPlusOperatorKeyword () const |
bool | isKeyword (const LangOptions &LangOpts) const |
Return true if this token is a keyword in the specified language. | |
bool | isCPlusPlusKeyword (const LangOptions &LangOpts) const |
Return true if this token is a C++ keyword in the specified language. | |
void * | getFETokenInfo () const |
Get and set FETokenInfo. | |
void | setFETokenInfo (void *T) |
bool | isHandleIdentifierCase () const |
Return true if the Preprocessor::HandleIdentifier must be called on a token of this identifier. | |
bool | isFromAST () const |
Return true if the identifier in its current state was loaded from an AST file. | |
void | setIsFromAST () |
bool | hasChangedSinceDeserialization () const |
Determine whether this identifier has changed since it was loaded from an AST file. | |
void | setChangedSinceDeserialization () |
Note that this identifier has changed since it was loaded from an AST file. | |
bool | hasFETokenInfoChangedSinceDeserialization () const |
Determine whether the frontend token information for this identifier has changed since it was loaded from an AST file. | |
void | setFETokenInfoChangedSinceDeserialization () |
Note that the frontend token information for this identifier has changed since it was loaded from an AST file. | |
bool | isOutOfDate () const |
Determine whether the information for this identifier is out of date with respect to the external source. | |
void | setOutOfDate (bool OOD) |
Set whether the information for this identifier is out of date with respect to the external source. | |
bool | isModulesImport () const |
Determine whether this is the contextual keyword import . | |
void | setModulesImport (bool I) |
Set whether this identifier is the contextual keyword import . | |
bool | isMangledOpenMPVariantName () const |
Determine whether this is the mangled name of an OpenMP variant. | |
void | setMangledOpenMPVariantName (bool I) |
Set whether this is the mangled name of an OpenMP variant. | |
bool | isEditorPlaceholder () const |
Return true if this identifier is an editor placeholder. | |
ReservedIdentifierStatus | isReserved (const LangOptions &LangOpts) const |
Determine whether this is a name reserved for the implementation (C99 7.1.3, C++ [lib.global.names]). | |
ReservedLiteralSuffixIdStatus | isReservedLiteralSuffixId () const |
Determine whether this is a name reserved for future standardization or the implementation (C++ [usrlit.suffix]). | |
StringRef | deuglifiedName () const |
If the identifier is an "uglified" reserved name, return a cleaned form. | |
bool | isPlaceholder () const |
bool | operator< (const IdentifierInfo &RHS) const |
Provide less than operator for lexicographical sorting. | |
Friends | |
class | IdentifierTable |
One of these records is kept for each identifier that is lexed.
This contains information about whether the token was #define'd, is a language keyword, or if it is a front-end token of some sort (e.g. a variable or function name). The preprocessor keeps this information in a set, and all tok::identifier tokens have a pointer to one of these. It is aligned to 8 bytes because DeclarationName needs the lower 3 bits.
Definition at line 106 of file IdentifierTable.h.
|
delete |
|
delete |
|
inline |
Definition at line 337 of file IdentifierTable.h.
StringRef IdentifierInfo::deuglifiedName | ( | ) | const |
If the identifier is an "uglified" reserved name, return a cleaned form.
e.g. _Foo => Foo. Otherwise, just returns the name.
Definition at line 411 of file IdentifierTable.cpp.
References getName().
Referenced by AddTemplateParameterChunks(), and FormatFunctionParameter().
|
inline |
Return a value indicating whether this is a builtin function.
0 is not-built-in. 1+ are specific builtin functions.
Definition at line 326 of file IdentifierTable.h.
References clang::FirstBuiltinID.
Referenced by handleArmBuiltinAliasAttr(), handleBuiltinAliasAttr(), clang::ASTImporter::Import(), and clang::Sema::LookupBuiltin().
|
inline |
Get and set FETokenInfo.
The language front-end is allowed to associate arbitrary metadata with this token.
Definition at line 411 of file IdentifierTable.h.
Referenced by isInterestingIdentifier().
|
inline |
Definition at line 339 of file IdentifierTable.h.
References clang::FirstInterestingIdentifierID, and clang::LastInterestingIdentifierID.
|
inline |
Efficiently return the length of this identifier info.
Definition at line 214 of file IdentifierTable.h.
Referenced by AddObjCKeyValueCompletions(), CheckExtVectorComponent(), getPPKeywordID(), getStandardSelLoc(), and clang::Sema::isCurrentClassNameTypo().
|
inline |
Return the actual identifier string.
Definition at line 217 of file IdentifierTable.h.
Referenced by clang::Sema::ActOnFinishKNRParamDeclarations(), clang::Sema::ActOnGCCAsmStmt(), clang::Sema::ActOnPragmaMSAllocText(), clang::Sema::ActOnPragmaRedefineExtname(), clang::Sema::ActOnPragmaVisibility(), clang::Sema::ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope(), clang::Sema::ActOnTemplateIdType(), clang::comments::Sema::actOnTParamCommandParamNameArg(), clang::Sema::ActOnUsingEnumDeclaration(), clang::TypoCorrectionConsumer::addCorrection(), AddDefinedMacroToHash(), clang::ODRHash::AddIdentifierInfo(), AddObjCKeyValueCompletions(), clang::ento::AnyFunctionCall::argumentsMayEscape(), attributeAcceptsExprPack(), attributeHasIdentifierArg(), attributeHasVariadicIdentifierArg(), attributeIsTypeArgAttr(), attributeParsedArgsUnevaluated(), attributeStringLiteralListArg(), attributeTreatsKeywordThisAsIdentifier(), clang::ento::RetainSummaryManager::canEval(), checkAvailabilityAttr(), clang::Sema::CheckLiteralOperatorDeclaration(), clang::Sema::checkLiteralOperatorId(), clang::Sema::checkStringLiteralArgumentAttr(), clang::Sema::CodeCompleteAttribute(), clang::Sema::CodeCompleteObjCMethodDeclSelector(), clang::DeclarationName::compare(), clang::ExtVectorElementExpr::containsDuplicateElements(), clang::CodeCompletionResult::CreateCodeCompletionStringForMacro(), createOverloadsForFixedParams(), clang::Sema::DeclApplyPragmaWeak(), deuglifiedName(), clang::Sema::DiagnoseUnknownTemplateName(), clang::Sema::DiagnoseUnknownTypeName(), clang::MacroInfo::dump(), EvaluateValue(), fixParamWithSpan(), clang::ento::coreFoundation::followsCreateRule(), clang::Diagnostic::FormatDiagnostic(), clang::index::generateUSRForMacro(), clang::Selector::getAsString(), getCalleeName(), clang::ento::CheckerContext::getCalleeName(), clang::ObjCPropertyDecl::getDefaultSynthIvarName(), clang::Sema::getDestructorName(), clang::ExtVectorElementExpr::getEncodedElementAccess(), GetFullTypeForDeclarator(), clang::IdentifierTable::getFutureCompatDiagKind(), getIdentifier(), clang::ento::ExprEngine::getInitialState(), clang::Selector::getInstTypeMethodFamily(), getMangledNameImpl(), clang::NamedDecl::getName(), clang::ObjCImplementationDecl::getName(), clang::MacroExpansion::getName(), clang::Selector::getNameForSlot(), clang::Sema::getTypeName(), handleArgumentWithTypeTagAttr(), handleAvailabilityAttr(), handleBlocksAttr(), handleCallableWhenAttr(), handleCallbackAttr(), handleCFGuardAttr(), handleConsumableAttr(), handleCPUSpecificAttr(), handleEnforceTCBAttr(), handleEnumExtensibilityAttr(), handleFormatAttr(), handleHLSLResourceBindingAttr(), clang::Preprocessor::HandleIdentifier(), handleLoopHintAttr(), handleNoSanitizeSpecificAttr(), handleObjCMethodFamilyAttr(), HandleOpenCLAccessAttr(), handleOpenCLAccessAttr(), handleParamTypestateAttr(), clang::PragmaNamespace::HandlePragma(), clang::Preprocessor::HandlePragmaModuleBuild(), clang::Preprocessor::HandlePragmaPopMacro(), handleReturnTypestateAttr(), handleSetTypestateAttr(), handleSwiftAsyncAttr(), handleSwiftAsyncError(), handleSwiftError(), handleSwiftNewType(), handleTestTypestateAttr(), clang::Sema::ImplicitlyDefineFunction(), clang::ASTImporter::Import(), clang::CallGraph::includeCalleeInGraph(), InNamespace(), clang::Sema::InventAbbreviatedTemplateParameterTypeName(), isAttributeLateParsed(), IsBuiltInOrStandardCXX11Attribute(), clang::ento::CheckerContext::isCLibraryFunction(), isConfigurationPattern(), clang::Sema::isCurrentClassNameTypo(), clang::ento::iterator::isEmplaceCall(), clang::ento::iterator::isEraseAfterCall(), clang::ento::iterator::isEraseCall(), clang::ento::iterator::isInsertCall(), clang::ento::RetainSummaryManager::isKnownSmartPointer(), isReferenceCountingPointerDestructor(), isReserved(), isReservedLiteralSuffixId(), IsStructurallyEquivalent(), isTargetArch(), isTargetEnvironment(), isTargetOS(), isTargetVariantEnvironment(), isTargetVariantOS(), isTargetVendor(), clang::Sema::LookupBuiltin(), clang::detail::MacroExpansionRangeRecorder::MacroExpands(), clang::MangleContext::mangleName(), clang::Sema::mergeAvailabilityAttr(), operator<(), parseDeclareSimdClauses(), clang::Parser::ParseUnqualifiedId(), PragmaLoopHintString(), clang::DeclarationName::print(), clang::NestedNameSpecifier::print(), PrintMacroDefinition(), clang::RewriteMacrosInInput(), rewriteToNSEnumDecl(), rewriteToNSMacroDecl(), clang::Sema::setTagNameForLinkagePurposes(), shouldWarnOnMacroDef(), TryNamespaceTypoCorrection(), clang::ASTReader::updateOutOfDateIdentifier(), ValidateObjCLiteralInterfaceDecl(), and clang::JSONNodeDumper::VisitMacroQualifiedType().
|
inline |
Return the beginning of the actual null-terminated string for this identifier.
Definition at line 211 of file IdentifierTable.h.
Referenced by CheckExtVectorComponent(), clang::Preprocessor::dumpMacroInfo(), clang::LabelStmt::getName(), and getPPKeywordID().
|
inline |
Return the Objective-C keyword ID for the this identifier.
For example, 'class' will return tok::objc_class if ObjC is enabled.
Definition at line 313 of file IdentifierTable.h.
References clang::FirstObjCKeywordID, and clang::LastObjCKeywordID.
Referenced by clang::Token::getObjCKeywordID().
|
inline |
Definition at line 353 of file IdentifierTable.h.
Referenced by isInterestingIdentifier().
tok::PPKeywordKind IdentifierInfo::getPPKeywordID | ( | ) | const |
Return the preprocessor keyword ID for this identifier.
For example, "define" will return tok::pp_define.
Definition at line 419 of file IdentifierTable.cpp.
References CASE, getLength(), getNameStart(), and HASH.
Referenced by clang::Preprocessor::CheckMacroName(), diagnoseAutoModuleImport(), and clang::Preprocessor::HandleDirective().
|
inline |
If this is a source-language token (e.g.
'for'), this API can be used to cause the lexer to map identifiers to source-language tokens.
Definition at line 283 of file IdentifierTable.h.
Referenced by clang::Sema::ActOnIdExpression(), DiagnoseCallingConvCast(), clang::Preprocessor::HandleIdentifier(), isKeyword(), IsValidIdentifier(), clang::TokenLexer::Lex(), clang::CompilerInstance::loadModule(), clang::Preprocessor::LookUpIdentifierInfo(), clang::serialization::reader::ASTIdentifierLookupTrait::ReadData(), and clang::syntax::tokenize().
|
inline |
Returns true if this identifier was #defined to some value at any moment.
In this case there should be an entry for the identifier in the macro history table in Preprocessor.
Definition at line 248 of file IdentifierTable.h.
Referenced by clang::Preprocessor::getLocalMacroDirectiveHistory(), clang::Preprocessor::getMacroDefinitionAtLoc(), and isInterestingIdentifier().
|
inline |
Determine whether this identifier has changed since it was loaded from an AST file.
Definition at line 429 of file IdentifierTable.h.
|
inline |
Determine whether the frontend token information for this identifier has changed since it was loaded from an AST file.
Definition at line 441 of file IdentifierTable.h.
|
inline |
Return true if this identifier is #defined to some other value.
Definition at line 223 of file IdentifierTable.h.
Referenced by clang::Preprocessor::getLocalMacroDirective(), clang::Preprocessor::getMacroDefinition(), clang::Preprocessor::getMacroInfo(), clang::Preprocessor::isMacroDefined(), clang::NSAPI::isMacroDefined(), and clang::Preprocessor::isMacroDefinedInLocalModule().
|
inline |
True if revertTokenIDToIdentifier() was called.
Definition at line 286 of file IdentifierTable.h.
Referenced by isInterestingIdentifier().
bool IdentifierInfo::isCPlusPlusKeyword | ( | const LangOptions & | LangOpts | ) | const |
Return true if this token is a C++ keyword in the specified language.
Returns true if the identifier represents a C++ keyword in the specified language.
Definition at line 353 of file IdentifierTable.cpp.
References isKeyword().
|
inline |
Definition at line 400 of file IdentifierTable.h.
Referenced by clang::Preprocessor::CheckMacroName(), EvaluateValue(), and clang::serialization::reader::ASTIdentifierLookupTrait::ReadData().
|
inline |
Definition at line 252 of file IdentifierTable.h.
|
inline |
Return true if this identifier is an editor placeholder.
Editor placeholders are produced by the code-completion engine and are represented as characters between '<#' and '#>' in the source code. An example of auto-completed call with a placeholder parameter is shown below:
Definition at line 492 of file IdentifierTable.h.
References getName().
Referenced by clang::Sema::ActOnIdExpression(), clang::Sema::BuildCXXNestedNameSpecifier(), and clang::Sema::DiagnoseUnknownTypeName().
|
inline |
get/setExtension - Initialize information about whether or not this language token is an extension.
This controls extension warnings, and is only valid if a custom token ID is set.
Definition at line 359 of file IdentifierTable.h.
Referenced by clang::Preprocessor::HandleIdentifier(), and clang::serialization::reader::ASTIdentifierLookupTrait::ReadData().
|
inline |
Definition at line 276 of file IdentifierTable.h.
|
inline |
Return true if the identifier in its current state was loaded from an AST file.
Definition at line 423 of file IdentifierTable.h.
Referenced by clang::Preprocessor::appendMacroDirective(), clang::Preprocessor::HandlePragmaPoison(), and markIdentifierFromAST().
|
inline |
is/setIsFutureCompatKeyword - Initialize information about whether or not this language token is a keyword in a newer or proposed Standard.
This controls compatibility warnings, and is only true when not parsing the corresponding Standard. Once a compatibility problem has been diagnosed with this keyword, the flag will be cleared.
Definition at line 373 of file IdentifierTable.h.
Referenced by clang::IdentifierTable::getFutureCompatDiagKind(), and clang::Preprocessor::HandleIdentifier().
|
inline |
Return true if the Preprocessor::HandleIdentifier must be called on a token of this identifier.
If this returns false, we know that HandleIdentifier will not affect the token.
Definition at line 419 of file IdentifierTable.h.
Referenced by clang::TokenLexer::Lex().
bool IdentifierInfo::isKeyword | ( | const LangOptions & | LangOpts | ) | const |
Return true if this token is a keyword in the specified language.
Returns true if the identifier represents a keyword in the specified language.
Definition at line 341 of file IdentifierTable.cpp.
References getTokenID(), and getTokenKwStatus().
Referenced by DiagnoseCallingConvCast(), isConfigurationPattern(), isCPlusPlusKeyword(), and shouldWarnOnMacroDef().
|
inline |
Determine whether this is the mangled name of an OpenMP variant.
Definition at line 478 of file IdentifierTable.h.
|
inline |
Determine whether this is the contextual keyword import
.
Definition at line 466 of file IdentifierTable.h.
Referenced by clang::Preprocessor::HandleIdentifier().
|
inline |
Determine whether the information for this identifier is out of date with respect to the external source.
Definition at line 453 of file IdentifierTable.h.
Referenced by clang::HeaderFileInfo::getControllingMacro(), clang::Preprocessor::getLeafModuleMacros(), clang::Preprocessor::HandleIdentifier(), isTrivialSingleTokenExpansion(), and clang::ASTReader::ReadDefinedMacros().
|
inline |
Definition at line 507 of file IdentifierTable.h.
Referenced by clang::Sema::ActOnDecompositionDeclarator(), and clang::Sema::ActOnVariableDeclarator().
|
inline |
Return true if this token has been poisoned.
Definition at line 393 of file IdentifierTable.h.
Referenced by clang::Preprocessor::HandleIdentifier(), clang::Preprocessor::HandlePragmaPoison(), isInterestingIdentifier(), clang::TokenLexer::Lex(), and clang::VariadicMacroScopeGuard::VariadicMacroScopeGuard().
ReservedIdentifierStatus IdentifierInfo::isReserved | ( | const LangOptions & | LangOpts | ) | const |
Determine whether this
is a name reserved for the implementation (C99 7.1.3, C++ [lib.global.names]).
Definition at line 366 of file IdentifierTable.cpp.
References clang::ContainsDoubleUnderscore, getName(), clang::NotReserved, clang::StartsWithDoubleUnderscore, clang::StartsWithUnderscoreAtGlobalScope, and clang::StartsWithUnderscoreFollowedByCapitalLetter.
Referenced by clang::Sema::checkLiteralOperatorId(), DiagReservedModuleName(), clang::NamedDecl::isReserved(), shouldWarnOnMacroDef(), and shouldWarnOnMacroUndef().
ReservedLiteralSuffixIdStatus IdentifierInfo::isReservedLiteralSuffixId | ( | ) | const |
Determine whether this
is a name reserved for future standardization or the implementation (C++ [usrlit.suffix]).
Definition at line 399 of file IdentifierTable.cpp.
References clang::ContainsDoubleUnderscore, getName(), clang::NotReserved, and clang::NotStartsWithUnderscore.
Referenced by clang::Sema::CheckLiteralOperatorDeclaration().
|
inline |
Definition at line 264 of file IdentifierTable.h.
|
inline |
Return true if this is the identifier for the specified string.
This is intended to be used for string literals only: II->isStr("foo").
Definition at line 198 of file IdentifierTable.h.
Referenced by clang::Sema::ActOnClassPropertyRefExpr(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnStartNamespaceDef(), clang::Sema::ActOnUsingDirective(), clang::ento::AnyFunctionCall::argumentsMayEscape(), clang::ento::ObjCMethodCall::argumentsMayEscape(), clang::ento::RetainSummaryManager::canEval(), checkFormatStringExpr(), diagnoseBadTypeAttribute(), DiagReservedModuleName(), EvaluateValue(), findCapturingExpr(), clang::FunctionDecl::getMemoryFunctionKind(), handleAvailabilityAttr(), handleLoopHintAttr(), handleObjCBridgeAttr(), handleObjCGCTypeAttr(), handleObjCOwnershipTypeAttr(), clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(), clang::Type::isAlignValT(), clang::AttributeCommonInfo::isClangScope(), IsDeclSourceLocationCurrent(), isEnableIf(), clang::AttributeCommonInfo::isGNUScope(), clang::TypoCorrection::isKeyword(), clang::Sema::isLibstdcxxEagerExceptionSpecHack(), isNamed(), clang::Type::isNothrowT(), isObjCProtectedMacro(), clang::FunctionDecl::isReplaceableGlobalAllocationFunction(), clang::Type::isStdByteType(), IsStdFunction(), clang::DeclContext::isStdNamespace(), isWideStringLiteralFromMacro(), clang::Preprocessor::LexOnOffSwitch(), ParseAlignPragma(), clang::Parser::ParseOpenMPReservedLocator(), and clang::Parser::ParseOpenMPVarList().
|
inline |
Return true if this is the identifier for the specified StringRef.
Definition at line 204 of file IdentifierTable.h.
|
inline |
Provide less than operator for lexicographical sorting.
Definition at line 512 of file IdentifierTable.h.
|
delete |
|
delete |
|
inline |
Definition at line 299 of file IdentifierTable.h.
|
inline |
Revert TokenID to tok::identifier; used for GNU libstdc++ 4.2 compatibility.
TokenID is normally read-only but there are 2 instances where we revert it to tok::identifier for libstdc++ 4.2. Keep track of when this happens using this method so we can inform serialization about it.
Definition at line 294 of file IdentifierTable.h.
Referenced by clang::serialization::reader::ASTIdentifierLookupTrait::ReadData().
|
inline |
Definition at line 332 of file IdentifierTable.h.
References clang::FirstBuiltinID.
Referenced by clang::ASTImporter::Import(), and clang::Builtin::Context::initializeBuiltins().
|
inline |
Note that this identifier has changed since it was loaded from an AST file.
Definition at line 435 of file IdentifierTable.h.
Referenced by clang::Preprocessor::appendMacroDirective(), clang::Preprocessor::HandlePragmaPoison(), and markIdentifierFromAST().
|
inline |
Definition at line 412 of file IdentifierTable.h.
|
inline |
Note that the frontend token information for this identifier has changed since it was loaded from an AST file.
Definition at line 447 of file IdentifierTable.h.
|
inline |
Definition at line 226 of file IdentifierTable.h.
Referenced by clang::Preprocessor::addModuleMacro(), clang::Preprocessor::appendMacroDirective(), and clang::Preprocessor::setLoadedMacroDirective().
|
inline |
Definition at line 347 of file IdentifierTable.h.
References clang::FirstInterestingIdentifierID.
Referenced by AddInterestingIdentifier().
isCPlusPlusOperatorKeyword/setIsCPlusPlusOperatorKeyword controls whether this identifier is a C++ alternate representation of an operator.
Definition at line 397 of file IdentifierTable.h.
Referenced by AddCXXOperatorKeyword().
|
inline |
Definition at line 254 of file IdentifierTable.h.
|
inline |
Definition at line 360 of file IdentifierTable.h.
Referenced by AddKeyword().
|
inline |
Definition at line 278 of file IdentifierTable.h.
|
inline |
Definition at line 425 of file IdentifierTable.h.
Referenced by markIdentifierFromAST().
|
inline |
Definition at line 374 of file IdentifierTable.h.
Referenced by AddKeyword(), and clang::Preprocessor::HandleIdentifier().
setIsPoisoned - Mark this identifier as poisoned.
After poisoning, the Preprocessor will emit an error every time this token is used.
Definition at line 384 of file IdentifierTable.h.
Referenced by clang::VariadicMacroScopeGuard::enterScope(), clang::VariadicMacroScopeGuard::exitScope(), clang::Preprocessor::HandleIdentifier(), clang::Preprocessor::HandlePragmaPoison(), clang::PoisonIdentifierRAIIObject::PoisonIdentifierRAIIObject(), clang::Preprocessor::PoisonSEHIdentifiers(), clang::serialization::reader::ASTIdentifierLookupTrait::ReadData(), and clang::PoisonIdentifierRAIIObject::~PoisonIdentifierRAIIObject().
|
inline |
Definition at line 266 of file IdentifierTable.h.
|
inline |
Set whether this is the mangled name of an OpenMP variant.
Definition at line 481 of file IdentifierTable.h.
Referenced by clang::Sema::ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope().
|
inline |
Set whether this identifier is the contextual keyword import
.
Definition at line 469 of file IdentifierTable.h.
Referenced by clang::IdentifierTable::AddKeywords(), and clang::IdentifierTable::getOwn().
|
inline |
Definition at line 321 of file IdentifierTable.h.
Referenced by AddObjCKeyword().
|
inline |
Definition at line 354 of file IdentifierTable.h.
Referenced by clang::serialization::reader::ASTIdentifierLookupTrait::ReadData().
|
inline |
Set whether the information for this identifier is out of date with respect to the external source.
Definition at line 457 of file IdentifierTable.h.
Referenced by clang::ASTReader::markIdentifierUpToDate(), and clang::ASTReader::ReadAST().
|
friend |
Definition at line 107 of file IdentifierTable.h.