Home
last modified time | relevance | path

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

12

/llvm-project/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.h278 NestedNameSpecifier *NNS = nullptr, bool isKeyword = false);
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DMacroParenthesesCheck.cpp53 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 DClangHighlighter.cpp25 bool ClangHighlighter::isKeyword(llvm::StringRef token) const { in isKeyword() function in ClangHighlighter
68 else if (highlighter.isKeyword(tok_str)) in determineClangStyle()
H A DClangHighlighter.h33 bool isKeyword(llvm::StringRef token) const;
/llvm-project/mlir/lib/AsmParser/
H A DToken.h59 bool isKeyword() const;
H A DToken.cpp192 bool Token::isKeyword() const { in isKeyword() function in Token
H A DParser.h168 getToken().isKeyword();
H A DAffineParser.cpp286 token.isKeyword(); in isIdentifier()
H A DAttributeParser.cpp307 getToken().isKeyword()) in parseAttributeDict()
/llvm-project/clang-tools-extra/clangd/unittests/
H A DSourceCodeTests.cpp806 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 DIdentifierTable.cpp348 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 DLexer.h109 bool isKeyword() const { in isKeyword() function
H A DParser.cpp1061 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 DSourceCode.h266 bool isKeyword(llvm::StringRef TokenName, const LangOptions &LangOpts);
H A DSourceCode.cpp659 bool isKeyword(llvm::StringRef NewName, const LangOptions &LangOpts) { in isKeyword() function
/llvm-project/mlir/tools/mlir-tblgen/
H A DFormatGen.h99 bool isKeyword() const { in isKeyword() function
H A DFormatGen.cpp234 if (curToken.isKeyword()) in parseElement()
/llvm-project/clang/lib/Sema/
H A DSemaLookup.cpp4590 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 DRenamerClangTidyCheck.cpp502 if (Ident->isKeyword(getLangOpts())) in addUsage()
/llvm-project/clang/include/clang/Basic/
H A DIdentifierTable.h449 bool isKeyword(const LangOptions &LangOpts) const;
/llvm-project/clang-tools-extra/clangd/refactor/
H A DRename.cpp552 if (isKeyword(NewName, ASTCtx.getLangOpts())) in checkName()
/llvm-project/clang/lib/Parse/
H A DParseOpenACC.cpp230 Tok.getIdentifierInfo()->isKeyword(P.getLangOpts())) in isTokenIdentifierOrKeyword()
H A DParseTentative.cpp1207 if (Candidate.isResolved() && !Candidate.isKeyword() && in ValidateCandidate()
/llvm-project/clang/lib/Frontend/
H A DTextDiagnostic.cpp1190 if (II->isKeyword(LangOpts)) in highlightLines()

12