[clang-tools-extra] [clang-tidy][NFC] Don't store a redundant copy of `HeaderFileExtensions` in every check (PR #190302)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 3 00:00:06 PDT 2026
================
@@ -33,8 +33,7 @@ AST_MATCHER(VarDecl, hasConstantDeclaration) {
DynamicStaticInitializersCheck::DynamicStaticInitializersCheck(
StringRef Name, ClangTidyContext *Context)
- : ClangTidyCheck(Name, Context),
- HeaderFileExtensions(Context->getHeaderFileExtensions()) {}
+ : ClangTidyCheck(Name, Context) {}
----------------
vbvictor wrote:
> I actually want to open a separate PR that replaces these trivial constructors with using ClangTidyCheck::ClangTidyCheck;
Can we make a check request for it if we don't have one already
https://github.com/llvm/llvm-project/pull/190302
More information about the cfe-commits
mailing list