/llvm-project/clang/include/clang/Sema/ |
H A D | TypoCorrection.h | 202 bool isKeyword() const { in isKeyword() function 208 bool isKeyword(const char (&Str)[StrLen]) const { in isKeyword() function 209 return isKeyword() && getCorrectionAsIdentifierInfo()->isStr(Str); in isKeyword() 233 return isKeyword() ? CorrectionDecls.end() : CorrectionDecls.begin(); in begin() 241 return isKeyword() ? CorrectionDecls.end() : CorrectionDecls.begin(); in begin() 262 return (!isKeyword() && !CorrectionDecls.empty()); in hasCorrectionDecl()
|
H A D | SemaInternal.h | 278 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
|
/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
H A D | MacroParenthesesCheck.cpp | 53 static bool isKeyword(const Token &T) { in isKeyword() function 116 if (isKeyword(Tok)) in replacementList() 221 if (isAnyIdentifier(Prev.getKind()) || isKeyword(Prev) || in argument() 222 isAnyIdentifier(Next.getKind()) || isKeyword(Next)) in argument()
|
/llvm-project/lldb/source/Plugins/Language/ClangCommon/ |
H A D | ClangHighlighter.cpp | 25 bool ClangHighlighter::isKeyword(llvm::StringRef token) const { in isKeyword() function in ClangHighlighter 68 else if (highlighter.isKeyword(tok_str)) in determineClangStyle()
|
H A D | ClangHighlighter.h | 33 bool isKeyword(llvm::StringRef token) const;
|
/llvm-project/mlir/lib/AsmParser/ |
H A D | Token.h | 59 bool isKeyword() const;
|
H A D | Token.cpp | 192 bool Token::isKeyword() const { in isKeyword() function in Token
|
H A D | Parser.h | 168 getToken().isKeyword();
|
H A D | AffineParser.cpp | 286 token.isKeyword(); in isIdentifier()
|
H A D | AttributeParser.cpp | 307 getToken().isKeyword()) in parseAttributeDict()
|
/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | SourceCodeTests.cpp | 806 EXPECT_TRUE(isKeyword("int", LangOpts)); in TEST() 807 EXPECT_TRUE(isKeyword("return", LangOpts)); in TEST() 808 EXPECT_TRUE(isKeyword("co_await", LangOpts)); in TEST() 812 EXPECT_FALSE(isKeyword("final", LangOpts)); in TEST() 813 EXPECT_FALSE(isKeyword("override", LangOpts)); in TEST()
|
/llvm-project/clang/lib/Basic/ |
H A D | IdentifierTable.cpp | 348 bool IdentifierInfo::isKeyword(const LangOptions &LangOpts) const { in isKeyword() 361 if (!LangOpts.CPlusPlus || !isKeyword(LangOpts)) in isCPlusPlusKeyword() 369 return !isKeyword(LangOptsNoCPP); in isReserved() 344 bool IdentifierInfo::isKeyword(const LangOptions &LangOpts) const { isKeyword() function in IdentifierInfo
|
/llvm-project/mlir/lib/Tools/PDLL/Parser/ |
H A D | Lexer.h | 109 bool isKeyword() const { in isKeyword() function
|
H A D | Parser.cpp | 1061 else if (curToken.is(Token::identifier) || curToken.isKeyword()) in parseNamedAttributeDecl() 1952 !memberNameTok.isKeyword()) in parseMemberAccessExpr() 1982 if (curToken.isNot(Token::identifier) && !curToken.isKeyword()) { in parseOperationName() 1998 if (curToken.isNot(Token::identifier) && !curToken.isKeyword()) in parseOperationName() 2007 curToken.isKeyword()); in parseOperationName()
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | SourceCode.h | 266 bool isKeyword(llvm::StringRef TokenName, const LangOptions &LangOpts);
|
H A D | SourceCode.cpp | 659 bool isKeyword(llvm::StringRef NewName, const LangOptions &LangOpts) { in isKeyword() function
|
/llvm-project/mlir/tools/mlir-tblgen/ |
H A D | FormatGen.h | 99 bool isKeyword() const { in isKeyword() function
|
H A D | FormatGen.cpp | 234 if (curToken.isKeyword()) in parseElement()
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaLookup.cpp | 4590 NestedNameSpecifier *NNS, bool isKeyword) { in addCorrection() 4605 if (isKeyword) TC.makeKeyword(); in addCorrection() 5389 if (ED == 0 && Result.isKeyword()) in CorrectTypoDelayed() 5403 else if ((*Consumer)["super"].front().isKeyword()) 5459 if (isKeyword()) 5485 if (candidate.isKeyword()) in ValidateCandidate() 5526 return candidate.isKeyword(); 5760 Correction.isKeyword() ? nullptr : Correction.getFoundDecl(); in forRedeclarationInCurContext() 4525 addName(StringRef Name,NamedDecl * ND,NestedNameSpecifier * NNS,bool isKeyword) addName() argument
|
/llvm-project/clang-tools-extra/clang-tidy/utils/ |
H A D | RenamerClangTidyCheck.cpp | 502 if (Ident->isKeyword(getLangOpts())) in addUsage()
|
/llvm-project/clang/include/clang/Basic/ |
H A D | IdentifierTable.h | 449 bool isKeyword(const LangOptions &LangOpts) const;
|
/llvm-project/clang-tools-extra/clangd/refactor/ |
H A D | Rename.cpp | 552 if (isKeyword(NewName, ASTCtx.getLangOpts())) in checkName()
|
/llvm-project/clang/lib/Parse/ |
H A D | ParseOpenACC.cpp | 230 Tok.getIdentifierInfo()->isKeyword(P.getLangOpts())) in isTokenIdentifierOrKeyword()
|
H A D | ParseTentative.cpp | 1207 if (Candidate.isResolved() && !Candidate.isKeyword() && in ValidateCandidate()
|
/llvm-project/clang/lib/Frontend/ |
H A D | TextDiagnostic.cpp | 1190 if (II->isKeyword(LangOpts)) in highlightLines()
|