Skip to content

Commit

Permalink
Revert AST analyzer typename print fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansaya committed Nov 10, 2023
1 parent 1b4757c commit a514b8f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions etc/clang_plugin/plugin_ASTAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,7 @@ namespace clang

std::string GetTypeNameCanonical(const QualType& t, const PrintingPolicy& pp) const
{
std::string typeName;
llvm::raw_string_ostream ss(typeName);
t.getCanonicalType().print(ss, pp);
ss.str();
auto typeName = t->getCanonicalTypeInternal().getAsString(pp);
const auto key = std::string("class ");
const auto constkey = std::string("const class ");
if(typeName.find(key) == 0)
Expand Down

0 comments on commit a514b8f

Please sign in to comment.