We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4dfa03 commit 18d2539Copy full SHA for 18d2539
clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
@@ -131,9 +131,7 @@ class NonLocalizedStringBRVisitor final : public BugReporterVisitor {
131
132
#define NEW_RECEIVER(receiver) \
133
llvm::DenseMap<Selector, uint8_t> &receiver##M = \
134
- UIMethods.insert({&Ctx.Idents.get(#receiver), \
135
- llvm::DenseMap<Selector, uint8_t>()}) \
136
- .first->second;
+ UIMethods[&Ctx.Idents.get(#receiver)];
137
#define ADD_NULLARY_METHOD(receiver, method, argument) \
138
receiver##M.insert( \
139
{Ctx.Selectors.getNullarySelector(&Ctx.Idents.get(#method)), argument});
0 commit comments