Lines Matching defs:Loc
212 bool Sema::makeUnavailableInSystemHeader(SourceLocation loc,
223 if (!Context.getSourceManager().isInSystemHeader(loc))
229 fn->addAttr(new (Context) UnavailableAttr(loc, Context, msg));
382 FullSourceLoc loc(i->second, S.Context.getSourceManager());
383 undefined.push_back(UndefinedInternal(decl, loc));
667 Sema::SemaDiagnosticBuilder Sema::Diag(SourceLocation Loc, unsigned DiagID) {
668 DiagnosticBuilder DB = Diags.Report(Loc, DiagID);
673 Sema::Diag(SourceLocation Loc, const PartialDiagnostic& PD) {
674 SemaDiagnosticBuilder Builder(Diag(Loc, PD.getDiagID()));
683 /// instantiation loc.
685 SourceLocation loc = locref;
686 if (!loc.isMacroID()) return false;
690 loc = getSourceManager().getInstantiationLoc(loc);
694 if (getPreprocessor().getSpelling(loc, buffer) == name) {
695 locref = loc;
762 Diag(D.Loc, D.PD);
797 SourceLocation Loc = this->Loc;
798 if (!Loc.isValid() && TheDecl) Loc = TheDecl->getLocation();
799 if (Loc.isValid()) {
800 Loc.print(OS, S.getSourceManager());