Home
last modified time | relevance | path

Searched refs:HeaderCode (Results 1 – 17 of 17) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/unittests/
DTestTU.h42 static TestTU withHeaderCode(llvm::StringRef HeaderCode) { in withHeaderCode()
44 TU.HeaderCode = std::string(HeaderCode); in withHeaderCode()
53 std::string HeaderCode; member
DIndexActionTests.cpp144 std::string HeaderCode = R"cpp( in TEST_F() local
151 addFile(HeaderPath, HeaderCode); in TEST_F()
162 HasDigest(digest(HeaderCode)))))); in TEST_F()
180 std::string HeaderCode = R"cpp( in TEST_F() local
185 addFile(HeaderPath, HeaderCode); in TEST_F()
198 HasDigest(digest(HeaderCode)))), in TEST_F()
215 std::string HeaderCode = ""; in TEST_F() local
218 addFile(HeaderPath, HeaderCode); in TEST_F()
230 HasDigest(digest(HeaderCode)))))); in TEST_F()
DFileIndexTests.cpp173 File.HeaderCode = std::string(Code); in update()
242 TU.HeaderCode = "class Foo{};"; in TEST()
335 const char *HeaderCode = "class Foo {};"; in TEST() local
343 findSymbol(TestTU::withHeaderCode(HeaderCode).headerSymbols(), "Foo"); in TEST()
351 Test.HeaderCode = HeaderCode; in TEST()
358 Test2.HeaderCode = HeaderCode; in TEST()
372 Annotations HeaderCode(R"cpp( in TEST() local
386 Test.HeaderCode = std::string(HeaderCode.code()); in TEST()
415 TU.HeaderCode = "class A {}; class B : public A {};"; in TEST()
459 TU.HeaderCode = "class Foo{};"; in TEST()
[all …]
DHeaderSourceSwitchTests.cpp86 TU.HeaderCode = R"cpp( in TEST()
120 Testing.HeaderCode = "void A_Sym1();"; in TEST()
126 Testing.HeaderCode = R"cpp( in TEST()
142 llvm::StringRef HeaderCode; in TEST() member
176 TestTU TU = TestTU::withCode(Case.HeaderCode); in TEST()
DIndexTests.cpp359 const char *HeaderCode = "class Foo;"; in TEST() local
366 Test.HeaderCode = HeaderCode; in TEST()
373 Test.HeaderCode = HeaderCode; in TEST()
383 Test2.HeaderCode = HeaderCode; in TEST()
DTestTU.cpp35 FS.Files[FullHeaderName] = HeaderCode; in inputs()
43 if (!HeaderCode.empty()) { in inputs()
125 llvm::StringRef(HeaderCode).contains(Marker)) in build()
DXRefsTests.cpp311 TU.HeaderCode = std::string(SymbolHeader.code()); in TEST()
358 TU.HeaderCode = std::string(SymbolHeader.code()); in TEST()
1076 TU.HeaderCode = std::string(Header.code()); in TEST()
1768 TU.HeaderCode = Header; in TEST()
1783 IndexedTU.HeaderCode = Header; in TEST()
1807 TU.HeaderCode = Header; in TEST()
1825 IndexedTU.HeaderCode = Header; in TEST()
DRenameTests.cpp55 TU.HeaderCode = std::string(Code.code()); in buildRefSlab()
860 OtherFile.HeaderCode = CommonHeader; in TEST()
1033 TU.HeaderCode = CommonHeader; in TEST()
1095 TU.HeaderCode = in TEST()
DParsedASTTests.cpp110 TU.HeaderCode = R"( in TEST()
127 TU.HeaderCode = R"cpp( in TEST()
330 TU.HeaderCode = R"cpp( in TEST()
DSymbolCollectorTests.cpp110 void build(llvm::StringRef HeaderCode, llvm::StringRef Code = "") { in build() argument
113 File.HeaderCode = std::string(HeaderCode); in build()
254 bool runSymbolCollector(llvm::StringRef HeaderCode, llvm::StringRef MainCode, in runSymbolCollector() argument
274 llvm::MemoryBuffer::getMemBuffer(HeaderCode));
DSourceCodeTests.cpp540 TU.HeaderCode = "#define MACRO int x;"; in TEST()
553 TU.HeaderCode = R"cpp( in TEST()
DQualityTests.cpp90 Test.HeaderCode = R"cpp( in TEST()
DDiagnosticsTests.cpp312 TU.HeaderCode = Header.code().str(); in TEST()
330 TU.HeaderCode = R"cpp( in TEST()
DTypeHierarchyTests.cpp552 TU.HeaderCode = HeaderInPreambleAnnotations.code().str(); in TEST()
DCodeCompleteTests.cpp2418 TU.HeaderCode = "#define CLANGD_PREAMBLE_HEADER x"; in TEST()
/external/llvm-project/clang-tools-extra/clangd/unittests/tweaks/
DTweakTesting.cpp96 TU.HeaderCode = Header;
116 TU.HeaderCode = Header; in apply()
/external/llvm-project/clang-tools-extra/unittests/clang-include-fixer/find-all-symbols/
DFindAllSymbolsTests.cpp64 bool runFindAllSymbols(StringRef HeaderCode, StringRef MainCode) { in runFindAllSymbols() argument
104 llvm::MemoryBuffer::getMemBuffer(HeaderCode)); in runFindAllSymbols()