[clang-tools-extra] 14af1ad - [include-cleaner] Add two command-line flags to the include-cleaner
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 5 03:25:13 PST 2022
Author: Haojian Wu
Date: 2022-12-05T12:20:34+01:00
New Revision: 14af1ad4ee0ab0c453af75e43cf469bd530536cf
URL: https://github.com/llvm/llvm-project/commit/14af1ad4ee0ab0c453af75e43cf469bd530536cf
DIFF: https://github.com/llvm/llvm-project/commit/14af1ad4ee0ab0c453af75e43cf469bd530536cf.diff
LOG: [include-cleaner] Add two command-line flags to the include-cleaner
category.
Added:
Modified:
clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp b/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
index 0a920f6e9ca0a..cdd0ea722f7c5 100644
--- a/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
+++ b/clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp
@@ -69,11 +69,13 @@ cl::opt<bool> Insert{
"insert",
cl::desc("Allow header insertions"),
cl::init(true),
+ cl::cat(IncludeCleaner),
};
cl::opt<bool> Remove{
"remove",
cl::desc("Allow header removals"),
cl::init(true),
+ cl::cat(IncludeCleaner),
};
std::atomic<unsigned> Errors = ATOMIC_VAR_INIT(0);
More information about the cfe-commits
mailing list