Searched defs:PLoc (Results 1 - 16 of 16) sorted by relevance

/external/clang/tools/libclang/
H A DCIndexInclusionStack.cpp64 PresumedLoc PLoc = SM.getPresumedLoc(L); local
66 L = PLoc.isValid()? PLoc.getIncludeLoc() : SourceLocation();
/external/clang/lib/Frontend/
H A DLogDiagnosticPrinter.cpp145 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 DDiagnosticRenderer.cpp159 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 DPrintPreprocessedOutput.cpp151 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 DSerializedDiagnosticPrinter.cpp68 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 DSourceLocation.cpp45 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 DSanitizerMetadata.cpp80 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 DCGOpenMPRuntime.cpp373 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); local
374 OS2 << ";" << PLoc.getFilename() << ";";
379 OS2 << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;";
H A DCGDebugInfo.cpp256 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 DCodeGenModule.cpp1172 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 DCGExpr.cpp2215 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 DTypePrinter.cpp939 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( local
941 if (PLoc.isValid()) {
942 OS << " at " << PLoc.getFilename()
943 << ':' << PLoc.getLine()
944 << ':' << PLoc.getColumn();
H A DASTDumper.cpp573 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 DPragma.cpp428 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 DPPDirectives.cpp1091 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); local
1092 if (PLoc.isInvalid())
1097 SourceLocation IncLoc = PLoc.getIncludeLoc();
/external/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp1646 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());

Completed in 1387 milliseconds