/external/clang/tools/libclang/ |
H A D | CIndexInclusionStack.cpp | 64 PresumedLoc PLoc = SM.getPresumedLoc(L); local 66 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 | 159 PresumedLoc PLoc = SM->getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); local 163 emitIncludeStack(Loc, PLoc, Level, *SM); 166 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, SM, D); 208 /// \param PLoc The presumed location of the diagnostic location. 211 PresumedLoc PLoc, 214 SourceLocation IncludeLoc = PLoc.getIncludeLoc(); 242 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); local 243 if (PLoc.isInvalid()) 257 emitIncludeStackRecursively(PLoc.getIncludeLoc(), SM); 260 emitIncludeLocation(Loc, PLoc, S 210 emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, const SourceManager &SM) argument 285 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); local 477 emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, const SourceManager &SM) argument 488 emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument 501 emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument [all...] |
H A D | PrintPreprocessedOutput.cpp | 151 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 152 if (PLoc.isInvalid()) 154 return MoveToLine(PLoc.getLine()) || (PLoc.getLine() == 1); 741 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); local 742 if (PLoc.isInvalid()) 745 if (strcmp(PLoc.getFilename(), "<built-in>"))
|
H A D | SerializedDiagnosticPrinter.cpp | 68 PresumedLoc PLoc, 75 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 198 PresumedLoc PLoc, 226 PresumedLoc PLoc, RecordDataImpl &Record, 356 PresumedLoc PLoc, 359 if (PLoc.isInvalid()) { 368 Record.push_back(getEmitFile(PLoc.getFilename())); 369 Record.push_back(PLoc.getLine()); 370 Record.push_back(PLoc.getColumn()+TokSize); 658 PresumedLoc PLoc, 354 AddLocToRecord(SourceLocation Loc, const SourceManager *SM, PresumedLoc PLoc, RecordDataImpl &Record, unsigned TokSize) argument 657 EmitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, const SourceManager *SM, DiagOrStoredDiag D) argument 689 emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<clang::CharSourceRange> Ranges, const SourceManager *SM, DiagOrStoredDiag D) argument 760 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();
|
/external/clang/lib/CodeGen/ |
H A D | SanitizerMetadata.cpp | 80 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); local 81 if (!PLoc.isValid()) 85 llvm::MDString::get(VMContext, PLoc.getFilename()), 87 llvm::Type::getInt32Ty(VMContext), PLoc.getLine())), 89 llvm::Type::getInt32Ty(VMContext), PLoc.getColumn())),
|
H A D | CGOpenMPRuntime.cpp | 373 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); local 374 OS2 << ";" << PLoc.getFilename() << ";"; 379 OS2 << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;";
|
H A D | CGDebugInfo.cpp | 256 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 258 if (PLoc.isInvalid() || StringRef(PLoc.getFilename()).empty()) 263 const char *fname = PLoc.getFilename(); 272 llvm::DIFile F = DBuilder.createFile(PLoc.getFilename(), getCurrentDirname()); 289 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); local 290 return PLoc.isValid() ? PLoc.getLine() : 0; 303 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); local 304 return PLoc [all...] |
H A D | CodeGenModule.cpp | 1172 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 1173 if (PLoc.isValid()) 1174 return EmitAnnotationString(PLoc.getFilename()); 1180 PresumedLoc PLoc = SM.getPresumedLoc(L); local 1181 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() :
|
H A D | CGExpr.cpp | 2215 PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc); local 2216 if (PLoc.isValid()) { 2217 auto FilenameGV = CGM.GetAddrOfConstantCString(PLoc.getFilename(), ".src"); 2220 Line = PLoc.getLine(); 2221 Column = PLoc.getColumn();
|
/external/clang/lib/AST/ |
H A D | TypePrinter.cpp | 939 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( local 941 if (PLoc.isValid()) { 942 OS << " at " << PLoc.getFilename() 943 << ':' << PLoc.getLine() 944 << ':' << PLoc.getColumn();
|
H A D | ASTDumper.cpp | 573 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); local 575 if (PLoc.isInvalid()) { 580 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { 581 OS << PLoc.getFilename() << ':' << PLoc.getLine() 582 << ':' << PLoc.getColumn(); 583 LastLocFilename = PLoc.getFilename(); 584 LastLocLine = PLoc.getLine(); 585 } else if (PLoc.getLine() != LastLocLine) { 586 OS << "line" << ':' << PLoc [all...] |
/external/clang/lib/Lex/ |
H A D | Pragma.cpp | 428 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); local 429 if (PLoc.isInvalid()) 432 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); 442 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine()+1,
|
H A D | PPDirectives.cpp | 1091 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); local 1092 if (PLoc.isInvalid()) 1097 SourceLocation IncLoc = PLoc.getIncludeLoc();
|
/external/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 1646 PresumedLoc PLoc = SM->getPresumedLoc(Loc); local 1647 LineString += utostr(PLoc.getLine()); 1649 LineString += Lexer::Stringify(PLoc.getFilename()); 3100 PresumedLoc PLoc = SM->getPresumedLoc(Location); local 3101 LineString += utostr(PLoc.getLine()); 3103 LineString += Lexer::Stringify(PLoc.getFilename());
|