If the node is within a class or namespace, do not use its full
qualified name, but strip the namespace prefix.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 9197 Build 9197: arc lint + arc unit
Event Timeline
Comment Actions
+Ben who I believe had written a similar function once.
lib/Tooling/ASTDiff/ASTDiff.cpp | ||
---|---|---|
366–367 | "If the is ..." doesn't parse. |
Comment Actions
There's some similar code in tools/clang/lib/Tooling/Core/Lookup.cpp, it might make sense to share it. Otherwise this looks good.
lib/Tooling/ASTDiff/ASTDiff.cpp | ||
---|---|---|
380 | Val.startswith(ContextPrefix) |
lib/Tooling/ASTDiff/ASTDiff.cpp | ||
---|---|---|
371 | You don't need to check both NamespaceDecl and TagDecl, since you can just do one if with a NamedDecl. |
lib/Tooling/ASTDiff/ASTDiff.cpp | ||
---|---|---|
371 | FunctionDecl should not be used for example |
"If the is ..." doesn't parse.