/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | FindSymbolsTests.cpp | 46 std::vector<SymbolInformation> getSymbols(TestTU &TU, llvm::StringRef Query, in getSymbols() 55 TestTU TU; in TEST() local 68 TestTU TU; in TEST() local 79 TestTU TU; in TEST() local 97 TestTU TU; in TEST() local 114 TestTU TU; in TEST() local 124 TestTU TU; in TEST() local 168 TestTU TU; in TEST() local 178 TestTU TU; in TEST() local 196 TestTU TU; in TEST() local [all …]
|
H A D | DiagnosticsTests.cpp | 178 auto TU = TestTU::withCode(Test.code()); in TEST() local 227 auto TU = TestTU::withCode(Test.code()); in TEST() local 236 auto TU = TestTU::withCode(Test.code()); in TEST() local 255 auto TU in TEST() local 266 auto TU = TestTU::withCode(Test.code()); TEST() local 320 auto TU = TestTU::withCode(Test.code()); TEST() local 367 auto TU = TestTU::withCode(Test.code()); TEST() local 387 TestTU TU = TestTU::withCode(Main.code()); TEST() local 405 TestTU TU = TestTU::withCode(Main.code()); TEST() local 472 TestTU TU = TestTU::withCode(Main.code()); TEST() local 486 TestTU TU = TestTU::withCode(Main.code()); TEST() local 523 TestTU TU = TestTU::withCode(Main.code()); TEST() local 540 auto TU = TestTU::withCode(Main.code()); TEST() local 561 auto TU = TestTU::withCode(Main.code()); TEST() local 590 TestTU TU = TestTU::withCode(Main.code()); TEST() local 611 auto TU = TestTU::withCode(Main.code()); TEST() local 639 TestTU TU = TestTU::withCode(Main.code()); TEST() local 668 TestTU TU = TestTU::withCode(Main.code()); TEST() local 762 TestTU TU = TestTU::withCode(Source.code()); TEST() local 787 TestTU TU = TestTU::withCode(Source.code()); TEST() local 801 TestTU TU = TestTU::withCode(Main.code()); TEST() local 817 TestTU TU = TestTU::withCode(Main.code()); TEST() local 833 TestTU TU = TestTU::withCode(Main.code()); TEST() local 854 TestTU TU = TestTU::withCode(Main.code()); TEST() local 914 TestTU TU = TestTU::withCode(Main.code()); TEST() local 963 auto TU = TestTU::withCode(R"cpp( TEST() local 972 auto TU = TestTU::withCode(""); TEST() local 986 auto TU = TestTU::withCode(R"cpp( TEST() local 998 auto TU = TestTU::withCode(R"cpp( TEST() local 1012 auto TU = TestTU::withCode(R"cpp( TEST() local 1027 auto TU = TestTU::withCode(R"cpp( TEST() local 1044 auto TU = TestTU::withCode(R"cpp( TEST() local 1086 auto TU = TestTU::withCode(Test.code()); TEST() local 1094 auto TU = TestTU::withCode(Test.code()); TEST() local 1107 auto TU = TestTU::withCode("void fn() { __asm { cmp cl,64 } }"); TEST() local 1241 auto TU = TestTU::withHeaderCode("namespace ns { class X; } ns::X *x;"); TEST() local 1298 TestTU TU; TEST() local 1330 auto TU = TestTU::withCode(Test.code()); TEST() local 1369 auto TU = TestTU::withCode(Test.code()); TEST() local 1411 auto TU = TestTU::withCode(R"cpp(// error-ok TEST() local 1441 auto TU = TestTU::withCode(Test.code()); TEST() local 1462 auto TU = TestTU::withCode(Test.code()); TEST() local 1497 auto TU = TestTU::withCode(Test.code()); TEST() local 1518 TestTU TU; TEST() local 1545 TestTU TU; TEST() local 1590 auto TU = TestTU::withCode(Test.code()); TEST() local 1616 auto TU = TestTU::withCode(Test.code()); TEST() local 1631 auto TU = TestTU::withCode(Test.code()); TEST() local 1659 auto TU = TestTU::withCode(Test.code()); TEST() local 1696 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1709 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1723 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1739 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1755 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1771 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1802 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1818 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1832 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1851 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1868 TestTU TU = TestTU::withCode(Main.code()); TEST() local 1877 TestTU TU; TEST() local 1909 TestTU TU; TEST() local 1919 TestTU TU; TEST() local 1938 TestTU TU; TEST() local 2016 TestTU TU; TEST() local 2068 TestTU TU; TEST() local 2083 auto TU = TestTU::withCode("static inline void foo(void) {}"); TEST() local [all...] |
H A D | IncludeCleanerTests.cpp | 75 auto TU = TestTU::withCode(R"cpp( in TEST() local 118 TestTU TU; in TEST() local 142 auto TU = TestTU::withCode(R"cpp( TEST() local 161 auto TU = TestTU::withCode(R"cpp( TEST() local 189 TestTU TU; TEST() local 261 TestTU TU; TEST() local 356 TestTU TU; TEST() local 379 TestTU TU; TEST() local 402 TestTU TU; TEST() local 423 TestTU TU; TEST() local 446 TestTU TU; TEST() local 469 TestTU TU; TEST() local 488 TestTU TU; TEST() local 510 auto TU = TestTU::withCode(R"cpp( TEST() local 536 TestTU TU; TEST() local 601 auto TU = TestTU::withCode(R"cpp( TEST() local 625 auto TU = TestTU::withCode(R"cpp( TEST() local [all...] |
H A D | ModulesTests.cpp | 23 TestTU TU = TestTU::withCode(R"cpp( in TEST() local 45 TestTU TU = TestTU::withCode(R"cpp( in TEST() local 70 TestTU TU = TestTU::withCode(R"cpp( in TEST() local 97 TestTU TU = TestTU::withCode(R"(#include "modular.h")"); in TEST() local 116 TestTU TU = TestTU::withCode(R"cpp( in TEST() local
|
H A D | TypeHierarchyTests.cpp | 70 TestTU TU = TestTU::withCode(Source.code()); TEST() local 85 TestTU TU = TestTU::withCode(Source.code()); TEST() local 107 TestTU TU = TestTU::withCode(Source.code()); TEST() local 130 TestTU TU = TestTU::withCode(Source.code()); TEST() local 156 TestTU TU = TestTU::withCode(Source.code()); TEST() local 190 TestTU TU = TestTU::withCode(Source.code()); TEST() local 215 TestTU TU = TestTU::withCode(Source.code()); TEST() local 263 TestTU TU = TestTU::withCode(Source.code()); TEST() local 290 TestTU TU = TestTU::withCode(Source.code()); TEST() local 319 TestTU TU = TestTU::withCode(Source.code()); TEST() local 343 TestTU TU = TestTU::withCode(Source.code()); TEST() local 379 TestTU TU = TestTU::withCode(Source.code()); TEST() local 412 TestTU TU = TestTU::withCode(Source.code()); TEST() local 453 TestTU TU = TestTU::withCode(Source.code()); TEST() local 491 TestTU TU = TestTU::withCode(Source.code()); TEST() local 517 TestTU TU = TestTU::withCode(Source.code()); TEST() local 540 TestTU TU = TestTU::withCode(Source.code()); TEST() local 568 TestTU TU = TestTU::withCode(SourceAnnotations.code()); TEST() local 622 TestTU TU = TestTU::withCode(Source.code()); TEST() local 643 TestTU TU = TestTU::withCode(Source.code()); TEST() local 664 TestTU TU = TestTU::withCode(Source.code()); TEST() local 686 TestTU TU = TestTU::withCode(Source.code()); TEST() local 709 TestTU TU = TestTU::withCode(Source.code()); TEST() local 727 TestTU TU = TestTU::withCode(Source.code()); TEST() local 744 TestTU TU = TestTU::withCode(Source.code()); TEST() local 778 TestTU TU = TestTU::withCode(Source.code()); TEST() local 804 TestTU TU = TestTU::withCode(Source.code()); TEST() local [all...] |
H A D | CompilerTests.cpp | 26 TestTU TU; in TEST() local 57 TestTU TU = TestTU::withCode("#pragma clang __debug parser_crash"); in TEST() local 64 TestTU TU; in TEST() local 88 TestTU TU; in TEST() local 109 TestTU TU; in TEST() local
|
H A D | ParsedASTTests.cpp | 111 TestTU TU; in TEST() local 128 TestTU TU; in TEST() local 148 TestTU TU; in TEST() local 164 TestTU TU; TEST() local 207 auto TU = TestTU::withCode(R"cpp( TEST() local 218 TestTU TU; TEST() local 250 TestTU TU; TEST() local 328 auto TU = TestTU::withCode(TestCase.code()); TEST() local 364 TestTU TU; TEST() local 410 TestTU TU; TEST() local 482 TestTU TU; TEST() local 528 TestTU TU; TEST() local 676 TestTU TU; TEST() local 716 TestTU TU; TEST() local 772 auto TU = TestTU::withHeaderCode("void foo(__builtin_va_list);"); TEST() local [all...] |
H A D | XRefsTests.cpp | 138 auto TU = TestTU::withCode(T.code()); in TEST() local 275 auto TU = TestTU::withCode(T.code()); in TEST() local 334 TestTU TU; in TEST() local 389 TestTU TU = TestTU::withCode(Code.code()); TEST() local 407 TestTU TU = TestTU::withCode(Code.code()); TEST() local 419 TestTU TU; TEST() local 1034 TestTU TU; TEST() local 1062 TestTU TU = TestTU::withCode(T.code()); TEST() local 1139 TestTU TU; TEST() local 1190 TestTU TU; TEST() local 1216 auto TU = TestTU::withCode(T.code()); TEST() local 1259 auto TU = TestTU::withCode(T.code()); TEST() local 1323 auto TU = TestTU::withCode(T.code()); TEST() local 1376 TestTU TU; TEST() local 1815 auto TU = TestTU::withCode(Code.code()); TEST() local 1841 auto TU = TestTU::withCode(Code.code()); TEST() local 1863 auto TU = TestTU::withHeaderCode(HeaderA.code()); TEST() local 1925 auto TU = TestTU::withCode(A.code().str()); TEST() local 1945 auto TU = TestTU::withCode(A.code().str()); TEST() local 1954 auto TU = TestTU::withCode(T.code()); checkFindRefs() local 2287 auto TU = TestTU::withCode(Code.code()); TEST() local 2375 auto TU = TestTU::withCode(T.code()); TEST() local 2409 TestTU TU; TEST() local 2460 TestTU TU; TEST() local 2609 TestTU TU; TEST() local [all...] |
H A D | ASTTests.cpp | 237 auto TU = TestTU::withCode(File.code()); in TEST() local 301 auto TU = TestTU::withCode(Case.Code); in TEST() local 324 auto TU = TestTU::withCode(R"cpp( in TEST() local 450 TestTU TU = TestTU::withCode(Test.code()); in TEST() local 516 TestTU TU = TestTU::withCode(Test.code()); in TEST() local 550 TestTU TU = TestTU::withCode(Test.code()); in TEST() local 623 auto ComputePreferredDirective = [](TestTU &TU) { in TEST()
|
H A D | HeaderSourceSwitchTests.cpp | 87 TestTU TU; in TEST() local 178 TestTU TU = TestTU::withCode(Case.HeaderCode); in TEST() local 245 TestTU TU = TestTU::withCode(Case.SourceCode); in TEST() local 277 TestTU TU = TestTU::withCode("void foo() {}"); in TEST() local
|
H A D | CallHierarchyTests.cpp | 74 TestTU TU = TestTU::withCode(Source.code()); TEST() local 119 TestTU TU = TestTU::withCode(Source.code()); TEST() local 162 TestTU TU = TestTU::withCode(Source.code()); TEST() local 195 TestTU TU = TestTU::withCode(Source.code()); TEST() local 432 TestTU TU = TestTU::withCode(Source.code()); TEST() local [all...] |
H A D | TestTU.h | 37 TestTU TU; in withCode() local 43 TestTU TU; in withHeaderCode() local
|
H A D | RenameTests.cpp | 67 TestTU TU; in buildRefSlab() local 869 auto TU = TestTU::withCode(Code.code()); in TEST() local 1015 auto TU = TestTU::withCode(Code.code()); in TEST() local 1330 TestTU TU = TestTU::withCode(T.code()); TEST() local 1362 TestTU TU = TestTU::withCode(Code.code()); TEST() local 1421 auto TU = TestTU::withCode(Code.code()); TEST() local 1450 auto TU = TestTU::withCode(Code.code()); TEST() local 1474 auto TU = TestTU::withCode(Code.code()); TEST() local 1567 TestTU TU = TestTU::withCode(MainCode.code()); TEST() local 1636 auto TU = TestTU::withCode(MainCode.code()); TEST() local 2088 auto TU = TestTU::withCode(Code.code()); TEST() local [all...] |
H A D | SelectionTests.cpp | 604 TestTU TU; in TEST() local 724 auto TU = TestTU::withCode(Test.code()); in TEST() local 742 auto TU = TestTU::withCode(Test.code()); in TEST() local 800 auto TU = TestTU::withCode(Annotations(Test).code()); in TEST() local 918 auto TU = TestTU::withCode(Test.code()); in TEST() local
|
H A D | ASTSignalsTests.cpp | 25 TestTU TU = TestTU::withCode(R"cpp( in TEST() local
|
H A D | HoverTests.cpp | 1403 TestTU TU = TestTU::withCode(T.code()); in TEST() local 1461 TestTU TU = TestTU::withCode(T.code()); in TEST() local 1550 TestTU TU = TestTU::withCode(T.code()); in TEST() local 1600 TestTU TU = TestTU::withCode(T.code()); TEST() local 3110 TestTU TU = TestTU::withCode(T.code()); TEST() local 3205 TestTU TU; TEST() local 3267 TestTU TU; TEST() local 3304 TestTU TU = TestTU::withCode(T.code()); TEST() local 3337 TestTU TU = TestTU::withCode(T.code()); TEST() local 3354 TestTU TU = TestTU::withCode(T.code()); TEST() local 3374 auto TU = TestTU::withCode(T.code()); TEST() local 3397 TestTU TU = TestTU::withCode(T.code()); TEST() local 3893 TestTU TU = TestTU::withCode(T.code()); TEST() local 3907 TestTU TU = TestTU::withCode(T.code()); TEST() local 3934 TestTU TU = TestTU::withCode(T.code()); TEST() local 3952 TestTU TU = TestTU::withCode(T.code()); TEST() local 3968 TestTU TU = TestTU::withCode(T.code()); TEST() local 3993 TestTU TU = TestTU::withCode(T.code()); TEST() local 4010 TestTU TU = TestTU::withCode(T.code()); TEST() local 4033 TestTU TU = TestTU::withCode(T.code()); TEST() local 4239 auto TU = TestTU::withCode(Code.code()); TEST() local 4255 auto TU = TestTU::withCode(C.code()); TEST() local [all...] |
/llvm-project/clang/tools/libclang/ |
H A D | CXCursor.cpp | 34 CXCursor cxcursor::MakeCXCursorInvalid(CXCursorKind K, CXTranslationUnit TU) { in MakeCXCursorInvalid() argument 133 CXTranslationUnit TU) { in MakeCXCursor() argument 139 CXCursor cxcursor::MakeCXCursor(const Decl *D, CXTranslationUnit TU, in MakeCXCursor() argument 170 CXTranslationUnit TU, in MakeCXCursor() argument 893 MakeCursorObjCSuperClassRef(ObjCInterfaceDecl * Super,SourceLocation Loc,CXTranslationUnit TU) MakeCursorObjCSuperClassRef() argument 909 MakeCursorObjCProtocolRef(const ObjCProtocolDecl * Proto,SourceLocation Loc,CXTranslationUnit TU) MakeCursorObjCProtocolRef() argument 925 MakeCursorObjCClassRef(const ObjCInterfaceDecl * Class,SourceLocation Loc,CXTranslationUnit TU) MakeCursorObjCClassRef() argument 943 MakeCursorTypeRef(const TypeDecl * Type,SourceLocation Loc,CXTranslationUnit TU) MakeCursorTypeRef() argument 959 MakeCursorTemplateRef(const TemplateDecl * Template,SourceLocation Loc,CXTranslationUnit TU) MakeCursorTemplateRef() argument 975 MakeCursorNamespaceRef(const NamedDecl * NS,SourceLocation Loc,CXTranslationUnit TU) MakeCursorNamespaceRef() argument 992 MakeCursorVariableRef(const VarDecl * Var,SourceLocation Loc,CXTranslationUnit TU) MakeCursorVariableRef() argument 1009 MakeCursorMemberRef(const FieldDecl * Field,SourceLocation Loc,CXTranslationUnit TU) MakeCursorMemberRef() argument 1025 MakeCursorCXXBaseSpecifier(const CXXBaseSpecifier * B,CXTranslationUnit TU) MakeCursorCXXBaseSpecifier() argument 1036 MakePreprocessingDirectiveCursor(SourceRange Range,CXTranslationUnit TU) MakePreprocessingDirectiveCursor() argument 1048 ASTUnit *TU = getCursorASTUnit(C); getCursorPreprocessingDirective() local 1053 MakeMacroDefinitionCursor(const MacroDefinitionRecord * MI,CXTranslationUnit TU) MakeMacroDefinitionCursor() argument 1064 MakeMacroExpansionCursor(MacroExpansion * MI,CXTranslationUnit TU) MakeMacroExpansionCursor() argument 1071 MakeMacroExpansionCursor(MacroDefinitionRecord * MI,SourceLocation Loc,CXTranslationUnit TU) MakeMacroExpansionCursor() argument 1095 MakeInclusionDirectiveCursor(InclusionDirective * ID,CXTranslationUnit TU) MakeInclusionDirectiveCursor() argument 1106 MakeCursorLabelRef(LabelStmt * Label,SourceLocation Loc,CXTranslationUnit TU) MakeCursorLabelRef() argument 1122 MakeCursorOverloadedDeclRef(const OverloadExpr * E,CXTranslationUnit TU) MakeCursorOverloadedDeclRef() argument 1133 MakeCursorOverloadedDeclRef(const Decl * D,SourceLocation Loc,CXTranslationUnit TU) MakeCursorOverloadedDeclRef() argument 1144 MakeCursorOverloadedDeclRef(TemplateName Name,SourceLocation Loc,CXTranslationUnit TU) MakeCursorOverloadedDeclRef() argument 1187 CXTranslationUnit TU = getCursorTU(Cursor); getCursorASTUnit() local 1204 CXTranslationUnit TU = getCursorTU(cursor); getOverriddenCursors() local 1276 CXTranslationUnit TU = getCursorTU(cursor); getTypeRefCursor() local 1666 CXTranslationUnit TU = cxcursor::getCursorTU(cursor); clang_getOverriddenCursors() local 1724 CXTranslationUnit TU = getCursorTU(*overridden); clang_disposeOverriddenCursors() local 1774 CXTranslationUnit TU = cxcursor::getCursorTU(C); clang_Cursor_getReceiverType() local [all...] |
H A D | CXTranslationUnit.h | 49 static inline ASTUnit *getASTUnit(CXTranslationUnit TU) { in getASTUnit() 59 static inline bool isNotUsableTU(CXTranslationUnit TU) { in isNotUsableTU() 63 #define LOG_BAD_TU(TU) \ argument 71 CXTranslationUnitImpl *TU; variable
|
H A D | CIndexInclusionStack.cpp | 23 void getInclusions(bool IsLocal, unsigned n, CXTranslationUnit TU, in getInclusions() 68 void clang_getInclusions(CXTranslationUnit TU, CXInclusionVisitor CB, in clang_getInclusions()
|
H A D | CIndexHigh.cpp | 23 static void getTopOverriddenMethods(CXTranslationUnit TU, in getTopOverriddenMethods() 47 CXTranslationUnit TU; member 213 static bool findIdRefsInFile(CXTranslationUnit TU, CXCursor declCursor, in findIdRefsInFile() 307 static bool findMacroRefsInFile(CXTranslationUnit TU, CXCursor Cursor, in findMacroRefsInFile() 382 static bool findIncludesInFile(CXTranslationUnit TU, const FileEntry *File, in findIncludesInFile() 479 CXResult clang_findIncludesInFile(CXTranslationUnit TU, CXFile file, in clang_findIncludesInFile() 527 CXResult clang_findIncludesInFileWithBlock(CXTranslationUnit TU, in clang_findIncludesInFileWithBlock()
|
H A D | CXString.h | 87 CXTranslationUnit TU; member
|
H A D | CIndexUSRs.cpp | 46 CXTranslationUnit TU = cxcursor::getCursorTU(C); in clang_getCursorUSR() local 67 CXTranslationUnit TU = cxcursor::getCursorTU(C); in clang_getCursorUSR() local
|
/llvm-project/clang/unittests/AST/ |
H A D | ASTImporterFixtures.h | 109 struct TU { struct 113 std::unique_ptr<ASTUnit> Unit; argument 114 TranslationUnitDecl *TUDecl = nullptr; argument 119 TU(StringRef Code, StringRef FileName, std::vector<std::string> Args, argument
|
/llvm-project/llvm/lib/DebugInfo/DWARF/ |
H A D | DWARFTypeUnit.cpp | 47 if (DWARFDie TU = getUnitDIE(false)) in dump() local
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaModule.cpp | 218 TU->setModuleOwnershipKind(Decl::ModuleOwnershipKind::Visible); in HandleStartOfHeaderUnit() local 470 TU->setModuleOwnershipKind(Decl::ModuleOwnershipKind::ReachableWhenImported); in ActOnModuleDecl() local 169 auto *TU = Context.getTranslationUnitDecl(); ActOnGlobalModuleFragmentDecl() local 566 auto *TU = Context.getTranslationUnitDecl(); ActOnPrivateModuleFragmentDecl() local 740 TranslationUnitDecl *TU = getASTContext().getTranslationUnitDecl(); BuildModuleInclude() local 833 TranslationUnitDecl *TU = getASTContext().getTranslationUnitDecl(); createImplicitModuleImportForErrorRecovery() local [all...] |