[clang-tools-extra] [clang-tidy][NFC] Fix `bugprone-unchecked-optional-access` warnings in codebase (PR #170004)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 24 05:11:19 PST 2026


================
@@ -43,21 +43,22 @@ void ClangTidyProfiling::printUserFriendlyTable(llvm::raw_ostream &OS,
 }
 
 void ClangTidyProfiling::printAsJSON(llvm::raw_ostream &OS,
-                                     llvm::TimerGroup &TG) {
+                                     llvm::TimerGroup &TG,
+                                     const StorageParams &Storage) {
   OS << "{\n";
----------------
vbvictor wrote:

Maybe we can `assert(this->Storage)` here and later use it without any additional arguments passed, like suggestion https://github.com/llvm/llvm-project/pull/170004/changes#r2724132547. 

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


More information about the cfe-commits mailing list