Summary:
symbols in libcpp are inside the inline namespace, printQualifierAsString will
print the inline namespace, which is unexpected.
Reviewers: kadircet
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D75174
#include "StdSymbolMap.inc"
#undef SYMBOL
});
- return StdSymbols->count(RenameDecl.getQualifiedNameAsString());
+ return StdSymbols->count(printQualifiedName(RenameDecl));
}
enum ReasonToReject {
}
)cpp",
"not a supported kind", !HeaderFile, Index},
+ {R"cpp(// disallow rename on blacklisted symbols (e.g. std symbols)
+ namespace std {
+ inline namespace __u {
+ class str^ing {};
+ }
+ }
+ )cpp",
+ "not a supported kind", !HeaderFile, Index},
{R"cpp(
void foo(int);