Searched refs:MainCode (Results 1 – 6 of 6) sorted by relevance
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | IndexActionTests.cpp | 114 std::string MainCode = "#include \"level1.h\""; in TEST_F() local 120 addFile(MainFilePath, MainCode); in TEST_F() 131 HasDigest(digest(MainCode)))), in TEST_F() 142 std::string MainCode = "#include \"header.h\""; in TEST_F() local 150 addFile(MainFilePath, MainCode); in TEST_F() 160 HasDigest(digest(MainCode)))), in TEST_F() 167 std::string MainCode = R"cpp( in TEST_F() local 184 addFile(MainFilePath, MainCode); in TEST_F() 195 HasDigest(digest(MainCode)))), in TEST_F() 206 std::string MainCode = R"cpp( in TEST_F() local [all …]
|
D | RenameTests.cpp | 1171 Annotations MainCode("class [[Fo^o]] {};"); in TEST() local 1182 TestTU TU = TestTU::withCode(MainCode.code()); in TEST() 1185 auto Results = rename({MainCode.point(), in TEST() 1197 Pair(Eq(MainFilePath), Eq(expectedResult(MainCode, NewName))))); in TEST() 1201 MainCode = Annotations("void [[Bar]]() { [[B^ar]](); }"); in TEST() 1202 TU = TestTU::withCode(MainCode.code()); in TEST() 1206 Results = rename({MainCode.point(), in TEST() 1218 Pair(Eq(MainFilePath), Eq(expectedResult(MainCode, NewName))))); in TEST() 1242 Results = rename({MainCode.point(), in TEST() 1255 auto MainCode = Annotations("int [[^x]] = 2;"); in TEST() local [all …]
|
D | FileIndexTests.cpp | 336 Annotations MainCode(R"cpp( in TEST() local 352 Test.Code = std::string(MainCode.code()); in TEST() 359 Test2.Code = std::string(MainCode.code()); in TEST() 365 RefsAre({AllOf(RefRange(MainCode.range("foo")), in TEST() 367 AllOf(RefRange(MainCode.range("foo")), in TEST() 375 Annotations MainCode(R"cpp( in TEST() local 387 Test.Code = std::string(MainCode.code()); in TEST() 394 RefsAre({AllOf(RefRange(MainCode.range("ref1")), in TEST() 399 RefsAre({AllOf(RefRange(MainCode.range("def2")), in TEST() 401 AllOf(RefRange(MainCode.range("ref2")), in TEST()
|
D | SymbolCollectorTests.cpp | 254 bool runSymbolCollector(llvm::StringRef HeaderCode, llvm::StringRef MainCode, in runSymbolCollector() argument 276 llvm::MemoryBuffer::getMemBuffer(MainCode));
|
/external/llvm-project/clang-tools-extra/unittests/clang-include-fixer/find-all-symbols/ |
D | FindAllSymbolsTests.cpp | 64 bool runFindAllSymbols(StringRef HeaderCode, StringRef MainCode) { in runFindAllSymbols() argument 124 Content += "\n" + MainCode.str(); in runFindAllSymbols()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | SemanticHighlighting.cpp | 225 StringRef MainCode = SM.getBufferOrFake(SM.getMainFileID()).getBuffer(); in collect() local 245 auto StartOfLine = positionToOffset(MainCode, Position{Line, 0}); in collect() 248 MainCode.drop_front(*StartOfLine).take_until([](char C) { in collect()
|