/external/clang/tools/libclang/ |
H A D | CIndexInclusionStack.cpp | 54 PresumedLoc PLoc = SM.getPresumedLoc(L); variable 56 L = PLoc.isValid()? PLoc.getIncludeLoc() : SourceLocation();
|
/external/clang/lib/Frontend/ |
H A D | LogDiagnosticPrinter.cpp | 145 PresumedLoc PLoc = SM.getPresumedLoc(Info.getLocation()); local 147 if (PLoc.isInvalid()) { 156 DE.Filename = PLoc.getFilename(); 157 DE.Line = PLoc.getLine(); 158 DE.Column = PLoc.getColumn();
|
H A D | DiagnosticRenderer.cpp | 117 PresumedLoc PLoc = SM->getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); local 121 emitIncludeStack(Loc, PLoc, Level, *SM); 124 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, SM, D); 164 /// \param PLoc The presumed location of the diagnostic location. 167 PresumedLoc PLoc, 171 PLoc.isInvalid() ? SourceLocation() : PLoc.getIncludeLoc(); 199 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); local 200 if (PLoc.isInvalid()) 214 emitIncludeStackRecursively(PLoc 166 emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, const SourceManager &SM) argument 242 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); local 587 emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, const SourceManager &SM) argument 598 emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument 614 emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument [all...] |
H A D | PrintPreprocessedOutput.cpp | 150 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 151 if (PLoc.isInvalid()) 153 return MoveToLine(PLoc.getLine()) || (PLoc.getLine() == 1); 794 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); local 795 if (PLoc.isInvalid()) 798 if (strcmp(PLoc.getFilename(), "<built-in>"))
|
H A D | SerializedDiagnosticPrinter.cpp | 70 PresumedLoc PLoc, 77 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 200 PresumedLoc PLoc, 228 PresumedLoc PLoc, RecordDataImpl &Record, 358 PresumedLoc PLoc, 361 if (PLoc.isInvalid()) { 370 Record.push_back(getEmitFile(PLoc.getFilename())); 371 Record.push_back(PLoc.getLine()); 372 Record.push_back(PLoc.getColumn()+TokSize); 648 PresumedLoc PLoc, 356 AddLocToRecord(SourceLocation Loc, const SourceManager *SM, PresumedLoc PLoc, RecordDataImpl &Record, unsigned TokSize) argument 647 EmitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, const SourceManager *SM, DiagOrStoredDiag D) argument 679 emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<clang::CharSourceRange> Ranges, const SourceManager *SM, DiagOrStoredDiag D) argument 750 PresumedLoc PLoc = SM ? SM->getPresumedLoc(Loc) : PresumedLoc(); local [all...] |
/external/clang/lib/Basic/ |
H A D | SourceLocation.cpp | 45 PresumedLoc PLoc = SM.getPresumedLoc(*this); local 47 if (PLoc.isInvalid()) { 52 OS << PLoc.getFilename() << ':' << PLoc.getLine() 53 << ':' << PLoc.getColumn();
|
H A D | SourceManager.cpp | 1187 PresumedLoc PLoc = getPresumedLoc(Loc); local 1188 if (isInvalid(PLoc, Invalid)) return 0; 1189 return PLoc.getColumn(); 1397 PresumedLoc PLoc = getPresumedLoc(Loc); local 1398 if (isInvalid(PLoc, Invalid)) return 0; 1399 return PLoc.getLine();
|
/external/clang/lib/CodeGen/ |
H A D | SanitizerMetadata.cpp | 83 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); local 84 if (!PLoc.isValid()) 88 llvm::MDString::get(VMContext, PLoc.getFilename()), 90 llvm::Type::getInt32Ty(VMContext), PLoc.getLine())), 92 llvm::Type::getInt32Ty(VMContext), PLoc.getColumn())),
|
H A D | CGDebugInfo.cpp | 319 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 321 if (PLoc.isInvalid() || StringRef(PLoc.getFilename()).empty()) 327 const char *fname = PLoc.getFilename(); 336 llvm::DIFile *F = DBuilder.createFile(remapDIPath(PLoc.getFilename()), 359 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); local 360 return PLoc.isValid() ? PLoc.getLine() : 0; 372 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); local 373 return PLoc [all...] |
H A D | CodeGenModule.cpp | 1349 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 1350 if (PLoc.isValid()) 1351 return EmitAnnotationString(PLoc.getFilename()); 1357 PresumedLoc PLoc = SM.getPresumedLoc(L); local 1358 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() :
|
H A D | CGExpr.cpp | 2392 PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc); local 2393 if (PLoc.isValid()) { 2394 StringRef FilenameString = PLoc.getFilename(); 2424 Line = PLoc.getLine(); 2425 Column = PLoc.getColumn();
|
H A D | CGOpenMPRuntime.cpp | 966 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); local 967 OS2 << ";" << PLoc.getFilename() << ";"; 972 OS2 << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; 4765 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 4766 assert(PLoc.isValid() && "Source location is expected to be always valid."); 4769 if (llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) 4774 LineNum = PLoc.getLine();
|
/external/clang/lib/Lex/ |
H A D | Pragma.cpp | 433 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); local 434 if (PLoc.isInvalid()) 437 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); 447 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine()+1,
|
H A D | PPDirectives.cpp | 1230 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); local 1231 if (PLoc.isInvalid()) 1236 SourceLocation IncLoc = PLoc.getIncludeLoc();
|
/external/clang/lib/AST/ |
H A D | TypePrinter.cpp | 988 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( local 990 if (PLoc.isValid()) { 991 OS << " at " << PLoc.getFilename() 992 << ':' << PLoc.getLine() 993 << ':' << PLoc.getColumn();
|
H A D | ASTDumper.cpp | 597 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); local 599 if (PLoc.isInvalid()) { 604 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { 605 OS << PLoc.getFilename() << ':' << PLoc.getLine() 606 << ':' << PLoc.getColumn(); 607 LastLocFilename = PLoc.getFilename(); 608 LastLocLine = PLoc.getLine(); 609 } else if (PLoc.getLine() != LastLocLine) { 610 OS << "line" << ':' << PLoc [all...] |
/external/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 1620 PresumedLoc PLoc = SM->getPresumedLoc(Loc); local 1621 LineString += utostr(PLoc.getLine()); 1623 LineString += Lexer::Stringify(PLoc.getFilename()); 3061 PresumedLoc PLoc = SM->getPresumedLoc(Location); local 3062 LineString += utostr(PLoc.getLine()); 3064 LineString += Lexer::Stringify(PLoc.getFilename());
|