Home
last modified time | relevance | path

Searched refs:LineNo (Results 1 – 25 of 45) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp136 unsigned LineNo) const { in getPointerForLineNumberSpecialized()
141 if (LineNo != 0) in getPointerForLineNumberSpecialized()
142 --LineNo; in getPointerForLineNumberSpecialized()
148 if (LineNo == 0) in getPointerForLineNumberSpecialized()
150 if (LineNo > Offsets.size()) in getPointerForLineNumberSpecialized()
152 return BufStart + Offsets[LineNo - 1] + 1; in getPointerForLineNumberSpecialized()
200 unsigned LineNo = SB.getLineNumber(Ptr); in getLineAndColumn() local
237 const char *Ptr = SB.getPointerForLineNumber(LineNo); in FindLocForLineAndColumn()
500 if (LineNo != -1) { in print()
501 S << ':' << LineNo; in print()
[all …]
H A DSpecialCaseList.cpp133 SpecialCaseList::addSection(StringRef SectionStr, unsigned LineNo, in addSection() argument
138 if (auto Err = Section.SectionMatcher->insert(SectionStr, LineNo, UseGlobs)) in addSection()
140 "malformed section at line " + Twine(LineNo) + in addSection()
162 unsigned LineNo = LineIt.line_number(); in parse() local
171 ("malformed section header on line " + Twine(LineNo) + ": " + Line) in parse()
176 if (auto Err = addSection(Line.drop_front().drop_back(), LineNo, UseGlobs) in parse()
188 Error = ("malformed line " + Twine(LineNo) + ": '" + Line + "'").str(); in parse()
194 if (auto Err = Entry.insert(Pattern, LineNo, UseGlobs)) { in parse()
197 Twine(LineNo) + ": '" + Pattern + "': " + toString(std::move(Err))) in parse()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DDIBuilder.h292 unsigned LineNo, DIScope *Context,
324 DIFile *File, unsigned LineNo,
344 DIFile *File, unsigned LineNo,
382 DIFile *File, unsigned LineNo,
601 unsigned LineNo, uint64_t SizeInBits,
733 DIFile *File, unsigned LineNo, DIType *Ty,
769 DIFile *File, unsigned LineNo, DISubroutineType *Ty,
782 unsigned LineNo, DISubroutineType *Ty, unsigned ScopeLine,
809 DIFile *File, unsigned LineNo, DISubroutineType *Ty,
825 unsigned LineNo);
[all …]
/freebsd-14.2/lib/libc/gen/
H A Dfstab.c51 static int LineNo = 0; variable
122 ++LineNo; in fstabscan()
257 LineNo = 0; in setfsent()
263 LineNo = 0; in setfsent()
291 sprintf(num, "%d: ", LineNo); in error()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h64 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
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h70 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()
H A DSpecialCaseList.h142 Expected<Section *> addSection(StringRef SectionStr, unsigned LineNo,
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/
H A DTextDiagnostic.cpp788 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() local
801 OS << ':' << LineNo; in emitDiagnosticLoc()
803 case DiagnosticOptions::MSVC: OS << '(' << LineNo; break; in emitDiagnosticLoc()
954 unsigned LineNo; member
993 unsigned LineNo, in buildFixItInsertionLine() argument
1187 for (unsigned LineNo = Lines.first; LineNo != Lines.second + 1; in emitSnippetAndCaret() local
1188 ++LineNo, ++DisplayLineNo) { in emitSnippetAndCaret()
1219 if (LR.LineNo == LineNo) in emitSnippetAndCaret()
1224 if (CaretLineNo == LineNo) { in emitSnippetAndCaret()
1280 unsigned LineNo) { in emitSnippet() argument
[all …]
H A DPrintPreprocessedOutput.cpp212 bool MoveToLine(unsigned LineNo, bool RequireStartOfLine);
237 void PrintPPOutputPPCallbacks::WriteLineInfo(unsigned LineNo, in WriteLineInfo() argument
244 *OS << "#line" << ' ' << LineNo << ' ' << '"'; in WriteLineInfo()
248 *OS << '#' << ' ' << LineNo << ' ' << '"'; in WriteLineInfo()
267 bool PrintPPOutputPPCallbacks::MoveToLine(unsigned LineNo, in MoveToLine() argument
284 if (CurLine == LineNo) { in MoveToLine()
288 } else if (!StartedNewLine && LineNo - CurLine == 1) { in MoveToLine()
295 if (LineNo - CurLine <= 8) { in MoveToLine()
297 OS->write(NewLines, LineNo - CurLine); in MoveToLine()
300 WriteLineInfo(LineNo, nullptr, 0); in MoveToLine()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceManagerInternals.h37 unsigned LineNo; member
57 E.LineNo = Line; in get()
111 unsigned LineNo, int FilenameID,
/freebsd-14.2/contrib/llvm-project/clang/lib/Rewrite/
H A DHTMLRewrite.cpp209 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()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm-c/
H A DDebugInfo.h365 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
772 size_t NameLen, LLVMMetadataRef File, unsigned LineNo,
830 LLVMMetadataRef File, unsigned LineNo,
852 LLVMMetadataRef File, unsigned LineNo,
909 LLVMMetadataRef File, unsigned LineNo,
1150 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1248 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1328 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
1346 size_t NameLen, unsigned ArgNo, LLVMMetadataRef File, unsigned LineNo,
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DDIBuilder.cpp335 DIFile *File, unsigned LineNo, in createTypedef() argument
340 LineNo, getNonCompileUnitScope(Context), Ty, 0, in createTypedef()
555 DIFile *File, unsigned LineNo, in createSetType() argument
804 unsigned LineNo, bool AlwaysPreserve) { in createLabel() argument
806 auto *Node = DILabel::get(VMContext, Scope, Name, File, LineNo); in createLabel()
830 unsigned LineNo, DISubroutineType *Ty, unsigned ScopeLine, in createFunction() argument
850 unsigned LineNo, DISubroutineType *Ty, unsigned ScopeLine, in createTempFunctionFwdDecl() argument
856 Name, LinkageName, File, LineNo, Ty, in createTempFunctionFwdDecl()
876 LinkageName, F, LineNo, Ty, LineNo, VTableHolder, VIndex, ThisAdjustment, in createMethod()
889 unsigned LineNo) { in createCommonBlock() argument
[all …]
H A DDebugInfo.cpp1116 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty, in LLVMDIBuilderCreateFunction() argument
1388 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateObjCIVar() argument
1393 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateObjCIVar()
1402 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateObjCProperty() argument
1408 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateObjCProperty()
1422 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateTypedef() argument
1602 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit, in LLVMDIBuilderCreateGlobalVariableExpression() argument
1606 unwrapDI<DIFile>(File), LineNo, unwrapDI<DIType>(Ty), LocalToUnit, in LLVMDIBuilderCreateGlobalVariableExpression()
1652 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit, in LLVMDIBuilderCreateTempGlobalVariableFwdDecl() argument
1709 LineNo, unwrap<DIType>(Ty), AlwaysPreserve, in LLVMDIBuilderCreateAutoVariable()
[all …]
H A DLLVMContextImpl.h945 unsigned LineNo;
948 unsigned LineNo)
949 : Scope(Scope), Decl(Decl), Name(Name), File(File), LineNo(LineNo) {}
952 File(N->getRawFile()), LineNo(N->getLineNo()) {}
957 LineNo == RHS->getLineNo();
961 return hash_combine(Scope, Decl, Name, File, LineNo);
972 unsigned LineNo;
977 MDString *APINotesFile, unsigned LineNo, bool IsDecl)
980 APINotesFile(APINotesFile), LineNo(LineNo), IsDecl(IsDecl) {}
985 APINotesFile(N->getRawAPINotesFile()), LineNo(N->getLineNo()),
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-cov/
H A DSourceCoverageView.h193 int64_t LineNo; member
195 LineRef(StringRef Line, int64_t LineNo) : Line(Line), LineNo(LineNo) {} in LineRef()
231 virtual void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) = 0;
H A DSourceCoverageViewText.cpp166 unsigned LineNumber = L.LineNo; in renderLine()
228 unsigned LineNo) { in renderLineNumberColumn() argument
231 BufferOS << LineNo; in renderLineNumberColumn()
H A DSourceCoverageViewHTML.cpp757 unsigned LineNo = L.LineNo; in renderLine() local
830 errs() << "Highlighted line " << LineNo << ", " << Range.first << " -> "; in renderLine()
885 unsigned LineNo) { in renderLineNumberColumn() argument
886 std::string LineNoStr = utostr(uint64_t(LineNo)); in renderLineNumberColumn()
H A DSourceCoverageViewText.h89 void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) override;
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMIRFSDiscriminator.cpp150 unsigned LineNo = in runOnMachineFunction() local
152 if (LineNo == 0) in runOnMachineFunction()
165 LocationDiscriminator LD{DIL->getFilename(), LineNo, Discriminator, in runOnMachineFunction()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtil.cpp135 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()
/freebsd-14.2/contrib/llvm-project/clang/lib/Parse/
H A DParseStmtAsm.cpp388 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()
/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp203 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()
1373 unsigned LineNo = Pos-SourceLineCacheStart; in getLineNumber() local
1378 LastLineNoResult = LineNo; in getLineNumber()
1379 return LineNo; in getLineNumber()
1481 unsigned LineNo = getLineNumber(LocInfo.first, LocInfo.second, &Invalid); in getPresumedLoc() local
1510 LineNo = Entry->LineNo + (LineNo-MarkerLineNo-1); in getPresumedLoc()
1522 return PresumedLoc(Filename.data(), FID, LineNo, ColNo, IncludeLoc); in getPresumedLoc()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Frontend/
H A DTextDiagnostic.h107 unsigned LineNo);
/freebsd-14.2/contrib/llvm-project/clang/lib/CrossTU/
H A DCrossTranslationUnit.cpp190 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()

12