Skip to content

Commit

Permalink
Fixed #112: Remove unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Fertig committed Jan 29, 2019
1 parent 5145d28 commit e068f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FunctionDeclHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void FunctionDeclHandler::run(const MatchFinder::MatchResult& result)
} else if(const auto* usingDecl = result.Nodes.getNodeAs<UsingDecl>("using")) {
// Check if one of the shadows contains a ConstructorUsingShadowDecl which implies Base::Base.
for(const auto& shadow : usingDecl->shadows()) {
if(const auto* usingShadow = dyn_cast_or_null<ConstructorUsingShadowDecl>(shadow)) {
if(isa<ConstructorUsingShadowDecl>(shadow)) {
// This is a base ctor using. Remove this using. The actual code is inserted by the FunctionDecl
// matcher.
const auto sr = GetSourceRangeAfterSemi(usingDecl->getSourceRange(), result);
Expand Down

0 comments on commit e068f9d

Please sign in to comment.