Skip to content

Commit bb1a33f

Browse files
h0nzZikDwight Guth
authored andcommitted
append sorts to symbols
1 parent 809e1dc commit bb1a33f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang-tools/ClangKast/GetKastVisitor.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class GetKastVisitor
266266
bool TraverseIdentifierInfo(const IdentifierInfo *info, uintptr_t decl) {
267267
if (!info) {
268268
if (decl == 0) {
269-
Kast::add(Kast::KApply("#NoName_COMMON-SYNTAX", Sort::NONAME));
269+
Kast::add(Kast::KApply("#NoName_COMMON-SYNTAX_NoName", Sort::NONAME));
270270
} else {
271271
Kast::add(Kast::KApply("unnamed", Sort::UNNAMEDCID, {Sort::INT, Sort::STRING}));
272272
VisitUnsigned((unsigned long long)decl);
@@ -1503,7 +1503,7 @@ class GetKastVisitor
15031503
switch (Kind) {
15041504
#define OVERLOADED_OPERATOR(Name,Spelling,Token,Unary,Binary,MemberOnly) \
15051505
case OO_##Name: \
1506-
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX", Sort::OPID)); \
1506+
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX_OpId", Sort::OPID)); \
15071507
break;
15081508
#include "clang/Basic/OperatorKinds.def"
15091509
default:
@@ -1515,7 +1515,7 @@ class GetKastVisitor
15151515
switch (Kind) {
15161516
#define UNARY_OP(Name, Spelling) \
15171517
case UO_##Name: \
1518-
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX", Sort::OPID)); \
1518+
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX_OpId", Sort::OPID)); \
15191519
break;
15201520
UNARY_OP(PostInc, "_++")
15211521
UNARY_OP(PostDec, "_--")
@@ -1548,7 +1548,7 @@ class GetKastVisitor
15481548
switch (Kind) {
15491549
#define BINARY_OP(Name, Spelling) \
15501550
case BO_##Name: \
1551-
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX", Sort::OPID)); \
1551+
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX_OpId", Sort::OPID)); \
15521552
break;
15531553
BINARY_OP(PtrMemD, ".*")
15541554
BINARY_OP(PtrMemI, "->*")
@@ -2250,7 +2250,7 @@ class GetKastVisitor
22502250
VisitUnsigned(presumed.getColumn());
22512251
VisitBool(mgr.isInSystemHeader(loc));
22522252
} else {
2253-
Kast::add(Kast::KApply("UnknownCabsLoc_COMMON-SYNTAX", Sort::CABSLOC));
2253+
Kast::add(Kast::KApply("UnknownCabsLoc_COMMON-SYNTAX_CabsLoc", Sort::CABSLOC));
22542254
}
22552255
}
22562256

0 commit comments

Comments
 (0)