[clang-tools-extra] readability-identifier-naming should add universal default options (PR #171686)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 15 00:54:37 PST 2025
================
@@ -0,0 +1,50 @@
+// RUN: %check_clang_tidy %s readability-identifier-naming %t -- \
+// RUN: -config='{CheckOptions: {}}' \
+// RUN: -- -fno-delayed-template-parsing
+
+// Empty options effectively disable the check, allowing PascalCase...
+#define MyMacro
+
+namespace MyNamespace {
+
+using MyAlias = int;
+
+int MyGlobal;
+
+struct MyStruct {
+ int MyField;
+};
+
+template <typename MyTypename>
+int MyFunction(int MyArgument) {
+ int MyVariable = MyArgument;
+ return MyVariable;
+}
+
+template int MyFunction<int>(int);
+
+}
+
+// ...or lower_case for the same set of symbol types
----------------
localspook wrote:
```suggestion
// ...or lower_case for the same set of symbol types.
```
https://github.com/llvm/llvm-project/pull/171686
More information about the cfe-commits
mailing list