-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[clang-tidy] Add IgnoredRegex to 'bugprone-suspicious-include' #160958
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?
Changes from all commits
47fcb11
4d87bc6
ef6de3f
46bf9cb
50ff6d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_SUSPICIOUSINCLUDECHECK_H | ||
|
||
#include "../ClangTidyCheck.h" | ||
#include "../utils/FileExtensionsUtils.h" | ||
|
||
namespace clang::tidy::bugprone { | ||
|
||
|
@@ -28,9 +27,12 @@ class SuspiciousIncludeCheck : public ClangTidyCheck { | |
SuspiciousIncludeCheck(StringRef Name, ClangTidyContext *Context); | ||
void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP, | ||
Preprocessor *ModuleExpanderPP) override; | ||
void storeOptions(ClangTidyOptions::OptionMap &Opts) override; | ||
|
||
FileExtensionsSet HeaderFileExtensions; | ||
FileExtensionsSet ImplementationFileExtensions; | ||
std::optional<StringRef> IgnoredRegexString; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please make all data members private. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You said that before, I answered with a question, and got no answer. @vbvictor came with an answer and I went with that. So if you can't react on my questions/answers, I'll certainly will not do anything. |
||
llvm::Regex IgnoredRegex; | ||
}; | ||
|
||
} // namespace clang::tidy::bugprone | ||
|
Uh oh!
There was an error while loading. Please reload this page.