diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-01-14 15:00:48 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-01-14 15:00:48 +0000 |
commit | e2e6e6a3d584c5f84be06903e3b8044c0491e5d9 (patch) | |
tree | 1def61dc3fd5433022cdd7b6c1ad440f3e2ace0f | |
parent | 4e958e5ddbf9c35caba73a9a1fb0008e497aef2c (diff) | |
download | bcm5719-llvm-e2e6e6a3d584c5f84be06903e3b8044c0491e5d9.tar.gz bcm5719-llvm-e2e6e6a3d584c5f84be06903e3b8044c0491e5d9.zip |
Turns out there is a simpler way of getting a set difference in bash than parsing diff output.
llvm-svn: 172420
-rwxr-xr-x | clang/utils/find-unused-diagnostics.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/utils/find-unused-diagnostics.sh b/clang/utils/find-unused-diagnostics.sh index cd6444d1e0c..c7fa01a9352 100755 --- a/clang/utils/find-unused-diagnostics.sh +++ b/clang/utils/find-unused-diagnostics.sh @@ -12,4 +12,4 @@ ALL_SOURCES=$(find lib include tools -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. -diff -u <(sort -u <<< "$ALL_DIAGS") <(sort -u <<< "$DIAGS_IN_SOURCES") | sed -En 's/^-([a-z_]+)/\1/p' +comm -23 <(sort -u <<< "$ALL_DIAGS") <(sort -u <<< "$DIAGS_IN_SOURCES") |