Unused diagnostics can occur in tblgen.

llvm-svn: 323435
This commit is contained in:
Benjamin Kramer 2018-01-25 15:57:22 +00:00
parent 75ae75cd17
commit 07203ca132

View File

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