[PATCH] D36187: [clang-diff] Use the relative name for NamedDecls
Benjamin Kramer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 7 06:47:05 PDT 2017
bkramer added a comment.
There's some similar code in tools/clang/lib/Tooling/Core/Lookup.cpp, it might make sense to share it. Otherwise this looks good.
================
Comment at: lib/Tooling/ASTDiff/ASTDiff.cpp:391
+ if (!ContextPrefix.empty() &&
+ Val.substr(0, ContextPrefix.size()) == ContextPrefix)
+ Val = Val.substr(ContextPrefix.size() + 1);
----------------
Val.startswith(ContextPrefix)
https://reviews.llvm.org/D36187
More information about the cfe-commits
mailing list