Jelajahi Sumber

Unused diagnostics can occur in tblgen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323435 91177308-0d34-0410-b5e6-96231b3b80d8
Benjamin Kramer 7 tahun lalu
induk
melakukan
244006d31e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      utils/find-unused-diagnostics.sh

+ 1 - 1
utils/find-unused-diagnostics.sh

@@ -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.