Lines Matching refs:EndIf
95 SourceLocation EndIf = in EndOfMainFile() local
104 Ifndef, Define, EndIf, FileName, CurHeaderGuard, FixIts); in EndOfMainFile()
108 checkEndifComment(FileName, EndIf, NewGuard, FixIts); in EndOfMainFile()
117 Check->diag(EndIf, "#endif for a header guard should reference the " in EndOfMainFile()
129 bool wouldFixEndifComment(StringRef FileName, SourceLocation EndIf, in wouldFixEndifComment() argument
132 if (!EndIf.isValid()) in wouldFixEndifComment()
134 const char *EndIfData = PP->getSourceManager().getCharacterData(EndIf); in wouldFixEndifComment()
162 SourceLocation EndIf, in checkHeaderGuardDefinition() argument
173 wouldFixEndifComment(FileName, EndIf, CurHeaderGuard))) { in checkHeaderGuardDefinition()
189 void checkEndifComment(StringRef FileName, SourceLocation EndIf, in checkEndifComment() argument
193 if (wouldFixEndifComment(FileName, EndIf, HeaderGuard, &EndIfLen)) { in checkEndifComment()
195 CharSourceRange::getCharRange(EndIf, in checkEndifComment()
196 EndIf.getLocWithOffset(EndIfLen)), in checkEndifComment()