[clang-tools-extra] [clang-tidy][NFC] Enable `bugprone-unchecked-optional-access` in `clang-tidy` config and fix warnings (PR #170004)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 29 09:18:28 PST 2025
================
@@ -43,21 +43,21 @@ 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";
- OS << R"("file": ")" << Storage->SourceFilename << "\",\n";
- OS << R"("timestamp": ")" << Storage->Timestamp << "\",\n";
+ OS << R"("file": ")" << Storage.SourceFilename << "\",\n";
+ OS << R"("timestamp": ")" << Storage.Timestamp << "\",\n";
OS << "\"profile\": {\n";
TG.printJSONValues(OS, "");
OS << "\n}\n";
OS << "}\n";
OS.flush();
}
-void ClangTidyProfiling::storeProfileData(llvm::TimerGroup &TG) {
- assert(Storage && "We should have a filename.");
----------------
zeyi2 wrote:
Will fix soon.
https://github.com/llvm/llvm-project/pull/170004
More information about the cfe-commits
mailing list