Home
last modified time | relevance | path

Searched refs:PLoc (Results 1 – 23 of 23) sorted by relevance

/external/clang/include/clang/Frontend/
DDiagnosticRenderer.h75 virtual void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc,
82 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc,
93 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc,
95 virtual void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc,
98 virtual void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc,
110 void emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc,
163 void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc,
166 void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc,
170 void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc,
DTextDiagnostic.h78 void emitDiagnosticMessage(SourceLocation Loc,PresumedLoc PLoc,
85 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc,
98 void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc,
101 void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc,
105 void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc,
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp117 PresumedLoc PLoc = SM->getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitDiagnostic() local
121 emitIncludeStack(Loc, PLoc, Level, *SM); in emitDiagnostic()
124 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, SM, D); in emitDiagnostic()
167 PresumedLoc PLoc, in emitIncludeStack() argument
171 PLoc.isInvalid() ? SourceLocation() : PLoc.getIncludeLoc(); in emitIncludeStack()
199 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitIncludeStackRecursively() local
200 if (PLoc.isInvalid()) in emitIncludeStackRecursively()
214 emitIncludeStackRecursively(PLoc.getIncludeLoc(), SM); in emitIncludeStackRecursively()
217 emitIncludeLocation(Loc, PLoc, SM); in emitIncludeStackRecursively()
242 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitImportStackRecursively() local
[all …]
DLogDiagnosticPrinter.cpp145 PresumedLoc PLoc = SM.getPresumedLoc(Info.getLocation()); in HandleDiagnostic() local
147 if (PLoc.isInvalid()) { in HandleDiagnostic()
156 DE.Filename = PLoc.getFilename(); in HandleDiagnostic()
157 DE.Line = PLoc.getLine(); in HandleDiagnostic()
158 DE.Column = PLoc.getColumn(); in HandleDiagnostic()
DTextDiagnostic.cpp676 PresumedLoc PLoc, in emitDiagnosticMessage() argument
686 emitDiagnosticLoc(Loc, PLoc, Level, Ranges, *SM); in emitDiagnosticMessage()
773 void TextDiagnostic::emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument
777 if (PLoc.isInvalid()) { in emitDiagnosticLoc()
791 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc()
799 OS << PLoc.getFilename(); in emitDiagnosticLoc()
808 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc()
884 PresumedLoc PLoc, in emitIncludeLocation() argument
886 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitIncludeLocation()
887 OS << "In file included from " << PLoc.getFilename() << ':' in emitIncludeLocation()
[all …]
DSerializedDiagnosticPrinter.cpp70 PresumedLoc PLoc,
77 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument
200 PresumedLoc PLoc,
228 PresumedLoc PLoc, RecordDataImpl &Record,
358 PresumedLoc PLoc, in AddLocToRecord() argument
361 if (PLoc.isInvalid()) { in AddLocToRecord()
370 Record.push_back(getEmitFile(PLoc.getFilename())); in AddLocToRecord()
371 Record.push_back(PLoc.getLine()); in AddLocToRecord()
372 Record.push_back(PLoc.getColumn()+TokSize); in AddLocToRecord()
648 PresumedLoc PLoc, in EmitDiagnosticMessage() argument
[all …]
DPrintPreprocessedOutput.cpp150 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in MoveToLine() local
151 if (PLoc.isInvalid()) in MoveToLine()
153 return MoveToLine(PLoc.getLine()) || (PLoc.getLine() == 1); in MoveToLine()
794 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in DoPrintPreprocessedInput() local
795 if (PLoc.isInvalid()) in DoPrintPreprocessedInput()
798 if (strcmp(PLoc.getFilename(), "<built-in>")) in DoPrintPreprocessedInput()
/external/clang/lib/Basic/
DSourceLocation.cpp45 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print() local
47 if (PLoc.isInvalid()) { in print()
52 OS << PLoc.getFilename() << ':' << PLoc.getLine() in print()
53 << ':' << PLoc.getColumn(); in print()
DSourceManager.cpp1187 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedColumnNumber() local
1188 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber()
1189 return PLoc.getColumn(); in getPresumedColumnNumber()
1397 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedLineNumber() local
1398 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber()
1399 return PLoc.getLine(); in getPresumedLineNumber()
/external/clang/lib/CodeGen/
DSanitizerMetadata.cpp83 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); in getLocationMetadata() local
84 if (!PLoc.isValid()) in getLocationMetadata()
88 llvm::MDString::get(VMContext, PLoc.getFilename()), in getLocationMetadata()
90 llvm::Type::getInt32Ty(VMContext), PLoc.getLine())), in getLocationMetadata()
92 llvm::Type::getInt32Ty(VMContext), PLoc.getColumn())), in getLocationMetadata()
DCGDebugInfo.cpp319 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getOrCreateFile() local
321 if (PLoc.isInvalid() || StringRef(PLoc.getFilename()).empty()) in getOrCreateFile()
327 const char *fname = PLoc.getFilename(); in getOrCreateFile()
336 llvm::DIFile *F = DBuilder.createFile(remapDIPath(PLoc.getFilename()), in getOrCreateFile()
359 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getLineNumber() local
360 return PLoc.isValid() ? PLoc.getLine() : 0; in getLineNumber()
372 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber() local
373 return PLoc.isValid() ? PLoc.getColumn() : 0; in getColumnNumber()
DCodeGenModule.cpp1349 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local
1350 if (PLoc.isValid()) in EmitAnnotationUnit()
1351 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit()
1357 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local
1358 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() : in EmitAnnotationLineNo()
DCGOpenMPRuntime.cpp966 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in emitUpdateLocation() local
967 OS2 << ";" << PLoc.getFilename() << ";"; in emitUpdateLocation()
972 OS2 << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in emitUpdateLocation()
4765 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getTargetEntryUniqueInfo() local
4766 assert(PLoc.isValid() && "Source location is expected to be always valid."); in getTargetEntryUniqueInfo()
4769 if (llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) in getTargetEntryUniqueInfo()
4774 LineNum = PLoc.getLine(); in getTargetEntryUniqueInfo()
DCGExpr.cpp2392 PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc); in EmitCheckSourceLocation() local
2393 if (PLoc.isValid()) { in EmitCheckSourceLocation()
2394 StringRef FilenameString = PLoc.getFilename(); in EmitCheckSourceLocation()
2424 Line = PLoc.getLine(); in EmitCheckSourceLocation()
2425 Column = PLoc.getColumn(); in EmitCheckSourceLocation()
/external/clang/tools/libclang/
DCIndexInclusionStack.cpp54 PresumedLoc PLoc = SM.getPresumedLoc(L); in getInclusions() local
56 L = PLoc.isValid()? PLoc.getIncludeLoc() : SourceLocation(); in getInclusions()
DCIndexDiagnostic.cpp115 void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, in emitDiagnosticMessage() argument
133 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument
/external/clang/lib/Lex/
DPPMacroExpansion.cpp1577 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Loc); in ExpandBuiltinMacro() local
1580 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro()
1585 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in ExpandBuiltinMacro() local
1589 if (II == Ident__BASE_FILE__ && PLoc.isValid()) { in ExpandBuiltinMacro()
1590 SourceLocation NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro()
1592 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro()
1593 if (PLoc.isInvalid()) in ExpandBuiltinMacro()
1596 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro()
1602 if (PLoc.isValid()) { in ExpandBuiltinMacro()
1603 FN += PLoc.getFilename(); in ExpandBuiltinMacro()
[all …]
DPragma.cpp433 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() local
434 if (PLoc.isInvalid()) in HandlePragmaSystemHeader()
437 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); in HandlePragmaSystemHeader()
447 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine()+1, in HandlePragmaSystemHeader()
DPPDirectives.cpp1230 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local
1231 if (PLoc.isInvalid()) in ReadLineMarkerFlags()
1236 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
/external/clang/lib/AST/
DASTDumper.cpp597 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local
599 if (PLoc.isInvalid()) { in dumpLocation()
604 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation()
605 OS << PLoc.getFilename() << ':' << PLoc.getLine() in dumpLocation()
606 << ':' << PLoc.getColumn(); in dumpLocation()
607 LastLocFilename = PLoc.getFilename(); in dumpLocation()
608 LastLocLine = PLoc.getLine(); in dumpLocation()
609 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation()
610 OS << "line" << ':' << PLoc.getLine() in dumpLocation()
611 << ':' << PLoc.getColumn(); in dumpLocation()
[all …]
DTypePrinter.cpp988 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local
990 if (PLoc.isValid()) { in printTag()
991 OS << " at " << PLoc.getFilename() in printTag()
992 << ':' << PLoc.getLine() in printTag()
993 << ':' << PLoc.getColumn(); in printTag()
/external/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp1620 PresumedLoc PLoc = SM->getPresumedLoc(Loc); in ConvertSourceLocationToLineDirective() local
1621 LineString += utostr(PLoc.getLine()); in ConvertSourceLocationToLineDirective()
1623 LineString += Lexer::Stringify(PLoc.getFilename()); in ConvertSourceLocationToLineDirective()
3061 PresumedLoc PLoc = SM->getPresumedLoc(Location); in RewriteLineDirective() local
3062 LineString += utostr(PLoc.getLine()); in RewriteLineDirective()
3064 LineString += Lexer::Stringify(PLoc.getFilename()); in RewriteLineDirective()
/external/clang/include/clang/Sema/
DSema.h7367 SourceLocation &PLoc, SourceLocation PrevLoc,