Home
last modified time | relevance | path

Searched refs:USR (Results 1 – 25 of 59) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DAPI.cpp32 auto Result = RecordMap.insert({USR, nullptr}); in addTopLevelRecord()
54 StringRef Name, StringRef USR, PresumedLoc Loc, in addGlobalFunction() argument
101 StringRef Name, StringRef USR, PresumedLoc Loc, in addObjCCategory() argument
111 auto It = ObjCInterfaces.find(Interface.USR); in addObjCCategory()
119 StringRef Name, StringRef USR, PresumedLoc Loc, in addObjCInterface() argument
191 SmallString<128> USR; in recordUSR() local
192 index::generateUSRForDecl(D, USR); in recordUSR()
193 return copyString(USR); in recordUSR()
198 SmallString<128> USR; in recordUSRForMacro() local
199 index::generateUSRForMacro(Name, SL, SM, USR); in recordUSRForMacro()
[all …]
H A DExtractAPIConsumer.cpp264 StringRef USR = API.recordUSR(Decl); in VisitVarDecl() local
325 StringRef USR = API.recordUSR(Decl); in VisitFunctionDecl() local
366 StringRef USR = API.recordUSR(Decl); in VisitEnumDecl() local
407 StringRef USR = API.recordUSR(Decl); in VisitRecordDecl() local
441 StringRef USR = API.recordUSR(Decl); in VisitObjCInterfaceDecl() local
488 StringRef USR = API.recordUSR(Decl); in VisitObjCProtocolDecl() local
528 StringRef USR = API.recordUSR(Decl); in VisitTypedefNameDecl() local
549 StringRef USR = API.recordUSR(Decl); in VisitObjCCategoryDecl() local
745 StringRef USR = API.recordUSR(Ivar); in recordObjCInstanceVariables() local
845 StringRef USR = in EndOfMainFile() local
[all …]
H A DDeclarationFragments.cpp109 SmallString<128> USR; in getFragmentsForNNS() local
110 index::generateUSRForDecl(NS, USR); in getFragmentsForNNS()
118 SmallString<128> USR; in getFragmentsForNNS() local
119 index::generateUSRForDecl(Alias, USR); in getFragmentsForNNS()
258 std::string USR = in getFragmentsForType() local
262 USR); in getFragmentsForType()
283 SmallString<128> USR; in getFragmentsForType() local
284 index::generateUSRForDecl(Decl, USR); in getFragmentsForType()
287 USR); in getFragmentsForType()
291 SmallString<128> USR; in getFragmentsForType() local
[all …]
/llvm-project-15.0.7/clang/include/clang/ExtractAPI/
H A DAPI.h58 StringRef USR; member
104 APIRecord(RecordKind Kind, StringRef USR, StringRef Name, in APIRecord()
108 : USR(USR), Name(Name), Location(Location), Availability(Availability), in APIRecord()
178 EnumRecord(StringRef USR, StringRef Name, PresumedLoc Loc, in EnumRecord()
198 : APIRecord(RK_StructField, USR, Name, Loc, Availability, in StructFieldRecord()
213 StructRecord(StringRef USR, StringRef Name, PresumedLoc Loc, in StructRecord()
278 : APIRecord(RK_ObjCIvar, USR, Name, Loc, Availability, in ObjCInstanceVariableRecord()
300 : APIRecord(RK_ObjCMethod, USR, Name, Loc, Availability, in ObjCMethodRecord()
316 StringRef USR; member
323 : Name(Name), USR(USR), Source(Source) {} in Name()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-doc/
H A DRepresentation.h123 : USR(USR), Name(Name), RefType(IT) {} in Reference()
127 : USR(USR), Name(Name), RefType(IT), Path(Path), in Reference()
246 Info(InfoType IT, SymbolID USR) : USR(USR), IT(IT) {} in Info()
248 : USR(USR), IT(IT), Name(Name) {} in Info()
250 : USR(USR), IT(IT), Name(Name), Path(Path) {} in Info()
256 SymbolID USR = member
285 NamespaceInfo(SymbolID USR) : Info(InfoType::IT_namespace, USR) {} in NamespaceInfo()
306 SymbolInfo(InfoType IT, SymbolID USR) : Info(IT, USR) {} in SymbolInfo()
321 FunctionInfo(SymbolID USR) : SymbolInfo(InfoType::IT_function, USR) {} in FunctionInfo()
341 RecordInfo(SymbolID USR) : SymbolInfo(InfoType::IT_record, USR) {} in RecordInfo()
[all …]
H A DRepresentation.cpp39 std::unique_ptr<Info> Merged = std::make_unique<T>(Values[0]->USR); in reduce()
51 if (ChildToMerge.USR == Children[I].USR) in getChildIndexIfExists()
164 return RefType == Other.RefType && USR == Other.USR; in mergeable()
179 if (USR == EmptySID) in mergeBase()
180 USR = Other.USR; in mergeBase()
196 return IT == Other.IT && USR == Other.USR; in mergeable()
255 if (ReturnType.Type.USR == EmptySID && ReturnType.Type.Name == "") in merge()
257 if (Parent.USR == EmptySID && Parent.Name == "") in merge()
282 toHex(llvm::toStringRef(USR))); in extractName()
285 toHex(llvm::toStringRef(USR))); in extractName()
[all …]
H A DSerialize.cpp211 llvm::SmallString<128> USR; in getUSRForDecl() local
214 return hashUSR(USR); in getUSRForDecl()
394 I.USR = getUSRForDecl(D); in populateInfo()
507 ParentI->USR = I->Namespace.empty() ? SymbolID() : I->Namespace[0].USR; in emitInfo()
542 ParentI->USR = I->Namespace[0].USR; in emitInfo()
550 ParentI->USR = I->Namespace[0].USR; in emitInfo()
575 ParentI->USR = Func.Namespace[0].USR; in emitInfo()
577 ParentI->USR = SymbolID(); in emitInfo()
611 ParentI->USR = ParentUSR; in emitInfo()
645 ParentI->USR = Enum.Namespace[0].USR; in emitInfo()
[all …]
H A DGenerators.cpp68 auto It = std::find(I->Children.begin(), I->Children.end(), R.USR); in addInfoToIndex()
74 I->Children.emplace_back(R.USR, R.Name, R.RefType, R.Path); in addInfoToIndex()
82 auto It = std::find(I->Children.begin(), I->Children.end(), Info->USR); in addInfoToIndex()
85 I->Children.emplace_back(Info->USR, Info->extractName(), Info->IT, in addInfoToIndex()
H A DMapper.cpp33 llvm::SmallString<128> USR; in mapDecl() local
35 if (index::generateUSRForDecl(D, USR)) in mapDecl()
47 CDCtx.ECtx->reportResult(llvm::toHex(llvm::toStringRef(I.first->USR)), in mapDecl()
50 CDCtx.ECtx->reportResult(llvm::toHex(llvm::toStringRef(I.second->USR)), in mapDecl()
H A DYAMLGenerator.cpp94 SymbolID USR; in StringToSymbol() local
96 std::copy(HexString.begin(), HexString.end(), USR.begin()); in StringToSymbol()
97 return SymbolID(USR); in StringToSymbol()
115 IO.mapRequired("USR", I.USR); in InfoMapping()
171 IO.mapOptional("USR", Ref.USR, SymbolID()); in mapping()
/llvm-project-15.0.7/clang/test/Index/
H A Dannotate-comments-property-accessor.m16 …ine="[[@LINE-1]]" column="51"><Name>MyProperty</Name><USR>c:objc(cs)AppDelegate(py)MyProperty</USR
22 …@LINE-1]]" column="15"><Name>GeneralProperty</Name><USR>c:objc(cs)AppDelegate(py)GeneralProperty</
23 …@LINE-2]]" column="15"><Name>GeneralProperty</Name><USR>c:objc(cs)AppDelegate(py)GeneralProperty</
32 …column="32"><Name>PropertyInPrimaryClass</Name><USR>c:objc(cs)AppDelegate(py)PropertyInPrimaryClas…
33 …column="32"><Name>PropertyInPrimaryClass</Name><USR>c:objc(cs)AppDelegate(py)PropertyInPrimaryClas…
42 …lumn="1"><Name>PropertyInClassExtension</Name><USR>c:objc(cs)AppDelegate(py)PropertyInClassExtensi…
52 …umn="54"><Name>PropertyInClassExtension</Name><USR>c:objc(cs)AppDelegate(py)PropertyInClassExtensi…
53 …umn="54"><Name>PropertyInClassExtension</Name><USR>c:objc(cs)AppDelegate(py)PropertyInClassExtensi…
H A Doverriding-method-comments.mm22 …mments.mm" line="[[@LINE-3]]" column="1"><Name>METH:</Name><USR>c:objc(cs)Root(im)METH:</USR><Decl…
31 …mments.mm" line="[[@LINE-3]]" column="1"><Name>METH:</Name><USR>c:objc(cs)Root(im)METH:</USR><Decl…
37 …mments.mm" line="[[@LINE-3]]" column="1"><Name>METH:</Name><USR>c:objc(cs)Root(im)METH:</USR><Decl…
64 …ts.mm" line="[[@LINE-2]]" column="16"><Name>foo_pure</Name><USR>c:@S@Base@F@foo_pure#I#</USR><Decl…
70 …mm" line="[[@LINE-2]]" column="16"><Name>foo_inline</Name><USR>c:@S@Base@F@foo_inline#I#</USR><Dec…
86 …ts.mm" line="[[@LINE-2]]" column="16"><Name>foo_pure</Name><USR>c:@S@Base@F@foo_pure#I#</USR><Decl…
90 …mm" line="[[@LINE-2]]" column="16"><Name>foo_inline</Name><USR>c:@S@Base@F@foo_inline#I#</USR><Dec…
97 …ethod-comments.mm" line="[[@LINE-2]]" column="6"><Name>foo</Name><USR>c:@F@foo#I#</USR><Declaratio…
101 …ethod-comments.mm" line="[[@LINE-2]]" column="6"><Name>foo</Name><USR>c:@F@foo#I#</USR><Declaratio…
107 …thod-comments.mm" line="[[@LINE-2]]" column="6"><Name>foo1</Name><USR>c:@F@foo1#I#</USR><Declarati…
[all …]
H A Dindex-subscripting-literals.m44 // CHECK: [indexEntityReference]: kind: variable | name: idx | USR: c:@idx | lang: C | cursor:…
45 …ariable | name: p | USR: c:@p | lang: C | cursor: DeclRefExpr=p:23:4 | loc: 27:16 | <parent>:: kin…
49 // CHECK-NEXT: [indexEntityReference]: kind: variable | name: p | USR: c:@p | lang: C | cursor: Dec…
50 // CHECK-NEXT: [indexEntityReference]: kind: variable | name: p | USR: c:@p | lang: C | cursor: Dec…
51 // CHECK-NEXT: [indexEntityReference]: kind: variable | name: idx | USR: c:@idx | lang: C | cursor:…
56 // CHECK-NEXT: [indexEntityReference]: kind: variable | name: key | USR: c:@key | lang: C | cursor:…
58 // CHECK-NEXT: [indexEntityReference]: kind: variable | name: key | USR: c:@key | lang: C | cursor:…
59 // CHECK-NEXT: [indexEntityReference]: kind: variable | name: newObject | USR: c:@newObject | lang:…
63 // CHECK-NEXT: [indexEntityReference]: kind: variable | name: key | USR: c:@key | lang: C | cursor:…
64 // CHECK-NEXT: [indexEntityReference]: kind: variable | name: newObject | USR: c:@newObject | lang:…
[all …]
H A Dannotate-comments-typedef.m20 …ents-typedef.m" line="[[@LINE-1]]" column="3"><Name>MyEnum</Name><USR>c:@T@MyEnum</USR><Declaratio…
30 …ate-comments-typedef.m" line="[[@LINE-6]]" column="6"><Name>E</Name><USR>c:@E@E</USR><Declaration>…
31 …te-comments-typedef.m" line="[[@LINE-2]]" column="16"><Name>E</Name><USR>c:@E@E</USR><Declaration>…
38 …comments-typedef.m" line="[[@LINE-1]]" column="11"><Name>Foo</Name><USR>c:@T@Foo</USR><Declaration…
39 …ef.m" line="[[@LINE-4]]" column="9"><Name>&lt;anonymous&gt;</Name><USR>c:@SA@Foo</USR><Declaration…
48 …m" line="[[@LINE-2]]" column="21"><Name>Foo1T</Name><USR>c:annotate-comments-typedef.m@T@Foo1T</US…
H A Dheaderfile-comment-to-html.m20 …t-to-html.m" line="[[@LINE-2]]" column="12"><Name>Device</Name><USR>c:objc(cs)Device</USR><Headerf…
42 …t-to-html.m" line="[[@LINE-2]]" column="12"><Name>Sensor</Name><USR>c:objc(cs)Sensor</USR><Headerf…
65 …o-html.m" line="[[@LINE-2]]" column="12"><Name>VTDevice</Name><USR>c:objc(cs)VTDevice</USR><Header…
86 …ml.m" line="[[@LINE-1]]" column="13"><Name>uses_stdio_h</Name><USR>c:@F@uses_stdio_h</USR><Headerf…
102 …m" line="[[@LINE-1]]" column="13"><Name>uses_argorithm</Name><USR>c:@F@uses_argorithm</USR><Header…
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-doc/
H A DGeneratorTest.cpp22 InfoA->USR = serialize::hashUSR("1"); in TEST()
26 InfoC->USR = serialize::hashUSR("3"); in TEST()
28 RefB.USR = serialize::hashUSR("2"); in TEST()
33 InfoD->USR = serialize::hashUSR("4"); in TEST()
36 InfoF->USR = serialize::hashUSR("6"); in TEST()
38 RefD.USR = serialize::hashUSR("4"); in TEST()
40 RefE.USR = serialize::hashUSR("5"); in TEST()
H A DMergeTest.cpp27 One.ChildFunctions.back().USR = NonEmptySID; in TEST()
30 One.ChildEnums.back().USR = NonEmptySID; in TEST()
63 Expected->ChildFunctions.back().USR = NonEmptySID; in TEST()
68 Expected->ChildEnums.back().USR = NonEmptySID; in TEST()
96 One.ChildFunctions.back().USR = NonEmptySID; in TEST()
99 One.ChildEnums.back().USR = NonEmptySID; in TEST()
138 Expected->ChildFunctions.back().USR = NonEmptySID; in TEST()
143 Expected->ChildEnums.back().USR = NonEmptySID; in TEST()
/llvm-project-15.0.7/compiler-rt/lib/builtins/hexagon/
H A Ddfmul.S156 BTMPL = USR
163 USR = BTMPL define
226 TMP = USR
246 USR = TMP define
260 TMP = USR
270 USR = TMP define
347 TMP = USR
356 USR = TMP define
368 TMP = USR
375 USR = TMP define
H A Ddfdiv.S250 TMP = USR
275 USR = TMP define
302 TMP = USR // If not, just return
308 TMP = USR // Else, we want to set Unf+Inexact
315 USR = TMP define
327 TMP = USR
337 USR = TMP define
448 TMP = USR
456 USR = TMP define
H A Ddffma.S324 TMP = USR
406 AH = USR
431 USR = AH define
454 BH = USR
461 USR = BH define
469 TMP = USR
479 USR = TMP define
649 TMP = USR
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTestIndex.cpp42 std::string USR = "c:"; // We synthesize a few simple cases of USRs by hand! in sym() local
50 USR += "@N@" + replace(QName.substr(0, Pos), "::", "@N@"); // ns:: -> @N@ns in sym()
52 USR += llvm::Regex("^.*$").sub(USRFormat, Sym.Name); // e.g. func -> @F@func# in sym()
53 Sym.ID = SymbolID(USR); in sym()
87 std::string USR = USRPrefix.str() + Name.str(); in objcSym() local
90 Sym.ID = SymbolID(USR); in objcSym()
H A DSymbolInfoTests.cpp23 const std::string &USR) { in __anond8f5bf420202() argument
24 return SymbolDetails{Name, Container, USR, SymbolID(USR)}; in __anond8f5bf420202()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/
H A DDumpSymbolTests.cpp26 std::string USR = R"("usr":"c:@F@foo#")"; in TEST_F() local
29 testing::HasSubstr(USR))); in TEST_F()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolID.cpp16 SymbolID::SymbolID(llvm::StringRef USR) { in SymbolID() argument
17 auto Hash = llvm::SHA1::hash(llvm::arrayRefFromStringRef(USR)); in SymbolID()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DDiagnosticCrossTUKinds.td15 "error parsing index file: '%0' line: %1 '<USR-Length>:<USR> <File-Path>' "

123