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 | d3e8074ac9b8b2c3068b6b1dab8867f43b902715 (patch) | |
tree | 97fc91ec74a487d89ab36ee30a802ecf2e7de7f8 /utils | |
parent | feb18f5ff2cfa952fec4e751eb9665706c4674af (diff) |
Turns out there is a simpler way of getting a set difference in bash than parsing diff output.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/find-unused-diagnostics.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/find-unused-diagnostics.sh b/utils/find-unused-diagnostics.sh index cd6444d1e0..c7fa01a935 100755 --- a/utils/find-unused-diagnostics.sh +++ b/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") |