summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-move/ClangMove.h
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2016-12-06 10:12:23 +0000
committerEric Liu <ioeric@google.com>2016-12-06 10:12:23 +0000
commit47a42d53fc72718b0fd8f9f0501be7f6e565814d (patch)
tree4e5404a444d00e989281674993292577384c2145 /clang-tools-extra/clang-move/ClangMove.h
parent8977223e5520ac3cb8f7a5e04f28129eae25c3eb (diff)
downloadbcm5719-llvm-47a42d53fc72718b0fd8f9f0501be7f6e565814d.tar.gz
bcm5719-llvm-47a42d53fc72718b0fd8f9f0501be7f6e565814d.zip
[clang-move] ignore unsupported symbol kinds when checking if all symbols are moved.
llvm-svn: 288791
Diffstat (limited to 'clang-tools-extra/clang-move/ClangMove.h')
-rw-r--r--clang-tools-extra/clang-move/ClangMove.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-move/ClangMove.h b/clang-tools-extra/clang-move/ClangMove.h
index e4e145cfc43..dcc23077307 100644
--- a/clang-tools-extra/clang-move/ClangMove.h
+++ b/clang-tools-extra/clang-move/ClangMove.h
@@ -95,7 +95,9 @@ struct ClangMoveContext {
// The goal of this tool is to make the new files as compliable as possible.
//
// Note: When all declarations in old header are being moved, all code in
-// old.h/cc will be moved, which means old.h/cc are empty.
+// old.h/cc will be moved, which means old.h/cc are empty. This ignores symbols
+// that are not supported (e.g. typedef and enum) so that we always move old
+// files to new files when all symbols produced from dump_decls are moved.
class ClangMoveTool : public ast_matchers::MatchFinder::MatchCallback {
public:
ClangMoveTool(ClangMoveContext *const Context,
OpenPOWER on IntegriCloud