/external/llvm-project/clang/lib/Basic/ |
D | SourceLocation.cpp | 61 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print() local 63 if (PLoc.isInvalid()) { in print() 68 OS << PLoc.getFilename() << ':' << PLoc.getLine() in print() 69 << ':' << PLoc.getColumn(); in print() 102 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in PrintDifference() local 104 if (PLoc.isInvalid()) { in PrintDifference() 110 strcmp(PLoc.getFilename(), Previous.getFilename()) != 0) { in PrintDifference() 111 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in PrintDifference() 112 << PLoc.getColumn(); in PrintDifference() 113 } else if (Previous.isInvalid() || PLoc.getLine() != Previous.getLine()) { in PrintDifference() [all …]
|
/external/llvm-project/clang/include/clang/Frontend/ |
D | DiagnosticRenderer.h | 76 virtual void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 82 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 91 virtual void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) = 0; 92 virtual void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 94 virtual void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 104 void emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, 150 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 152 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 155 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
|
D | TextDiagnostic.h | 77 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 82 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 92 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 94 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 97 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
|
/external/clang/include/clang/Frontend/ |
D | DiagnosticRenderer.h | 75 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,
|
D | TextDiagnostic.h | 78 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/ |
D | DiagnosticRenderer.cpp | 117 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 …]
|
D | LogDiagnosticPrinter.cpp | 145 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()
|
D | TextDiagnostic.cpp | 676 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 …]
|
D | SerializedDiagnosticPrinter.cpp | 70 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 …]
|
D | PrintPreprocessedOutput.cpp | 150 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/llvm-project/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 120 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitDiagnostic() local 124 emitIncludeStack(Loc, PLoc, Level); in emitDiagnostic() 127 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic() 165 void DiagnosticRenderer::emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, in emitIncludeStack() argument 168 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack() 169 : FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager()); in emitIncludeStack() 196 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitIncludeStackRecursively() local 197 if (PLoc.isInvalid()) in emitIncludeStackRecursively() 212 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively() 215 emitIncludeLocation(Loc, PLoc); in emitIncludeStackRecursively() [all …]
|
D | LogDiagnosticPrinter.cpp | 145 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()
|
D | TextDiagnostic.cpp | 674 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage() argument 681 emitDiagnosticLoc(Loc, PLoc, Level, Ranges); in emitDiagnosticMessage() 805 void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 808 if (PLoc.isInvalid()) { in emitDiagnosticLoc() 820 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() 828 emitFilename(PLoc.getFilename(), Loc.getManager()); in emitDiagnosticLoc() 840 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc() 909 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() argument 910 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitIncludeLocation() 911 OS << "In file included from " << PLoc.getFilename() << ':' in emitIncludeLocation() [all …]
|
D | SerializedDiagnosticPrinter.cpp | 68 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 73 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 191 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 216 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 346 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, in AddLocToRecord() argument 348 if (PLoc.isInvalid()) { in AddLocToRecord() 357 Record.push_back(getEmitFile(PLoc.getFilename())); in AddLocToRecord() 358 Record.push_back(PLoc.getLine()); in AddLocToRecord() 359 Record.push_back(PLoc.getColumn()+TokSize); in AddLocToRecord() 642 void SDiagsWriter::EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in EmitDiagnosticMessage() argument [all …]
|
D | PrintPreprocessedOutput.cpp | 157 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in MoveToLine() local 158 if (PLoc.isInvalid()) in MoveToLine() 160 return MoveToLine(PLoc.getLine()) || (PLoc.getLine() == 1); in MoveToLine() 920 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in DoPrintPreprocessedInput() local 921 if (PLoc.isInvalid()) in DoPrintPreprocessedInput() 924 if (strcmp(PLoc.getFilename(), "<built-in>")) in DoPrintPreprocessedInput()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | JsonSupport.h | 91 PresumedLoc PLoc = SM.getPresumedLoc(Loc); 93 if (PLoc.isInvalid()) { 100 std::string filename(PLoc.getFilename()); 113 Out << "\"line\": " << PLoc.getLine() 114 << ", \"column\": " << PLoc.getColumn()
|
/external/clang/lib/Basic/ |
D | SourceLocation.cpp | 45 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()
|
/external/llvm-project/clang/lib/Index/ |
D | FileIndexRecord.cpp | 50 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local 51 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' << PLoc.getLine() in print() 52 << ':' << PLoc.getColumn(); in print()
|
/external/clang/lib/CodeGen/ |
D | SanitizerMetadata.cpp | 83 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()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | SanitizerMetadata.cpp | 93 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); in getLocationMetadata() local 94 if (!PLoc.isValid()) in getLocationMetadata() 98 llvm::MDString::get(VMContext, PLoc.getFilename()), in getLocationMetadata() 100 llvm::Type::getInt32Ty(VMContext), PLoc.getLine())), in getLocationMetadata() 102 llvm::Type::getInt32Ty(VMContext), PLoc.getColumn())), in getLocationMetadata()
|
/external/clang/tools/libclang/ |
D | CIndexInclusionStack.cpp | 54 PresumedLoc PLoc = SM.getPresumedLoc(L); in getInclusions() local 56 L = PLoc.isValid()? PLoc.getIncludeLoc() : SourceLocation(); in getInclusions()
|
/external/llvm-project/clang/tools/libclang/ |
D | CIndexInclusionStack.cpp | 50 PresumedLoc PLoc = SM.getPresumedLoc(L); in getInclusions() local 52 L = PLoc.isValid()? PLoc.getIncludeLoc() : SourceLocation(); in getInclusions()
|
/external/llvm-project/clang/lib/Lex/ |
D | PPMacroExpansion.cpp | 1504 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Loc); in ExpandBuiltinMacro() local 1507 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro() 1513 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in ExpandBuiltinMacro() local 1517 if (II == Ident__BASE_FILE__ && PLoc.isValid()) { in ExpandBuiltinMacro() 1518 SourceLocation NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1520 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro() 1521 if (PLoc.isInvalid()) in ExpandBuiltinMacro() 1524 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1530 if (PLoc.isValid()) { in ExpandBuiltinMacro() 1536 StringRef PLFileName = llvm::sys::path::filename(PLoc.getFilename()); in ExpandBuiltinMacro() [all …]
|
/external/clang/lib/Lex/ |
D | PPMacroExpansion.cpp | 1577 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 …]
|
/external/llvm-project/clang-tools-extra/pp-trace/ |
D | PPCallbacksTracker.cpp | 31 PresumedLoc PLoc = PP.getSourceManager().getPresumedLoc(Loc); in getSourceLocationString() local 33 if (PLoc.isInvalid()) { in getSourceLocationString() 41 SS << "\"" << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in getSourceLocationString() 42 << PLoc.getColumn() << "\""; in getSourceLocationString()
|