r323435 - Unused diagnostics can occur in tblgen.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 25 07:57:22 PST 2018


Author: d0k
Date: Thu Jan 25 07:57:22 2018
New Revision: 323435

URL: http://llvm.org/viewvc/llvm-project?rev=323435&view=rev
Log:
Unused diagnostics can occur in tblgen.

Modified:
    cfe/trunk/utils/find-unused-diagnostics.sh

Modified: cfe/trunk/utils/find-unused-diagnostics.sh
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/find-unused-diagnostics.sh?rev=323435&r1=323434&r2=323435&view=diff
==============================================================================
--- cfe/trunk/utils/find-unused-diagnostics.sh (original)
+++ cfe/trunk/utils/find-unused-diagnostics.sh Thu Jan 25 07:57:22 2018
@@ -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.




More information about the cfe-commits mailing list