]> granicus.if.org Git - clang/commitdiff
Unused diagnostics can occur in tblgen.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 25 Jan 2018 15:57:22 +0000 (15:57 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 25 Jan 2018 15:57:22 +0000 (15:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323435 91177308-0d34-0410-b5e6-96231b3b80d8

utils/find-unused-diagnostics.sh

index cd48e6920fb8ae16153123b5bef78ed50d85972b..783f58ba1d30a5a1eac797f20840bef1472e4b00 100755 (executable)
@@ -8,7 +8,7 @@
 ALL_DIAGS=$(grep -E --only-matching --no-filename '(err_|warn_|ext_|note_)[a-z_]+' ./include/clang/Basic/Diagnostic*.td)
 
 # Now look for all potential identifiers in the source files.
-ALL_SOURCES=$(find lib include tools -name \*.cpp -or -name \*.h)
+ALL_SOURCES=$(find lib include tools utils -name \*.cpp -or -name \*.h)
 DIAGS_IN_SOURCES=$(grep -E --only-matching --no-filename '(err_|warn_|ext_|note_)[a-z_]+' $ALL_SOURCES)
 
 # Print all diags that occur in the .td files but not in the source.