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 77c842f commit d2a96d1Copy full SHA for d2a96d1
clang-tools-extra/clang-change-namespace/ChangeNamespace.cpp
@@ -606,9 +606,8 @@ void ChangeNamespaceTool::run(
606
Result.Nodes.getNodeAs<DeclRefExpr>("func_ref")) {
607
// If this reference has been processed as a function call, we do not
608
// process it again.
609
- if (ProcessedFuncRefs.count(FuncRef))
+ if (!ProcessedFuncRefs.insert(FuncRef).second)
610
return;
611
- ProcessedFuncRefs.insert(FuncRef);
612
const auto *Func = Result.Nodes.getNodeAs<FunctionDecl>("func_decl");
613
assert(Func);
614
const auto *Context = Result.Nodes.getNodeAs<Decl>("dc");
0 commit comments