[PATCH] D142800: [Clang][Diagnostic] Add `-Wcomparison-op-parentheses` to warn on chained comparisons
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 30 07:02:26 PST 2023
erichkeane added inline comments.
================
Comment at: clang/test/Sema/comparison-op-parentheses.c:1
+// RUN: %clang_cc1 -fsyntax-only -verify %s -DSILENCE
+// RUN: %clang_cc1 -fsyntax-only -verify %s -Wcomparison-op-parentheses
----------------
don't use macros to control conditional diagnostics like that. You use `-verify=something`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142800/new/
https://reviews.llvm.org/D142800
More information about the cfe-commits
mailing list