| /NextBSD/contrib/llvm/tools/clang/lib/Frontend/ |
| HD | DiagnosticRenderer.cpp | 159 PresumedLoc PLoc = SM->getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitDiagnostic() local 163 emitIncludeStack(Loc, PLoc, Level, *SM); in emitDiagnostic() 166 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, SM, D); in emitDiagnostic() 211 PresumedLoc PLoc, in emitIncludeStack() argument 214 SourceLocation IncludeLoc = PLoc.getIncludeLoc(); in emitIncludeStack() 242 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitIncludeStackRecursively() local 243 if (PLoc.isInvalid()) in emitIncludeStackRecursively() 257 emitIncludeStackRecursively(PLoc.getIncludeLoc(), SM); in emitIncludeStackRecursively() 260 emitIncludeLocation(Loc, PLoc, SM); in emitIncludeStackRecursively() 285 PresumedLoc PLoc = SM.getPresumedLoc(Loc, DiagOpts->ShowPresumedLoc); in emitImportStackRecursively() local [all …]
|
| HD | 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()
|
| HD | 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() 876 PresumedLoc PLoc, in emitIncludeLocation() argument 879 OS << "In file included from " << PLoc.getFilename() << ':' in emitIncludeLocation() 880 << PLoc.getLine() << ":\n"; in emitIncludeLocation() [all …]
|
| HD | SerializedDiagnosticPrinter.cpp | 68 PresumedLoc PLoc, 75 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 198 PresumedLoc PLoc, 226 PresumedLoc PLoc, RecordDataImpl &Record, 356 PresumedLoc PLoc, in AddLocToRecord() argument 359 if (PLoc.isInvalid()) { in AddLocToRecord() 368 Record.push_back(getEmitFile(PLoc.getFilename())); in AddLocToRecord() 369 Record.push_back(PLoc.getLine()); in AddLocToRecord() 370 Record.push_back(PLoc.getColumn()+TokSize); in AddLocToRecord() 658 PresumedLoc PLoc, in EmitDiagnosticMessage() argument [all …]
|
| HD | 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() 773 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in DoPrintPreprocessedInput() local 774 if (PLoc.isInvalid()) in DoPrintPreprocessedInput() 777 if (strcmp(PLoc.getFilename(), "<built-in>")) in DoPrintPreprocessedInput()
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/Frontend/ |
| HD | 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, 161 void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, 164 void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, 168 void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc,
|
| HD | 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,
|
| /NextBSD/contrib/llvm/tools/clang/lib/Basic/ |
| HD | 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()
|
| /NextBSD/contrib/llvm/tools/clang/lib/CodeGen/ |
| HD | 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()
|
| HD | CGDebugInfo.cpp | 244 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getOrCreateFile() local 246 if (PLoc.isInvalid() || StringRef(PLoc.getFilename()).empty()) in getOrCreateFile() 251 const char *fname = PLoc.getFilename(); in getOrCreateFile() 261 DBuilder.createFile(PLoc.getFilename(), getCurrentDirname()); in getOrCreateFile() 275 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getLineNumber() local 276 return PLoc.isValid() ? PLoc.getLine() : 0; in getLineNumber() 288 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber() local 289 return PLoc.isValid() ? PLoc.getColumn() : 0; in getColumnNumber()
|
| HD | CodeGenModule.cpp | 1164 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local 1165 if (PLoc.isValid()) in EmitAnnotationUnit() 1166 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit() 1172 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local 1173 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() : in EmitAnnotationLineNo()
|
| HD | CGExpr.cpp | 2217 PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc); in EmitCheckSourceLocation() local 2218 if (PLoc.isValid()) { in EmitCheckSourceLocation() 2219 auto FilenameGV = CGM.GetAddrOfConstantCString(PLoc.getFilename(), ".src"); in EmitCheckSourceLocation() 2222 Line = PLoc.getLine(); in EmitCheckSourceLocation() 2223 Column = PLoc.getColumn(); in EmitCheckSourceLocation()
|
| HD | CGOpenMPRuntime.cpp | 379 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in emitUpdateLocation() local 380 OS2 << ";" << PLoc.getFilename() << ";"; in emitUpdateLocation() 385 OS2 << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in emitUpdateLocation()
|
| /NextBSD/contrib/llvm/tools/clang/lib/Lex/ |
| HD | PPMacroExpansion.cpp | 1488 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Loc); in ExpandBuiltinMacro() local 1491 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro() 1496 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in ExpandBuiltinMacro() local 1500 if (II == Ident__BASE_FILE__ && PLoc.isValid()) { in ExpandBuiltinMacro() 1501 SourceLocation NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1503 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro() 1504 if (PLoc.isInvalid()) in ExpandBuiltinMacro() 1507 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1513 if (PLoc.isValid()) { in ExpandBuiltinMacro() 1514 FN += PLoc.getFilename(); in ExpandBuiltinMacro() [all …]
|
| HD | Pragma.cpp | 429 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() local 430 if (PLoc.isInvalid()) in HandlePragmaSystemHeader() 433 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); in HandlePragmaSystemHeader() 443 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine()+1, in HandlePragmaSystemHeader()
|
| HD | PPDirectives.cpp | 1086 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local 1087 if (PLoc.isInvalid()) in ReadLineMarkerFlags() 1092 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
|
| /NextBSD/contrib/llvm/tools/clang/lib/AST/ |
| HD | ASTDumper.cpp | 577 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local 579 if (PLoc.isInvalid()) { in dumpLocation() 584 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation() 585 OS << PLoc.getFilename() << ':' << PLoc.getLine() in dumpLocation() 586 << ':' << PLoc.getColumn(); in dumpLocation() 587 LastLocFilename = PLoc.getFilename(); in dumpLocation() 588 LastLocLine = PLoc.getLine(); in dumpLocation() 589 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation() 590 OS << "line" << ':' << PLoc.getLine() in dumpLocation() 591 << ':' << PLoc.getColumn(); in dumpLocation() [all …]
|
| HD | TypePrinter.cpp | 939 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local 941 if (PLoc.isValid()) { in printTag() 942 OS << " at " << PLoc.getFilename() in printTag() 943 << ':' << PLoc.getLine() in printTag() 944 << ':' << PLoc.getColumn(); in printTag()
|
| /NextBSD/contrib/llvm/tools/clang/lib/Frontend/Rewrite/ |
| HD | RewriteModernObjC.cpp | 1646 PresumedLoc PLoc = SM->getPresumedLoc(Loc); in ConvertSourceLocationToLineDirective() local 1647 LineString += utostr(PLoc.getLine()); in ConvertSourceLocationToLineDirective() 1649 LineString += Lexer::Stringify(PLoc.getFilename()); in ConvertSourceLocationToLineDirective() 3100 PresumedLoc PLoc = SM->getPresumedLoc(Location); in RewriteLineDirective() local 3101 LineString += utostr(PLoc.getLine()); in RewriteLineDirective() 3103 LineString += Lexer::Stringify(PLoc.getFilename()); in RewriteLineDirective()
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/Sema/ |
| HD | Sema.h | 7128 SourceLocation &PLoc, SourceLocation PrevLoc,
|