Lines Matching refs:loc

81   // Get the spelling loc just in case it was expanded from a macro.
451 SourceLocation loc,
454 &diagnostic(), loc, diagnostic_id,
455 InBannedDirectory(instance().getSourceManager().getSpellingLoc(loc)));
534 SourceLocation loc;
536 loc = method->getBody()->getSourceRange().getBegin();
538 loc = Lexer::getLocForEndOfToken(manager.getSpellingLoc(range.getEnd()),
540 // The original code used the ending source loc of TypeSourceInfo's
548 // While using the spelling loc of the CXXMethodDecl fixes attribute
552 for (SourceLocation l = loc.getLocWithOffset(-1);
553 l != manager.getLocForStartOfFile(manager.getFileID(loc));
560 loc = SourceLocation();
566 loc = l;
573 if (loc.isValid()) {
574 ReportIfSpellingLocNotIgnored(loc, diag_method_requires_override_)
575 << FixItHint::CreateInsertion(loc, " override");
604 SourceLocation loc = cs->getLBracLoc();
609 if (loc.isMacroID()) {
611 if (InBannedDirectory(manager.getSpellingLoc(loc)))
615 loc, manager, instance().getLangOpts());
622 emitWarning(loc,
698 // If there are issues, update |loc| with the SourceLocation of the issue
704 SourceLocation& loc) {
706 loc = record->getLocation();
712 loc = dtor->getInnerLocStart();
820 SourceLocation loc;
821 RefcountIssue issue = CheckRecordForRefcountIssue(record, loc);
823 diagnostic().Report(loc, DiagnosticForIssue(issue));
830 loc = dtor->getInnerLocStart();
831 diagnostic().Report(loc, diag_protected_non_virtual_dtor_);
882 issue = CheckRecordForRefcountIssue(problem_record, loc);
887 diagnostic().Report(loc, diag_note_implicit_dtor_) << problem_record;
892 diagnostic().Report(loc, diag_note_public_dtor_);
997 // The range starts from |var_decl|'s loc start, which is the
999 // ends, however, where this |var_decl|'s type loc ends, since
1001 // Note that the beginning source location of type loc omits cv