| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | SourceMgr.cpp | 132 unsigned LineNo) const { in getPointerForLineNumberSpecialized() 137 if (LineNo != 0) in getPointerForLineNumberSpecialized() 138 --LineNo; in getPointerForLineNumberSpecialized() 144 if (LineNo == 0) in getPointerForLineNumberSpecialized() 146 if (LineNo > Offsets.size()) in getPointerForLineNumberSpecialized() 148 return BufStart + Offsets[LineNo - 1] + 1; in getPointerForLineNumberSpecialized() 196 unsigned LineNo = SB.getLineNumber(Ptr); in getLineAndColumn() local 233 const char *Ptr = SB.getPointerForLineNumber(LineNo); in FindLocForLineAndColumn() 496 if (LineNo != -1) { in print() 497 S << ':' << LineNo; in print() [all …]
|
| H A D | SpecialCaseList.cpp | 132 unsigned LineNo = 1; in parse() local 135 for (auto I = Lines.begin(), E = Lines.end(); I != E; ++I, ++LineNo) { in parse() 144 Error = (Twine("malformed section header on line ") + Twine(LineNo) + in parse() 168 Error = (Twine("malformed line ") + Twine(LineNo) + ": '" + in parse() 181 if (!M->insert(std::string(Section), LineNo, REError)) { in parse() 192 if (!Entry.insert(std::move(Regexp), LineNo, REError)) { in parse() 193 Error = (Twine("malformed regex in line ") + Twine(LineNo) + ": '" + in parse()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | DIBuilder.h | 287 unsigned LineNo, DIScope *Context, 318 DIFile *File, unsigned LineNo, 338 DIFile *File, unsigned LineNo, 375 DIFile *File, unsigned LineNo, 591 unsigned LineNo, uint64_t SizeInBits, 723 DIFile *File, unsigned LineNo, DIType *Ty, 759 DIFile *File, unsigned LineNo, DISubroutineType *Ty, 772 unsigned LineNo, DISubroutineType *Ty, unsigned ScopeLine, 799 DIFile *File, unsigned LineNo, DISubroutineType *Ty, 815 unsigned LineNo); [all …]
|
| H A D | DebugInfoMetadata.h | 2310 unsigned LineNo; variable 2347 APINotesFile, LineNo, IsDecl)) 2354 APINotesFile, LineNo, IsDecl)) 2363 unsigned getLineNo() const { return LineNo; } in getLineNo() 3000 unsigned LineNo; 3013 File, LineNo, Storage, ShouldCreate); 3028 DIFile *File, unsigned LineNo), 3029 (Scope, Decl, Name, File, LineNo)) 3032 Metadata *File, unsigned LineNo), 3033 (Scope, Decl, Name, File, LineNo)) [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | SourceMgr.h | 70 const char *getPointerForLineNumber(unsigned LineNo) const; 72 const char *getPointerForLineNumberSpecialized(unsigned LineNo) const; 212 SMLoc FindLocForLineAndColumn(unsigned BufferID, unsigned LineNo, 285 int LineNo = 0; variable 297 : Filename(filename), LineNo(-1), ColumnNo(-1), Kind(Knd), Message(Msg) {} in SMDiagnostic() 308 int getLineNo() const { return LineNo; } in getLineNo()
|
| /llvm-project-15.0.7/clang/include/clang/CrossTU/ |
| H A D | CrossTranslationUnit.h | 64 IndexError(index_error_code C) : Code(C), LineNo(0) {} in IndexError() 65 IndexError(index_error_code C, std::string FileName, int LineNo = 0) 66 : Code(C), FileName(std::move(FileName)), LineNo(LineNo) {} in Code() 75 int getLineNum() const { return LineNo; } in getLineNum() 83 int LineNo; variable
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | TextDiagnostic.cpp | 808 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() local 821 OS << ':' << LineNo; in emitDiagnosticLoc() 823 case DiagnosticOptions::MSVC: OS << '(' << LineNo; break; in emitDiagnosticLoc() 978 unsigned LineNo, FileID FID, in highlightRange() argument 989 if (StartLineNo > LineNo || SM.getFileID(Begin) != FID) in highlightRange() 993 if (EndLineNo < LineNo || SM.getFileID(End) != FID) in highlightRange() 998 if (StartLineNo == LineNo) { in highlightRange() 1005 if (EndLineNo == LineNo) { in highlightRange() 1060 unsigned LineNo, in buildFixItInsertionLine() argument 1176 for (unsigned LineNo = Lines.first; LineNo != Lines.second + 1; ++LineNo) { in emitSnippetAndCaret() local [all …]
|
| H A D | PrintPreprocessedOutput.cpp | 206 bool MoveToLine(unsigned LineNo, bool RequireStartOfLine); 231 void PrintPPOutputPPCallbacks::WriteLineInfo(unsigned LineNo, in WriteLineInfo() argument 238 OS << "#line" << ' ' << LineNo << ' ' << '"'; in WriteLineInfo() 242 OS << '#' << ' ' << LineNo << ' ' << '"'; in WriteLineInfo() 261 bool PrintPPOutputPPCallbacks::MoveToLine(unsigned LineNo, in MoveToLine() argument 278 if (CurLine == LineNo) { in MoveToLine() 282 } else if (!StartedNewLine && LineNo - CurLine == 1) { in MoveToLine() 289 if (LineNo - CurLine <= 8) { in MoveToLine() 291 OS.write(NewLines, LineNo - CurLine); in MoveToLine() 294 WriteLineInfo(LineNo, nullptr, 0); in MoveToLine() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | SourceManagerInternals.h | 37 unsigned LineNo; member 57 E.LineNo = Line; in get() 111 unsigned LineNo, int FilenameID,
|
| /llvm-project-15.0.7/llvm/tools/llvm-cov/ |
| H A D | SourceCoverageView.h | 173 int64_t LineNo; member 175 LineRef(StringRef Line, int64_t LineNo) : Line(Line), LineNo(LineNo) {} in LineRef() 211 virtual void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) = 0;
|
| H A D | SourceCoverageViewHTML.cpp | 501 unsigned LineNo = L.LineNo; in renderLine() local 574 errs() << "Highlighted line " << LineNo << ", " << Range.first << " -> "; in renderLine() 629 unsigned LineNo) { in renderLineNumberColumn() argument 630 std::string LineNoStr = utostr(uint64_t(LineNo)); in renderLineNumberColumn()
|
| H A D | SourceCoverageViewText.cpp | 101 unsigned LineNumber = L.LineNo; in renderLine() 163 unsigned LineNo) { in renderLineNumberColumn() argument 166 BufferOS << LineNo; in renderLineNumberColumn()
|
| H A D | SourceCoverageViewText.h | 71 void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) override;
|
| H A D | SourceCoverageViewHTML.h | 80 void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) override;
|
| /llvm-project-15.0.7/clang/lib/Rewrite/ |
| H A D | HTMLRewrite.cpp | 209 static void AddLineNumber(RewriteBuffer &RB, unsigned LineNo, in AddLineNumber() argument 214 OS << "<tr class=\"codeline\" data-linenumber=\"" << LineNo << "\">" in AddLineNumber() 215 << "<td class=\"num\" id=\"LN" << LineNo << "\">" << LineNo in AddLineNumber() 237 unsigned LineNo = 0; in AddLineNumbers() local 242 ++LineNo; in AddLineNumbers() 263 AddLineNumber(RB, LineNo, LineStartPos, LineEndPos); in AddLineNumbers()
|
| /llvm-project-15.0.7/llvm/include/llvm-c/ |
| H A D | DebugInfo.h | 354 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty, 761 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, 819 LLVMMetadataRef File, unsigned LineNo, 841 LLVMMetadataRef File, unsigned LineNo, 898 LLVMMetadataRef File, unsigned LineNo, 1139 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit, 1231 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit, 1311 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty, 1329 size_t NameLen, unsigned ArgNo, LLVMMetadataRef File, unsigned LineNo,
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | DIBuilder.cpp | 349 DIFile *File, unsigned LineNo, in createTypedef() argument 565 DIFile *File, unsigned LineNo, in createSetType() argument 811 File, LineNo, Ty, AlwaysPreserve, Flags, in createParameterVariable() 816 unsigned LineNo, bool AlwaysPreserve) { in createLabel() argument 820 Name, File, LineNo); in createLabel() 846 unsigned LineNo, DISubroutineType *Ty, unsigned ScopeLine, in createFunction() argument 867 unsigned LineNo, DISubroutineType *Ty, unsigned ScopeLine, in createTempFunctionFwdDecl() argument 873 Name, LinkageName, File, LineNo, Ty, in createTempFunctionFwdDecl() 893 LinkageName, F, LineNo, Ty, LineNo, VTableHolder, VIndex, ThisAdjustment, in createMethod() 906 unsigned LineNo) { in createCommonBlock() argument [all …]
|
| H A D | DebugInfo.cpp | 967 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty, in LLVMDIBuilderCreateFunction() argument 1241 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateObjCIVar() argument 1246 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateObjCIVar() 1255 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateObjCProperty() argument 1261 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateObjCProperty() 1275 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateTypedef() argument 1452 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit, in LLVMDIBuilderCreateGlobalVariableExpression() argument 1456 unwrapDI<DIFile>(File), LineNo, unwrapDI<DIType>(Ty), LocalToUnit, in LLVMDIBuilderCreateGlobalVariableExpression() 1502 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl() argument 1559 LineNo, unwrap<DIType>(Ty), AlwaysPreserve, in LLVMDIBuilderCreateAutoVariable() [all …]
|
| H A D | LLVMContextImpl.h | 889 unsigned LineNo; 892 unsigned LineNo) 893 : Scope(Scope), Decl(Decl), Name(Name), File(File), LineNo(LineNo) {} 896 File(N->getRawFile()), LineNo(N->getLineNo()) {} 901 LineNo == RHS->getLineNo(); 905 return hash_combine(Scope, Decl, Name, File, LineNo); 916 unsigned LineNo; 921 MDString *APINotesFile, unsigned LineNo, bool IsDecl) 924 APINotesFile(APINotesFile), LineNo(LineNo), IsDecl(IsDecl) {} 929 APINotesFile(N->getRawAPINotesFile()), LineNo(N->getLineNo()), [all …]
|
| H A D | DebugInfoMetadata.cpp | 1067 unsigned LineNo, ArrayRef<Metadata *> Ops) in DICommonBlock() argument 1070 LineNo(LineNo) {} in DICommonBlock() 1073 Metadata *File, unsigned LineNo, in getImpl() argument 1076 DEFINE_GETIMPL_LOOKUP(DICommonBlock, (Scope, Decl, Name, File, LineNo)); in getImpl() 1079 DEFINE_GETIMPL_STORE(DICommonBlock, (LineNo), Ops); in getImpl() 1082 DIModule::DIModule(LLVMContext &Context, StorageType Storage, unsigned LineNo, in DIModule() argument 1085 LineNo(LineNo), IsDecl(IsDecl) {} in DIModule() 1090 unsigned LineNo, bool IsDecl, StorageType Storage, in getImpl() argument 1094 IncludePath, APINotesFile, LineNo, IsDecl)); in getImpl() 1097 DEFINE_GETIMPL_STORE(DIModule, (LineNo, IsDecl), Ops); in getImpl()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MIRFSDiscriminator.cpp | 101 unsigned LineNo = DIL->getLine(); in runOnMachineFunction() local 102 if (LineNo == 0) in runOnMachineFunction() 105 LocationDiscriminator LD{DIL->getFilename(), LineNo, Discriminator}; in runOnMachineFunction()
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerUtil.cpp | 135 int LineNo = 0; in ParseDictionaryFile() local 138 LineNo++; in ParseDictionaryFile() 146 Printf("ParseDictionaryFile: error in line %d\n\t\t%s\n", LineNo, in ParseDictionaryFile()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseStmtAsm.cpp | 388 unsigned LineNo = 0; in ParseMicrosoftAsmStatement() local 405 LineNo = SrcMgr.getLineNumber(FID, ExpAsmLoc.second); in ParseMicrosoftAsmStatement() 433 LineNo = SrcMgr.getLineNumber(FID, ExpSemiLoc.second); in ParseMicrosoftAsmStatement() 441 SrcMgr.getLineNumber(ExpLoc.first, ExpLoc.second) != LineNo) { in ParseMicrosoftAsmStatement() 456 LineNo = SrcMgr.getLineNumber(ExpLoc.first, ExpLoc.second); in ParseMicrosoftAsmStatement() 462 LineNo = SrcMgr.getLineNumber(FID, ExpLoc.second); in ParseMicrosoftAsmStatement()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 203 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, unsigned LineNo, in AddLineNote() argument 234 Entries.push_back(LineEntry::get(Offset, LineNo, FilenameID, FileKind, in AddLineNote() 272 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() argument 296 LineTable->AddLineNote(LocInfo.first, LocInfo.second, LineNo, FilenameID, in AddLineNote() 1430 unsigned LineNo = Pos-SourceLineCacheStart; in getLineNumber() local 1435 LastLineNoResult = LineNo; in getLineNumber() 1436 return LineNo; in getLineNumber() 1538 unsigned LineNo = getLineNumber(LocInfo.first, LocInfo.second, &Invalid); in getPresumedLoc() local 1567 LineNo = Entry->LineNo + (LineNo-MarkerLineNo-1); in getPresumedLoc() 1579 return PresumedLoc(Filename.data(), FID, LineNo, ColNo, IncludeLoc); in getPresumedLoc()
|
| /llvm-project-15.0.7/clang/lib/CrossTU/ |
| H A D | CrossTranslationUnit.cpp | 190 unsigned LineNo = 1; in parseCrossTUIndex() local 196 index_error_code::invalid_index_format, IndexPath.str(), LineNo); in parseCrossTUIndex() 207 index_error_code::multiple_definitions, IndexPath.str(), LineNo); in parseCrossTUIndex() 209 ++LineNo; in parseCrossTUIndex()
|