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