Skip to content

Conversation

@zeyi2
Copy link
Member

@zeyi2 zeyi2 commented Nov 29, 2025

This patch is currently work in progress.

Currently ClangTidyDiagnosticConsumer is not fixed.

Closes #156151

@zeyi2 zeyi2 marked this pull request as draft November 29, 2025 17:08
}

void ClangTidyProfiling::storeProfileData(llvm::TimerGroup &TG) {
assert(Storage && "We should have a filename.");
Copy link
Member Author

@zeyi2 zeyi2 Nov 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix the removal of this assert soon.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This modification causes 5 cases to fail:

  Clang Tools :: clang-tidy/checkers/bugprone/dynamic-static-initializers.hpp
  Clang Tools :: clang-tidy/checkers/bugprone/suspicious-include.cpp
  Clang Tools :: clang-tidy/checkers/misc/use-anonymous-namespace.cpp
  Clang Tools :: clang-tidy/checkers/misc/use-internal-linkage-func.cpp
  Extra Tools Unit Tests :: clang-tidy/./ClangTidyTests/LLVMHeaderGuardCheckTest/FixHeaderGuards

I suspect that there may be some lifetime issues (and also the use of std::vector/string, will try to fix them soon)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[clang-tidy] Enable 'bugprone-unchecked-optional-access' check in clang-tidy config.

1 participant