[PATCH] D65635: Sidestep false positive due to a matching git repository name
rogfer01 added a comment. Thanks @efriedma. I will commit this shortly. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65635/new/ https://reviews.llvm.org/D65635 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D65635: Sidestep false positive due to a matching git repository name
This revision was automatically updated to reflect the committed changes. Closed by commit rL367826: Sidestep false positive due to a matching git repository name (authored by rogfer01, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D65635?vs=212975=213305#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65635/new/ https://reviews.llvm.org/D65635 Files: cfe/trunk/test/CodeGen/constant-comparison.c Index: cfe/trunk/test/CodeGen/constant-comparison.c === --- cfe/trunk/test/CodeGen/constant-comparison.c +++ cfe/trunk/test/CodeGen/constant-comparison.c @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -emit-llvm %s -o - 2>&1 | not grep warning -// RUN: %clang_cc1 -emit-llvm %s -o - | grep @b | count 1 +// RUN: %clang_cc1 -fno-ident -emit-llvm %s -o - | grep @b | count 1 int a, b; int *c1 = 1 < 2 ? : Index: cfe/trunk/test/CodeGen/constant-comparison.c === --- cfe/trunk/test/CodeGen/constant-comparison.c +++ cfe/trunk/test/CodeGen/constant-comparison.c @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -emit-llvm %s -o - 2>&1 | not grep warning -// RUN: %clang_cc1 -emit-llvm %s -o - | grep @b | count 1 +// RUN: %clang_cc1 -fno-ident -emit-llvm %s -o - | grep @b | count 1 int a, b; int *c1 = 1 < 2 ? : ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D65635: Sidestep false positive due to a matching git repository name
efriedma accepted this revision. efriedma added a comment. This revision is now accepted and ready to land. LGTM It would be cleaner to convert this test to FileCheck, but it's probably not worth spending the time at this point. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65635/new/ https://reviews.llvm.org/D65635 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D65635: Sidestep false positive due to a matching git repository name
rogfer01 created this revision. rogfer01 added reviewers: eli.friedman, ddunbar. Herald added a project: clang. Herald added a subscriber: cfe-commits. rogfer01 edited reviewers, added: efriedma; removed: eli.friedman. I have failures in this test because the `grep @b` gets confused by the `clang version` including a repository name like this !1 = !{!"clang version 10.0.0 (git@build-machine:llvm/llvm-monorepo.git fe958c0e8c89ec663c8e551936778e2cbb460154)"} I considered something like `grep -w` but my understanding of the manpages was that that isn't super portable. So I think it is easier to make clang not to output that metadata using `-fno-ident`. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D65635 Files: clang/test/CodeGen/constant-comparison.c Index: clang/test/CodeGen/constant-comparison.c === --- clang/test/CodeGen/constant-comparison.c +++ clang/test/CodeGen/constant-comparison.c @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -emit-llvm %s -o - 2>&1 | not grep warning -// RUN: %clang_cc1 -emit-llvm %s -o - | grep @b | count 1 +// RUN: %clang_cc1 -fno-ident -emit-llvm %s -o - | grep @b | count 1 int a, b; int *c1 = 1 < 2 ? : Index: clang/test/CodeGen/constant-comparison.c === --- clang/test/CodeGen/constant-comparison.c +++ clang/test/CodeGen/constant-comparison.c @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -emit-llvm %s -o - 2>&1 | not grep warning -// RUN: %clang_cc1 -emit-llvm %s -o - | grep @b | count 1 +// RUN: %clang_cc1 -fno-ident -emit-llvm %s -o - | grep @b | count 1 int a, b; int *c1 = 1 < 2 ? : ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits