Home
last modified time | relevance | path

Searched refs:isKeyword (Results 1 – 25 of 33) sorted by relevance

12

/llvm-project-15.0.7/clang/include/clang/Sema/
H A DTypoCorrection.h202 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 DSemaInternal.h282 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMacroParenthesesCheck.cpp55 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 DClangHighlighter.h32 bool isKeyword(llvm::StringRef token) const;
H A DClangHighlighter.cpp24 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 DToken.h59 bool isKeyword() const;
H A DToken.cpp186 bool Token::isKeyword() const { in isKeyword() function in Token
H A DParser.h150 getToken().isKeyword(); in isCurrentTokenAKeyword()
H A DAffineParser.cpp273 token.isKeyword(); in isIdentifier()
H A DAttributeParser.cpp289 getToken().isKeyword()) in parseAttributeDict()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DSourceCodeTests.cpp805 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 DIdentifierTable.cpp259 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 DLexer.h110 bool isKeyword() const { in isKeyword() function
H A DParser.cpp1014 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 DSourceCode.h261 bool isKeyword(llvm::StringRef TokenName, const LangOptions &LangOpts);
H A DSourceCode.cpp639 bool isKeyword(llvm::StringRef NewName, const LangOptions &LangOpts) { in isKeyword() function
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DFormatGen.h98 bool isKeyword() const { in isKeyword() function
H A DFormatGen.cpp217 if (curToken.isKeyword()) in parseElement()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaLookup.cpp4564 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 DSemaExprObjC.cpp2113 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 DIdentifierTable.h364 bool isKeyword(const LangOptions &LangOpts) const; in alignas()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DRenamerClangTidyCheck.cpp463 if (Ident->isKeyword(getLangOpts())) in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DRename.cpp493 if (isKeyword(NewName, ASTCtx.getLangOpts())) in checkName()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPPDirectives.cpp177 if (II->isKeyword(Lang)) in shouldWarnOnMacroDef()
2755 if (!II->isKeyword(LOptions)) in isConfigurationPattern()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseTentative.cpp1122 if (Candidate.isResolved() && !Candidate.isKeyword() && in ValidateCandidate()

12