[clang-tools-extra] [clang-tidy][NFC] Fix misc-const-correctness warnings (2/N) (PR #167035)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 7 14:50:26 PST 2025


================
@@ -119,11 +119,11 @@ static EditGenerator rewrite(RangeSelector Call, RangeSelector Builder) {
 }
 
 static RewriteRuleWith<std::string> useNewMlirOpBuilderCheckRule() {
-  Stencil Message = cat("use 'OpType::create(builder, ...)' instead of "
-                        "'builder.create<OpType>(...)'");
+  const Stencil Message = cat("use 'OpType::create(builder, ...)' instead of "
+                              "'builder.create<OpType>(...)'");
   // Match a create call on an OpBuilder.
   auto BuilderType = cxxRecordDecl(isSameOrDerivedFrom("::mlir::OpBuilder"));
----------------
vbvictor wrote:

Would re-run the check after patch is landed

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


More information about the cfe-commits mailing list