File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -132,22 +132,21 @@ generateReplacement(const MatchFinder::MatchResult &Match,
132
132
InnerReplacements.end () - 1 );
133
133
134
134
if (InnerResult.Compare ) {
135
- const auto Comma =
136
- utils::lexer::findNextTokenSkippingComments (
137
- InnerResult.Last ->getEndLoc (), *Match.SourceManager ,
138
- Match.Context ->getLangOpts ());
135
+ const auto Comma = utils::lexer::findNextTokenSkippingComments (
136
+ InnerResult.Last ->getEndLoc (), *Match.SourceManager ,
137
+ Match.Context ->getLangOpts ());
139
138
if (Comma && Comma->getKind () == tok::comma)
140
139
FixItHints.push_back (
141
140
FixItHint::CreateRemoval (SourceRange (Comma->getLocation ())));
142
141
143
142
if (utils::lexer::getPreviousToken (
144
143
InnerResult.Compare ->getExprLoc (), *Match.SourceManager ,
145
144
Match.Context ->getLangOpts (), false )
146
- .getLocation () == Comma->getLocation ()) {
145
+ .getLocation () == Comma->getLocation ())
147
146
FixItHints.push_back (
148
147
FixItHint::CreateRemoval (CharSourceRange::getTokenRange (
149
148
Comma->getLocation (), InnerResult.Compare ->getEndLoc ())));
150
- } else {
149
+ else {
151
150
FixItHints.push_back (
152
151
FixItHint::CreateRemoval (CharSourceRange::getTokenRange (
153
152
InnerResult.Compare ->getSourceRange ())));
You can’t perform that action at this time.
0 commit comments