Home
last modified time | relevance | path

Searched refs:TU (Results 1 – 25 of 163) sorted by relevance

1234567

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DModulesTests.cpp22 TestTU TU = TestTU::withCode(R"cpp( in TEST() local
38 TU.index(); in TEST()
44 TestTU TU = TestTU::withCode(R"cpp( in TEST() local
50 TU.ExtraArgs.push_back("-fmodules"); in TEST()
52 TU.ExtraArgs.push_back("-Xclang"); in TEST()
69 TestTU TU = TestTU::withCode(R"cpp( in TEST() local
77 TU.ExtraArgs.push_back("-fmodules"); in TEST()
91 TU.build(); in TEST()
98 TU.ExtraArgs.push_back("-Xclang"); in TEST()
101 TU.ExtraArgs.push_back("-fmodules"); in TEST()
[all …]
H A DFindSymbolsTests.cpp55 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
223 TestTU TU; in TEST() local
[all …]
H A DDiagnosticsTests.cpp351 TU.AdditionalFiles["a.h"] = TU.AdditionalFiles["b.h"] = ""; in TEST()
623 TU.ExtraArgs = {}; in TEST()
1135 TestTU TU; in TEST() local
1355 TestTU TU; in TEST() local
1382 TestTU TU; in TEST() local
1698 TestTU TU; in TEST() local
1746 TestTU TU; in TEST() local
1756 TestTU TU; in TEST() local
1775 TestTU TU; in TEST() local
1806 TestTU TU; in TEST() local
[all …]
H A DIncludeCleanerTests.cpp247 TestTU TU; in TEST() local
361 TestTU TU; in TEST() local
383 TestTU TU; in TEST() local
384 TU.Code = R"cpp( in TEST()
445 TestTU TU; in TEST() local
446 TU.Code = R"cpp( in TEST()
485 TestTU TU; in TEST() local
486 TU.Code = R"cpp( in TEST()
519 TestTU TU; in TEST() local
551 TestTU TU; in TEST() local
[all …]
H A DParsedASTTests.cpp113 TestTU TU; in TEST() local
130 TestTU TU; in TEST() local
150 TestTU TU; in TEST() local
166 TestTU TU; in TEST() local
220 TestTU TU; in TEST() local
252 TestTU TU; in TEST() local
414 TestTU TU; in TEST() local
484 TestTU TU; in TEST() local
531 TestTU TU; in TEST() local
603 TestTU TU; in TEST() local
[all …]
H A DCompilerTests.cpp26 TestTU TU; in TEST() local
27 TU.AdditionalFiles["test.h.pch"] = ""; in TEST()
43 TU.AdditionalFiles["test.pch"] = ""; in TEST()
44 TU.ExtraArgs = {"--driver-mode=cl"}; in TEST()
45 TU.ExtraArgs.push_back("/Yutest.h"); in TEST()
58 TU.build(); // no-crash in TEST()
64 TestTU TU; in TEST() local
88 TestTU TU; in TEST() local
90 TU.ExtraArgs = {"-Xclang", "-load", in TEST()
109 TestTU TU; in TEST() local
[all …]
H A DTypeHierarchyTests.cpp71 auto AST = TU.build(); in TEST()
95 auto AST = TU.build(); in TEST()
118 auto AST = TU.build(); in TEST()
144 auto AST = TU.build(); in TEST()
178 auto AST = TU.build(); in TEST()
203 auto AST = TU.build(); in TEST()
251 auto AST = TU.build(); in TEST()
278 auto AST = TU.build(); in TEST()
307 auto AST = TU.build(); in TEST()
331 auto AST = TU.build(); in TEST()
[all …]
H A DPreambleTests.cpp52 TU.Filename = MainFileName.str(); in collectPatchedIncludes()
57 TU.Code = ModifiedContents.str(); in collectPatchedIncludes()
58 auto PI = TU.inputs(FS); in collectPatchedIncludes()
172 TU.AdditionalFiles["b.h"] = ""; in TEST()
174 auto PI = TU.inputs(FS); in TEST()
179 TU.Code = R"cpp( in TEST()
183 auto PP = PreamblePatch::createFullPatch(testPath(TU.Filename), TU.inputs(FS), in TEST()
208 return ParsedAST::build(testPath(TU.Filename), TU.inputs(FS), std::move(CI), in TEST()
478 TU.Filename = "main.cpp"; in TEST()
482 auto AST = TU.build(); in TEST()
[all …]
H A DHeaderSourceSwitchTests.cpp87 TestTU TU; in TEST() local
88 TU.HeaderCode = R"cpp( in TEST()
91 TU.Code = R"cpp( in TEST()
108 auto AST = TU.build(); in TEST()
179 TU.Filename = "TestTU.h"; in TEST()
247 auto AST = TU.build(); in TEST()
281 TU.HeaderCode = R"cpp( in TEST()
290 auto Index = TU.index(); in TEST()
291 TU.Code = std::move(TU.HeaderCode); in TEST()
292 TU.HeaderCode.clear(); in TEST()
[all …]
H A DXRefsTests.cpp322 TestTU TU; in TEST() local
378 auto AST = TU.build(); in TEST()
396 auto AST = TU.build(); in TEST()
407 TestTU TU; in TEST() local
1012 TestTU TU; in TEST() local
1117 TestTU TU; in TEST() local
1168 TestTU TU; in TEST() local
1354 TestTU TU; in TEST() local
2281 TestTU TU; in TEST() local
2323 TestTU TU; in TEST() local
[all …]
H A DRenameTests.cpp67 TestTU TU; in buildRefSlab() local
827 auto AST = TU.build(); in TEST()
1112 auto AST = TU.build(); in TEST()
1175 auto AST = TU.build(); in TEST()
1206 auto AST = TU.build(); in TEST()
1223 TU.HeaderCode = in TEST()
1228 auto AST = TU.build(); in TEST()
1316 auto AST = TU.build(); in TEST()
1334 AST = TU.build(); in TEST()
1387 auto AST = TU.build(); in TEST()
[all …]
H A DTestWorkspace.cpp21 TU.Code = Input.second.Code; in index()
22 TU.Filename = Input.first().str(); in index()
23 TU.preamble([&](ASTContext &Ctx, Preprocessor &PP, in index()
28 ParsedAST MainAST = TU.build(); in index()
40 TU.Code = It->second.Code; in openFile()
41 TU.Filename = It->first().str(); in openFile()
42 return TU.build(); in openFile()
48 TU.AdditionalFiles.insert(std::make_pair(Filename, Input.Code)); in addInput()
H A DFeatureModulesTests.cpp74 TestTU TU; in TEST() local
75 TU.Code = Code.code().str(); in TEST()
78 auto AST = TU.build(); in TEST()
82 TU.FeatureModules = &FMS; in TEST()
84 auto AST = TU.build(); in TEST()
103 TestTU TU = TestTU::withCode(R"cpp( in TEST() local
113 auto AST = TU.build(); in TEST()
117 TU.FeatureModules = &FMS; in TEST()
119 auto AST = TU.build(); in TEST()
/llvm-project-15.0.7/clang/test/Sema/
H A Dtransparent-union.c7 } TU __attribute__((transparent_union)); typedef
9 void f(TU); // expected-note{{passing argument to parameter here}}
17 TU tu_ip = ip; // expected-error{{incompatible type}} in g()
18 TU tu; in g()
25 void fip(TU);
28 void ffp(TU);
31 void flp(TU);
49 void f_triple0(TU tu) {} in f_triple0()
59 void f_triple2(TU tu) {} in f_triple2()
63 void f_callee(TU);
[all …]
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXTranslationUnit.h49 static inline ASTUnit *getASTUnit(CXTranslationUnit TU) { in getASTUnit() argument
50 if (!TU) in getASTUnit()
52 return TU->TheASTUnit; in getASTUnit()
59 static inline bool isNotUsableTU(CXTranslationUnit TU) { in isNotUsableTU() argument
60 return !TU; in isNotUsableTU()
63 #define LOG_BAD_TU(TU) \ argument
71 CXTranslationUnitImpl *TU; variable
74 CXTUOwner(CXTranslationUnitImpl *tu) : TU(tu) { } in CXTUOwner()
77 CXTranslationUnitImpl *getTU() const { return TU; } in getTU()
80 CXTranslationUnitImpl *retTU = TU; in takeTU()
[all …]
H A DCXCursor.h51 CXTranslationUnit TU);
56 CXTranslationUnit TU,
89 CXTranslationUnit TU);
97 CXTranslationUnit TU);
107 CXTranslationUnit TU);
115 CXTranslationUnit TU);
123 CXTranslationUnit TU);
131 CXTranslationUnit TU);
145 CXTranslationUnit TU);
157 CXTranslationUnit TU);
[all …]
H A DCXCursor.cpp36 CXCursor C = {K, 0, {nullptr, nullptr, TU}}; in MakeCXCursorInvalid()
142 assert(D && TU && "Invalid arguments!"); in MakeCXCursor()
172 assert(S && TU && "Invalid arguments!"); in MakeCXCursor()
634 CXCursor C = {K, 0, {Parent, S, TU}}; in MakeCXCursor()
866 CXCursor C = {K, 0, {Parent, S, TU}}; in MakeCXCursor()
908 assert(TU && "Invalid arguments!"); in MakeCursorObjCClassRef()
1027 ASTUnit *TU = getCursorASTUnit(C); in getCursorPreprocessingDirective() local
1028 return TU->mapRangeFromPreamble(Range); in getCursorPreprocessingDirective()
1167 if (!TU) in getCursorASTUnit()
1169 return cxtu::getASTUnit(TU); in getCursorASTUnit()
[all …]
H A DCIndexHigh.cpp46 CXTranslationUnit TU; member
58 : TU(TU), FID(FID), SelectorIdIdx(selectorIdIdx), visitor(visitor) { in FindFileIdRefVisitData()
116 getTopOverriddenMethods(TU, D, methods); in isOverriddingMethod()
223 FindFileIdRefVisitData data(TU, FID, Dcl, in findIdRefsInFile()
233 CursorVisitor FindIdRefsVisitor(TU, in findIdRefsInFile()
313 ASTUnit *Unit = cxtu::getASTUnit(TU); in findMacroRefsInFile()
328 CursorVisitor FindMacroRefsVisitor(TU, in findMacroRefsInFile()
383 assert(TU && File && Visitor.visit); in findIncludesInFile()
385 ASTUnit *Unit = cxtu::getASTUnit(TU); in findIncludesInFile()
480 if (cxtu::isNotUsableTU(TU)) { in clang_findIncludesInFile()
[all …]
H A DCIndexInclusionStack.cpp22 void getInclusions(bool IsLocal, unsigned n, CXTranslationUnit TU, in getInclusions() argument
24 ASTUnit *CXXUnit = cxtu::getASTUnit(TU); in getInclusions()
69 void clang_getInclusions(CXTranslationUnit TU, CXInclusionVisitor CB, in clang_getInclusions() argument
71 if (cxtu::isNotUsableTU(TU)) { in clang_getInclusions()
72 LOG_BAD_TU(TU); in clang_getInclusions()
76 SourceManager &SM = cxtu::getASTUnit(TU)->getSourceManager(); in clang_getInclusions()
85 getInclusions(/*IsLocal=*/false, SM.loaded_sloc_entry_size(), TU, CB, in clang_getInclusions()
93 getInclusions(/*IsLocal=*/true, n, TU, CB, clientData); in clang_getInclusions()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/
H A DTweakTesting.cpp88 TestTU TU; in apply() local
89 TU.Filename = std::string(FileName); in apply()
90 TU.HeaderCode = Header; in apply()
92 TU.Code = std::string(Input.code()); in apply()
93 TU.ExtraArgs = ExtraArgs; in apply()
94 ParsedAST AST = TU.build(); in apply()
143 TestTU TU; in build() local
144 TU.Filename = std::string(FileName); in build()
145 TU.HeaderCode = Header; in build()
146 TU.Code = wrap(Context, Code); in build()
[all …]
/llvm-project-15.0.7/bolt/test/X86/
H A Ddwarf4-ftypes-dwp-input-dwp-output.test10 …how-form --verbose --debug-tu-index main.exe.dwp | FileCheck -check-prefix=PRE-BOLT-DWP-TU-INDEX %s
13 …ow-form --verbose --debug-tu-index main.exe.bolt.dwp | FileCheck -check-prefix=BOLT-DWP-TU-INDEX %s
15 ; Test input into bolt a DWP file with TU Index.
21 ; PRE-BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 4
22 ; PRE-BOLT-DWP-TU-INDEX: Index Signature
23 ; PRE-BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2
24 ; PRE-BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e56
29 ; BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 4
30 ; BOLT-DWP-TU-INDEX: Index Signature
31 ; BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2
[all …]
H A Ddwarf4-ftypes-dwo-input-dwp-output.test11 …ow-form --verbose --debug-tu-index main.exe.bolt.dwp | FileCheck -check-prefix=BOLT-DWP-TU-INDEX %s
13 ; Test input into bolt a .dwo file with TU Index.
19 ; PRE-BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 4
20 ; PRE-BOLT-DWP-TU-INDEX: Index Signature
21 ; PRE-BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2
22 ; PRE-BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e56
27 ; BOLT-DWP-TU-INDEX: version = 2, units = 2, slots = 4
28 ; BOLT-DWP-TU-INDEX: Index Signature
29 ; BOLT-DWP-TU-INDEX: 0x675d23e4f33235f2
30 ; BOLT-DWP-TU-INDEX-NEXT: 0x49dc260088be7e56
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dtransparent-union-redecl.c10 } TU __attribute__((transparent_union)); typedef
16 void f0(TU tu) {} in f0()
24 void f1(TU tu) {} in f1()
29 void f2(TU tu);
36 void f3(TU tu);
44 void knrStyle(tu) TU tu; {} in knrStyle()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterFixtures.cpp41 ASTImporterTestBase::TU::TU(StringRef Code, StringRef FileName, in TU() function in clang::ast_matchers::ASTImporterTestBase::TU
63 ASTImporterTestBase::TU::~TU() {} in ~TU()
65 void ASTImporterTestBase::TU::lazyInitImporter( in lazyInitImporter()
79 Decl *ASTImporterTestBase::TU::import( in import()
98 QualType ASTImporterTestBase::TU::import( in import()
134 auto It = llvm::find_if(FromTUs, [From](const TU &E) { in findFromTU()
149 TU &FromTU = FromTUs.back(); in getImportedDecl()
182 TU &Tu = FromTUs.back(); in getTuDecl()
197 TU *FromTU = findFromTU(From); in Import()
206 TU *FromTU = findFromTU(From); in importOrError()
[all …]
/llvm-project-15.0.7/clang/tools/c-index-test/
H A Dc-index-test.c200 *TU = 0; in CreateTranslationUnit()
1291 CXTranslationUnit TU; member
1892 CXTranslationUnit TU; in print_target_info() local
1973 Data.TU = TU; in perform_test_load()
1980 PV(TU); in perform_test_load()
1982 PrintDiagnostics(TU); in perform_test_load()
1996 CXTranslationUnit TU; in perform_test_load_tu() local
2168 TU, in perform_test_reparse_source()
2304 cursor = clang_getCursor(TU, clang_getLocation(TU, file, line, col)); in perform_file_scan()
3929 index_data.TU = TU; in index_ast_file()
[all …]

1234567