[clang-tools-extra] [clang-tidy] fix false positives for bugprone-macro-parentheses in C++ templates (PR #174329)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 4 09:11:04 PST 2026
================
@@ -54,3 +54,20 @@
// These are allowed for now..
#define MAYBE1 *12.34
#define MAYBE2 <<3
+#define MAYBE3 a < b * c
+
+#define CAST1(type, p) (reinterpret_cast<type*>(p))
----------------
vbvictor wrote:
Can we add tests that will trigger check.
https://github.com/llvm/llvm-project/pull/174329
More information about the cfe-commits
mailing list