Skip to content

Commit 4caec58

Browse files
committed
Get only local option
1 parent bcb2da5 commit 4caec58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/clang-tidy/modernize/UseDesignatedInitializersCheck.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ UseDesignatedInitializersCheck::UseDesignatedInitializersCheck(
3737
StringRef Name, ClangTidyContext *Context)
3838
: ClangTidyCheck(Name, Context),
3939
IgnoreSingleElementAggregates(
40-
Options.getLocalOrGlobal(IgnoreSingleElementAggregatesName,
41-
IgnoreSingleElementAggregatesDefault)) {}
40+
Options.get(IgnoreSingleElementAggregatesName,
41+
IgnoreSingleElementAggregatesDefault)) {}
4242

4343
void UseDesignatedInitializersCheck::registerMatchers(MatchFinder *Finder) {
4444
Finder->addMatcher(

0 commit comments

Comments
 (0)