================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to