Lines Matching defs:StartLoc
82 bool isReplaceableRange(SourceLocation StartLoc, SourceLocation EndLoc,
84 return SM.isWrittenInSameFile(StartLoc, EndLoc);
91 SourceLocation StartLoc, SourceLocation EndLoc) {
92 CharSourceRange Range(SourceRange(StartLoc, EndLoc), true);
96 SourceLocation PreviousLocation = StartLoc.getLocWithOffset(-1);
246 SourceLocation StartLoc = FirstSubExpr->getBeginLoc();
254 if (SM.isMacroArgExpansion(StartLoc) && SM.isMacroArgExpansion(EndLoc)) {
255 SourceLocation FileLocStart = SM.getFileLoc(StartLoc),
259 if (!getMacroAndArgLocations(StartLoc, ImmediateMacroArgLoc, MacroLoc) ||
270 if (SM.isMacroBodyExpansion(StartLoc) && SM.isMacroBodyExpansion(EndLoc)) {
272 getOutermostMacroName(StartLoc, SM, Context.getLangOpts());
278 StartLoc = SM.getFileLoc(StartLoc);
282 if (!isReplaceableRange(StartLoc, EndLoc, SM)) {
285 replaceWithNullptr(Check, SM, StartLoc, EndLoc);