[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 26 12:07:59 PDT 2025


================
@@ -0,0 +1,162 @@
+// TODO: When Clang adds support for decimal floating point types, enable these tests by:
+//    1. Removing all the #if 0 + #endif guards.
+//    2. Removing all occurrences of the string "DISABLED-" in this file.
+//    3. Deleting this message.
+
+// RUN: %check_clang_tidy %s readability-uppercase-literal-suffix %t -- -- -std=c23
----------------
localspook wrote:

This spun off into a bit of a side adventure. Turns out, `check_clang_tidy.py` completely ignores the `-std=` option in C files. Here's a proper fix for that: #150791.

https://github.com/llvm/llvm-project/pull/148275


More information about the cfe-commits mailing list