Skip to content

Commit

Permalink
Revert "append sorts to symbols"
Browse files Browse the repository at this point in the history
This reverts commit 5a86ab5.
  • Loading branch information
h0nzZik committed Mar 13, 2020
1 parent d899173 commit efdb710
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clang-tools/ClangKast/GetKastVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class GetKastVisitor
bool TraverseIdentifierInfo(const IdentifierInfo *info, uintptr_t decl) {
if (!info) {
if (decl == 0) {
Kast::add(Kast::KApply("#NoName_COMMON-SYNTAX_NoName", Sort::NONAME));
Kast::add(Kast::KApply("#NoName_COMMON-SYNTAX", Sort::NONAME));
} else {
Kast::add(Kast::KApply("unnamed", Sort::UNNAMEDCID, {Sort::INT, Sort::STRING}));
VisitUnsigned((unsigned long long)decl);
Expand Down Expand Up @@ -1503,7 +1503,7 @@ class GetKastVisitor
switch (Kind) {
#define OVERLOADED_OPERATOR(Name,Spelling,Token,Unary,Binary,MemberOnly) \
case OO_##Name: \
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX_OpId", Sort::OPID)); \
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX", Sort::OPID)); \
break;
#include "clang/Basic/OperatorKinds.def"
default:
Expand All @@ -1515,7 +1515,7 @@ class GetKastVisitor
switch (Kind) {
#define UNARY_OP(Name, Spelling) \
case UO_##Name: \
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX_OpId", Sort::OPID)); \
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX", Sort::OPID)); \
break;
UNARY_OP(PostInc, "_++")
UNARY_OP(PostDec, "_--")
Expand Down Expand Up @@ -1548,7 +1548,7 @@ class GetKastVisitor
switch (Kind) {
#define BINARY_OP(Name, Spelling) \
case BO_##Name: \
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX_OpId", Sort::OPID)); \
Kast::add(Kast::KApply("operator" Spelling "_CPP-SYNTAX", Sort::OPID)); \
break;
BINARY_OP(PtrMemD, ".*")
BINARY_OP(PtrMemI, "->*")
Expand Down Expand Up @@ -2250,7 +2250,7 @@ class GetKastVisitor
VisitUnsigned(presumed.getColumn());
VisitBool(mgr.isInSystemHeader(loc));
} else {
Kast::add(Kast::KApply("UnknownCabsLoc_COMMON-SYNTAX_CabsLoc", Sort::CABSLOC));
Kast::add(Kast::KApply("UnknownCabsLoc_COMMON-SYNTAX", Sort::CABSLOC));
}
}

Expand Down

0 comments on commit efdb710

Please sign in to comment.