[clang-tools-extra] [clang-tidy][NFC] Enable `performance-unnecessary-value-param` in the codebase (PR #163686)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 22 05:28:50 PDT 2025


================
@@ -65,8 +65,7 @@ class ExpandModularHeadersPPCallbacks::FileRecorder {
 };
 
 ExpandModularHeadersPPCallbacks::ExpandModularHeadersPPCallbacks(
-    CompilerInstance *CI,
-    IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem> OverlayFS)
+    CompilerInstance *CI, llvm::vfs::OverlayFileSystem &OverlayFS)
----------------
vbvictor wrote:

It will be easier to accept if we write `const IntrusiveRefCntPtr<llvm::vfs::OverlayFileSystem>&` or move the pointer

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


More information about the cfe-commits mailing list