| /llvm-project-15.0.7/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 | 282 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | MacroParenthesesCheck.cpp | 55 static bool isKeyword(const Token &T) { in isKeyword() function 118 if (isKeyword(Tok)) in replacementList() 223 if (isAnyIdentifier(Prev.getKind()) || isKeyword(Prev) || in argument() 224 isAnyIdentifier(Next.getKind()) || isKeyword(Next)) in argument()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Language/ClangCommon/ |
| H A D | ClangHighlighter.h | 32 bool isKeyword(llvm::StringRef token) const;
|
| H A D | ClangHighlighter.cpp | 24 bool ClangHighlighter::isKeyword(llvm::StringRef token) const { in isKeyword() function in ClangHighlighter 67 else if (highlighter.isKeyword(tok_str)) in determineClangStyle()
|
| /llvm-project-15.0.7/mlir/lib/AsmParser/ |
| H A D | Token.h | 59 bool isKeyword() const;
|
| H A D | Token.cpp | 186 bool Token::isKeyword() const { in isKeyword() function in Token
|
| H A D | Parser.h | 150 getToken().isKeyword(); in isCurrentTokenAKeyword()
|
| H A D | AffineParser.cpp | 273 token.isKeyword(); in isIdentifier()
|
| H A D | AttributeParser.cpp | 289 getToken().isKeyword()) in parseAttributeDict()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | SourceCodeTests.cpp | 805 EXPECT_TRUE(isKeyword("int", LangOpts)); in TEST() 806 EXPECT_TRUE(isKeyword("return", LangOpts)); in TEST() 807 EXPECT_TRUE(isKeyword("co_await", LangOpts)); in TEST() 811 EXPECT_FALSE(isKeyword("final", LangOpts)); in TEST() 812 EXPECT_FALSE(isKeyword("override", LangOpts)); in TEST()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | IdentifierTable.cpp | 259 bool IdentifierInfo::isKeyword(const LangOptions &LangOpts) const { in isKeyword() function in IdentifierInfo 272 if (!LangOpts.CPlusPlus || !isKeyword(LangOpts)) in isCPlusPlusKeyword() 280 return !isKeyword(LangOptsNoCPP); in isCPlusPlusKeyword()
|
| /llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/ |
| H A D | Lexer.h | 110 bool isKeyword() const { in isKeyword() function
|
| H A D | Parser.cpp | 1014 else if (curToken.is(Token::identifier) || curToken.isKeyword()) in parseNamedAttributeDecl() 1927 !memberNameTok.isKeyword()) in parseMemberAccessExpr() 1944 if (curToken.isNot(Token::identifier) && !curToken.isKeyword()) { in parseOperationName() 1960 if (curToken.isNot(Token::identifier) && !curToken.isKeyword()) in parseOperationName() 1969 curToken.isKeyword()); in parseOperationName()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | SourceCode.h | 261 bool isKeyword(llvm::StringRef TokenName, const LangOptions &LangOpts);
|
| H A D | SourceCode.cpp | 639 bool isKeyword(llvm::StringRef NewName, const LangOptions &LangOpts) { in isKeyword() function
|
| /llvm-project-15.0.7/mlir/tools/mlir-tblgen/ |
| H A D | FormatGen.h | 98 bool isKeyword() const { in isKeyword() function
|
| H A D | FormatGen.cpp | 217 if (curToken.isKeyword()) in parseElement()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaLookup.cpp | 4564 NestedNameSpecifier *NNS, bool isKeyword) { in addName() argument 4579 if (isKeyword) TC.makeKeyword(); in addName() 5394 if (ED == 0 && Result.isKeyword()) in CorrectTypo() 5408 else if ((*Consumer)["super"].front().isKeyword()) in CorrectTypo() 5502 if (isKeyword()) in addCorrectionDecl() 5528 if (candidate.isKeyword()) in ValidateCandidate() 5569 return candidate.isKeyword(); in ValidateCandidate() 5793 Correction.isKeyword() ? nullptr : Correction.getFoundDecl(); in diagnoseTypo()
|
| H A D | SemaExprObjC.cpp | 2113 Corrected.isKeyword() ? nullptr : Corrected.getFoundDecl(); in HandleExprPropertyRefExpr() 2274 candidate.isKeyword("super"); in ValidateCandidate() 2359 if (Corrected.isKeyword()) { in getObjCMessageKind()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | IdentifierTable.h | 364 bool isKeyword(const LangOptions &LangOpts) const; in alignas()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | RenamerClangTidyCheck.cpp | 463 if (Ident->isKeyword(getLangOpts())) in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/ |
| H A D | Rename.cpp | 493 if (isKeyword(NewName, ASTCtx.getLangOpts())) in checkName()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | PPDirectives.cpp | 177 if (II->isKeyword(Lang)) in shouldWarnOnMacroDef() 2755 if (!II->isKeyword(LOptions)) in isConfigurationPattern()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseTentative.cpp | 1122 if (Candidate.isResolved() && !Candidate.isKeyword() && in ValidateCandidate()
|