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 8859 Build 8859: arc lint + arc unit
Event Timeline
Comment Actions
+Ben who I believe had written a similar function once.
lib/Tooling/ASTDiff/ASTDiff.cpp | ||
---|---|---|
377–378 | "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 | ||
---|---|---|
391 | Val.startswith(ContextPrefix) |
lib/Tooling/ASTDiff/ASTDiff.cpp | ||
---|---|---|
382 | 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 | ||
---|---|---|
382 | FunctionDecl should not be used for example |
"If the is ..." doesn't parse.