[clang-tools-extra] [clang-tidy] warn when `true` is used as a preprocessor keyword in C (PR #128265)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 22 06:56:24 PST 2025
================
@@ -0,0 +1,22 @@
+.. title:: clang-tidy - bugprone-true-macro
+
+bugprone-true-macro
+===================
+
+In C++, ``true`` is considered a keyword by the preprocessor so an ``#if true`` enters the true branch,
----------------
EugeneZelenko wrote:
Please synchronize first statement with Release Notes. Please follow 80-characters limit.
https://github.com/llvm/llvm-project/pull/128265
More information about the cfe-commits
mailing list