[clang-tools-extra] [clang-tidy][readability-named-parameter] Add an option to print names without comment (PR #147953)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 10 09:03:12 PDT 2025


================
@@ -84,7 +95,8 @@ void NamedParameterCheck::check(const MatchFinder::MatchResult &Result) {
 
     for (auto P : UnnamedParams) {
       // Fallback to an unused marker.
-      StringRef NewName = "unused";
+      constexpr StringRef FallbackName = "unused";
----------------
vbvictor wrote:

```suggestion
      static constexpr StringRef FallbackName = "unused";
```
We have a check in development for this https://github.com/llvm/llvm-project/issues/146296.

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


More information about the cfe-commits mailing list