Home
last modified time | relevance | path

Searched full:canonicaldeclaration (Results 1 – 24 of 24) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/unittests/
DIndexTests.cpp294 L.CanonicalDeclaration.FileURI = "file:///left.h"; // differs in TEST()
295 R.CanonicalDeclaration.FileURI = "file:///right.h"; in TEST()
307 EXPECT_EQ(StringRef(M.CanonicalDeclaration.FileURI), "file:///left.h"); in TEST()
321 L.CanonicalDeclaration.FileURI = "file:/left.h"; in TEST()
322 R.CanonicalDeclaration.FileURI = "file:/right.h"; in TEST()
327 EXPECT_EQ(StringRef(M.CanonicalDeclaration.FileURI), "file:/left.h"); in TEST()
333 EXPECT_EQ(StringRef(M.CanonicalDeclaration.FileURI), "file:/right.h"); in TEST()
342 L.CanonicalDeclaration.FileURI = "file:/x.proto.h"; in TEST()
343 R.CanonicalDeclaration.FileURI = "file:/x.proto"; in TEST()
346 EXPECT_EQ(StringRef(M.CanonicalDeclaration.FileURI), "file:/x.proto"); in TEST()
[all …]
DSerializationTests.cpp44 CanonicalDeclaration:
70 CanonicalDeclaration:
145 EXPECT_EQ(StringRef(Sym1.CanonicalDeclaration.FileURI), "file:///path/foo.h"); in TEST()
157 EXPECT_EQ(llvm::StringRef(Sym2.CanonicalDeclaration.FileURI), in TEST()
DFileIndexTests.cpp57 return llvm::StringRef(arg.CanonicalDeclaration.FileURI) == U;
134 X1.CanonicalDeclaration.FileURI = "file:///x1"; in TEST()
584 Sym1.CanonicalDeclaration.FileURI = AHeaderUri.c_str(); in TEST()
587 Sym2.CanonicalDeclaration.FileURI = BHeaderUri.c_str(); in TEST()
DCodeCompleteTests.cpp735 Sym.CanonicalDeclaration.FileURI = BarURI.c_str(); in TEST()
765 SymX.CanonicalDeclaration.FileURI = BarURI.c_str(); in TEST()
766 SymY.CanonicalDeclaration.FileURI = BarURI.c_str(); in TEST()
1608 NoArgsGFunc.CanonicalDeclaration.FileURI = DeclFile.c_str(); in TEST()
1639 SymX.CanonicalDeclaration.FileURI = BarURI.c_str(); in TEST()
1640 SymY.CanonicalDeclaration.FileURI = BarURI.c_str(); in TEST()
2370 Sym.CanonicalDeclaration.FileURI = DeclFile.c_str(); in TEST()
2390 Sym.CanonicalDeclaration.FileURI = DeclFile.c_str(); in TEST()
DDexTests.cpp654 RootSymbol.CanonicalDeclaration.FileURI = "unittest:///file.h"; in TEST()
656 CloseSymbol.CanonicalDeclaration.FileURI = "unittest:///a/b/c/d/e/f/file.h"; in TEST()
DDiagnosticsTests.cpp722 Sym.CanonicalDeclaration.FileURI = S.DeclaringFile.c_str(); in buildIndexWithSymbol()
825 Sym.CanonicalDeclaration.FileURI = "unittest:///x.h"; in TEST()
DSymbolCollectorTests.cpp62 return StringRef(arg.CanonicalDeclaration.FileURI) == P;
80 return rangesMatch(arg.CanonicalDeclaration, Pos);
DBackgroundIndexTests.cpp33 return !StringRef(arg.CanonicalDeclaration.FileURI).empty();
/external/llvm-project/clang-tools-extra/clangd/index/
DMerge.cpp187 if (prefer(O.CanonicalDeclaration, S.CanonicalDeclaration)) in mergeSymbol()
188 S.CanonicalDeclaration = O.CanonicalDeclaration; in mergeSymbol()
DSymbol.h56 SymbolLocation CanonicalDeclaration; member
100 /// can be different from FileURI in the CanonicalDeclaration.
162 RawCharPointerCB(S.CanonicalDeclaration.FileURI); in visitStrings()
DYAMLSerialization.cpp204 IO.mapOptional("CanonicalDeclaration", Sym.CanonicalDeclaration, in mapping()
DFileIndex.cpp131 auto It = Shards.try_emplace(S.CanonicalDeclaration.FileURI); in FileShardedIndex()
136 S.Definition.FileURI != S.CanonicalDeclaration.FileURI) { in FileShardedIndex()
DSerialization.cpp320 writeLocation(Sym.CanonicalDeclaration, Strings, OS); in writeSymbol()
348 Sym.CanonicalDeclaration = readLocation(Data, Strings); in readSymbol()
DSymbolCollector.cpp473 S.CanonicalDeclaration = *DeclLoc; in handleMacroOccurrence()
672 S.CanonicalDeclaration = *DeclLoc; in addDeclaration()
/external/llvm-project/clang-tools-extra/clangd/test/Inputs/
Dsymbols.test.yaml9 CanonicalDeclaration:
/external/llvm-project/clang-tools-extra/clangd/
DIncludeFixer.cpp144 Matched.CanonicalDeclaration.FileURI == Matched.Definition.FileURI) in fixIncompleteType()
154 URI::resolve(Sym.CanonicalDeclaration.FileURI, File); in fixesForSymbols()
453 Matched.CanonicalDeclaration.FileURI == Matched.Definition.FileURI) in lookupCached()
DXRefs.cpp169 ASTSym.CanonicalDeclaration = toIndexLocation(ASTLoc, Scratch); in getPreferredLocation()
170 IdxSym.CanonicalDeclaration = IdxLoc; in getPreferredLocation()
172 return Merged.CanonicalDeclaration; in getPreferredLocation()
401 if (auto Loc = toLSPLocation(Sym.CanonicalDeclaration, MainFilePath)) in locateASTReferent()
416 Sym.CanonicalDeclaration, Scratch), in locateASTReferent()
499 indexToLSPLocation(Sym.CanonicalDeclaration, MainFilePath); in locateSymbolTextually()
1162 indexToLSPLocation(Object.CanonicalDeclaration, *MainFilePath); in findImplementations()
DHeaderSourceSwitch.cpp105 AwardTarget(Sym.CanonicalDeclaration.FileURI); in getCorrespondingHeaderOrSource()
DFindSymbols.cpp83 Sym.Definition ? Sym.Definition : Sym.CanonicalDeclaration, TUPath); in symbolToLocation()
DQuality.cpp291 SymbolURI = IndexResult.CanonicalDeclaration.FileURI; in merge()
DCodeComplete.cpp340 URI::resolve(C.IndexResult->CanonicalDeclaration.FileURI, FileName); in CodeCompletionBuilder()
365 C.IndexResult->CanonicalDeclaration.FileURI, Inc, FileName, in CodeCompletionBuilder()
/external/llvm-project/clang-tools-extra/clangd/index/dex/
DDex.cpp65 if (!llvm::StringRef(Sym.CanonicalDeclaration.FileURI).empty()) in add()
67 generateProximityURIs(Sym.CanonicalDeclaration.FileURI)) in add()
/external/llvm-project/clang-tools-extra/clangd/index/remote/marshalling/
DMarshalling.cpp162 Result.CanonicalDeclaration = *Declaration; in fromProtobuf()
267 auto Declaration = toProtobuf(From.CanonicalDeclaration); in toProtobuf()
/external/llvm-project/clang-tools-extra/clangd/unittests/remote/
DMarshallingTests.cpp74 Sym.CanonicalDeclaration = Location; in createSymbol()