File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -269,16 +269,16 @@ void ClangTidyDiagnosticConsumer::finalizeLastError() {
269
269
static bool LineIsMarkedWithNOLINT (SourceManager &SM, SourceLocation Loc) {
270
270
bool Invalid;
271
271
const char *CharacterData = SM.getCharacterData (Loc, &Invalid);
272
- if (! Invalid) {
273
- const char *P = CharacterData ;
274
- while (*P != ' \0 ' && *P != ' \r ' && *P != ' \n ' )
275
- ++P ;
276
- StringRef RestOfLine (CharacterData, P - CharacterData + 1 );
277
- // FIXME: Handle /\bNOLINT\b(\([^)]*\))?/ as cpplint.py does.
278
- if ( RestOfLine. find ( " NOLINT " ) != StringRef::npos) {
279
- return true ;
280
- }
281
- }
272
+ if (Invalid)
273
+ return false ;
274
+
275
+ const char *P = CharacterData ;
276
+ while (*P != ' \0 ' && *P != ' \r ' && *P != ' \n ' )
277
+ ++P;
278
+ StringRef RestOfLine (CharacterData, P - CharacterData + 1 );
279
+ // FIXME: Handle /\bNOLINT\b(\([^)]*\))?/ as cpplint.py does.
280
+ if (RestOfLine. find ( " NOLINT " ) != StringRef::npos)
281
+ return true ;
282
282
return false ;
283
283
}
284
284
You can’t perform that action at this time.
0 commit comments