| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | annotate-tokens.m | 190 // CHECK: Keyword: "return" [7:3 - 7:9] ReturnStmt= 194 // CHECK: Keyword: "void" [8:4 - 8:8] CStyleCastExpr= 204 // CHECK: Keyword: "end" [10:2 - 10:5] 205 // CHECK: Keyword: "typedef" [14:1 - 14:8] 206 // CHECK: Keyword: "int" [14:9 - 14:12] 241 // CHECK: Keyword: "end" [26:2 - 26:5] 270 // CHECK: Keyword: "extern" [36:1 - 36:7] 321 // CHECK: Keyword: "end" [47:2 - 47:5] 392 // CHECK: Keyword: "return" [72:3 - 72:9] ReturnStmt= 446 // CHECK: Keyword: "end" [83:2 - 83:5] [all …]
|
| H A D | arc-annotate.m | 14 // CHECK: Keyword: "interface" [1:2 - 1:11] ObjCInterfaceDecl=A:1:12 17 // CHECK: Keyword: "property" [2:2 - 2:10] ObjCPropertyDecl=property:2:34 19 // CHECK: Keyword: "strong" [2:12 - 2:18] ObjCPropertyDecl=property:2:34 21 // CHECK: Keyword: "nonatomic" [2:20 - 2:29] ObjCPropertyDecl=property:2:34 27 // CHECK: Keyword: "property" [3:2 - 3:10] ObjCPropertyDecl=second_property:3:32 29 // CHECK: Keyword: "nonatomic" [3:12 - 3:21] ObjCPropertyDecl=second_property:3:32 31 // CHECK: Keyword: "weak" [3:23 - 3:27] ObjCPropertyDecl=second_property:3:32 36 // CHECK: Keyword: "property" [4:2 - 4:10] ObjCPropertyDecl=third_property:4:45 38 // CHECK: Keyword: "unsafe_unretained" [4:12 - 4:29] ObjCPropertyDecl=third_property:4:45 40 // CHECK: Keyword: "nonatomic" [4:31 - 4:40] ObjCPropertyDecl=third_property:4:45
|
| H A D | annotate-module.m | 22 // CHECK-NEXT: Keyword: "import" [3:2 - 3:8] ModuleImport=DependsOnModule:3:1 25 // CHECK-NEXT: Keyword: "int" [4:1 - 4:4] VarDecl=glob:4:5 41 // CHECK-MOD-NEXT: Keyword: "int" [2:1 - 2:4] VarDecl=Module_Sub:2:6
|
| /llvm-project-15.0.7/clang/lib/ExtractAPI/ |
| H A D | DeclarationFragments.cpp | 44 case DeclarationFragments::FragmentKind::Keyword: in getFragmentKindString() 72 .Case("keyword", DeclarationFragments::FragmentKind::Keyword) in parseFragmentKindFromString() 229 ElaboratedTypeKeyword Keyword = ET->getKeyword(); in getFragmentsForType() local 230 if (Keyword != ETK_None) { in getFragmentsForType() 232 .append(ElaboratedType::getKeywordName(Keyword), in getFragmentsForType() 233 DeclarationFragments::FragmentKind::Keyword) in getFragmentsForType() 252 DeclarationFragments::FragmentKind::Keyword); in getFragmentsForType() 359 DeclarationFragments::FragmentKind::Keyword) in getFragmentsForVar() 459 Fragments.append("enum", DeclarationFragments::FragmentKind::Keyword); in getFragmentsForEnum() 679 DeclarationFragments::FragmentKind::Keyword); in getFragmentsForObjCProperty() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-pdbutil/ |
| H A D | PrettyTypedefDumper.cpp | 32 WithColor(Printer, PDB_ColorItem::Keyword).get() << "typedef "; in start() 51 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in dump() 57 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in dump() 59 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in dump() 73 WithColor(Printer, PDB_ColorItem::Keyword).get() << " __restrict"; in dump() 82 WithColor(Printer, PDB_ColorItem::Keyword).get() << "class "; in dump()
|
| H A D | PrettyFunctionDumper.cpp | 77 WithColor(Printer, PDB_ColorItem::Keyword).get() << CC << " "; in start() 87 WithColor(Printer, PDB_ColorItem::Keyword).get() << CC << " "; in start() 114 WithColor(Printer, PDB_ColorItem::Keyword).get() << " const"; in start() 116 WithColor(Printer, PDB_ColorItem::Keyword).get() << " volatile"; in start() 152 WithColor(Printer, PDB_ColorItem::Keyword).get() << "virtual "; in start() 175 WithColor(Printer, PDB_ColorItem::Keyword).get() in start() 203 WithColor(Printer, PDB_ColorItem::Keyword).get() << " const"; in start() 205 WithColor(Printer, PDB_ColorItem::Keyword).get() << " volatile"; in start() 257 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in dump() 259 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in dump() [all …]
|
| H A D | PrettyEnumDumper.cpp | 28 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in start() 30 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in start() 32 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned "; in start() 33 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in start() 38 WithColor(Printer, PDB_ColorItem::Keyword).get() << "enum "; in start()
|
| H A D | PrettyVariableDumper.cpp | 56 WithColor(Printer, PDB_ColorItem::Keyword).get() << "static "; in start() 170 WithColor(Printer, PDB_ColorItem::Keyword).get() << " const"; in dumpRight() 172 WithColor(Printer, PDB_ColorItem::Keyword).get() << " volatile"; in dumpRight() 175 WithColor(Printer, PDB_ColorItem::Keyword).get() << " __restrict"; in dumpRight() 187 WithColor(Printer, PDB_ColorItem::Keyword).get() << CC << " "; in dump() 193 WithColor(Printer, PDB_ColorItem::Keyword).get() << " const "; in dump() 195 WithColor(Printer, PDB_ColorItem::Keyword).get() << " volatile "; in dump() 198 WithColor(Printer, PDB_ColorItem::Keyword).get() << " __restrict "; in dump() 214 WithColor(Printer, PDB_ColorItem::Keyword).get() << "typedef "; in dump()
|
| H A D | PrettyClassDefinitionDumper.cpp | 55 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in prettyPrintClassIntro() 57 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in prettyPrintClassIntro() 59 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned "; in prettyPrintClassIntro() 61 WithColor(Printer, PDB_ColorItem::Keyword).get() << Class.getUdtKind() << " "; in prettyPrintClassIntro() 76 WithColor(Printer, PDB_ColorItem::Keyword).get() << Base.getAccess(); in prettyPrintClassIntro() 78 WithColor(Printer, PDB_ColorItem::Keyword).get() << " virtual"; in prettyPrintClassIntro()
|
| H A D | PrettyBuiltinDumper.cpp | 22 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in start() 24 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in start()
|
| H A D | PrettyTypeDumper.cpp | 185 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const "; in printClassDecl() 187 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile "; in printClassDecl() 189 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned "; in printClassDecl() 191 WithColor(Printer, PDB_ColorItem::Keyword).get() << Class.getUdtKind() << " "; in printClassDecl() 354 WithColor(Printer, PDB_ColorItem::Keyword).get() in dumpClassLayout()
|
| /llvm-project-15.0.7/llvm/lib/AsmParser/ |
| H A D | LLLexer.cpp | 790 if (Keyword == "ptr") { in LexIdentifier() 877 StrVal.assign(Keyword.begin(), Keyword.end()); \ in LexIdentifier() 893 StrVal.assign(Keyword.begin(), Keyword.end()); in LexIdentifier() 898 StrVal.assign(Keyword.begin(), Keyword.end()); in LexIdentifier() 902 if (Keyword.startswith("CSK_")) { in LexIdentifier() 903 StrVal.assign(Keyword.begin(), Keyword.end()); in LexIdentifier() 907 if (Keyword == "NoDebug" || Keyword == "FullDebug" || in LexIdentifier() 908 Keyword == "LineTablesOnly" || Keyword == "DebugDirectivesOnly") { in LexIdentifier() 909 StrVal.assign(Keyword.begin(), Keyword.end()); in LexIdentifier() 913 if (Keyword == "GNU" || Keyword == "None" || Keyword == "Default") { in LexIdentifier() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/ |
| H A D | convert-member-functions-to-static.cpp | 203 #define T(FunctionName, Keyword) \ argument 204 Keyword int FunctionName() { return 0; }
|
| H A D | make-member-function-const.cpp | 297 #define T(FunctionName, Keyword) \ argument 298 int FunctionName() Keyword { return M; }
|
| /llvm-project-15.0.7/flang/lib/Parser/ |
| H A D | parse-tree.cpp | 169 std::optional<Keyword> keyword; in ConvertToStructureConstructor() 170 if (auto &kw{std::get<std::optional<Keyword>>(arg.t)}) { in ConvertToStructureConstructor() 171 keyword.emplace(Keyword{Name{kw->v}}); in ConvertToStructureConstructor() 186 components.emplace_back(std::optional<Keyword>{}, in ConvertToStructureConstructor() 222 actuals.emplace_back(std::optional<Keyword>{}, in ConvertToAssignment()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | Attr.td | 299 class Keyword<string name> : Spelling<name, "Keyword">; 858 let Spellings = [Keyword<"asm">, Keyword<"__asm__">]; 970 let Spellings = [GCC<"cdecl">, Keyword<"__cdecl">, Keyword<"_cdecl">]; 1259 let Spellings = [Keyword<"__kernel">, Keyword<"kernel">]; 1283 let Spellings = [Keyword<"__read_only">, Keyword<"read_only">, 1284 Keyword<"__write_only">, Keyword<"write_only">, 1285 Keyword<"__read_write">, Keyword<"read_write">]; 1317 let Spellings = [Keyword<"__local">, Keyword<"local">, Clang<"opencl_local">]; 1455 let Spellings = [Keyword<"final">, Keyword<"sealed">]; 2539 let Spellings = [GCC<"stdcall">, Keyword<"__stdcall">, Keyword<"_stdcall">]; [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | VirtualClassDestructorCheck.cpp | 123 const std::string &Keyword) { in eraseKeyword() argument 124 size_t KeywordIndex = DestructorString.find(Keyword); in eraseKeyword() 126 DestructorString.erase(KeywordIndex, Keyword.length()); in eraseKeyword()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Syntax/ |
| H A D | Nodes.td | 118 Role<"LiteralToken", Keyword<"nullptr">>, 136 Role<"LiteralToken", Keyword<"numeric_constant">>, 144 Role<"LiteralToken", Keyword<"numeric_constant">>, 175 Role<"TemplateKeyword", Optional<Keyword<"template">>>, 193 Role<"TemplateKeyword", Optional<Keyword<"template">>>, 202 Role<"IntroducerKeyword", Keyword<"this">>,
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | QualityTests.cpp | 78 EXPECT_EQ(Quality.Category, SymbolQualitySignals::Keyword); in TEST() 224 SymbolQualitySignals Keyword, Variable, Macro, Constructor, Function, in TEST() local 226 Keyword.Category = SymbolQualitySignals::Keyword; in TEST() 235 EXPECT_GT(Keyword.evaluateHeuristics(), Variable.evaluateHeuristics()); in TEST()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | QualTypeNames.cpp | 452 ElaboratedTypeKeyword Keyword = ETK_None; in getFullyQualifiedType() local 456 Keyword = ETypeInput->getKeyword(); in getFullyQualifiedType() 475 if (Prefix || Keyword != ETK_None) { in getFullyQualifiedType() 476 QT = Ctx.getElaboratedType(Keyword, Prefix, QT); in getFullyQualifiedType()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/lib/grammar/ |
| H A D | Grammar.cpp | 200 #define KEYWORD(Keyword, Condition) \ in getTerminalNames() argument 201 TerminalNames[tok::kw_##Keyword] = llvm::StringRef(#Keyword).upper(); in getTerminalNames()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | CodeCompleteConsumer.h | 776 const char *Keyword; member 885 CodeCompletionResult(const char *Keyword, unsigned Priority = CCP_Keyword) 886 : Keyword(Keyword), Priority(Priority), Kind(RK_Keyword), in Keyword() argument 935 return Keyword; in getKeyword()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCoroutine.cpp | 184 StringRef Keyword) { in isValidCoroutineContext() argument 195 : diag::err_coroutine_outside_function) << Keyword; in isValidCoroutineContext() 586 StringRef Keyword, in checkCoroutineContext() argument 588 if (!isValidCoroutineContext(S, Loc, Keyword)) in checkCoroutineContext() 597 ScopeInfo->setFirstCoroutineStmt(Loc, Keyword); in checkCoroutineContext() 691 StringRef Keyword) { in ActOnCoroutineBodyStart() argument 692 if (!checkCoroutineContext(*this, KWLoc, Keyword)) in ActOnCoroutineBodyStart() 722 Diag(KWLoc, diag::note_declared_coroutine_here) << Keyword; in ActOnCoroutineBodyStart() 772 StringRef Keyword) { in checkSuspensionContext() argument 777 S.Diag(Loc, diag::err_coroutine_unevaluated_context) << Keyword; in checkSuspensionContext() [all …]
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter/ |
| H A D | Commands.md | 46 Keyword args: 128 Keyword args: 155 Keyword args: 198 Keyword args: 227 Keyword args: 326 Keyword args:
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | IdentifierTable.cpp | 171 static void AddKeyword(StringRef Keyword, in AddKeyword() argument 189 Table.get(Keyword, AddResult == KS_Future ? tok::identifier : TokenCode); in AddKeyword() 196 static void AddCXXOperatorKeyword(StringRef Keyword, in AddCXXOperatorKeyword() argument 199 IdentifierInfo &Info = Table.get(Keyword, TokenCode); in AddCXXOperatorKeyword()
|