-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[clang-tidy][NFC] Enable bugprone-unchecked-optional-access in clang-tidy config and fix warnings
#170004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…idyDiagnosticConsumer" This reverts commit 7f6239f.
| } | ||
|
|
||
| void ClangTidyProfiling::storeProfileData(llvm::TimerGroup &TG) { | ||
| assert(Storage && "We should have a filename."); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
This patch is currently work in progress.
Currently
ClangTidyDiagnosticConsumeris not fixed.Closes #156151