Home
last modified time | relevance | path

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

12

/freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/
DSourceMgr.cpp124 unsigned LineNo) const { in getPointerForLineNumberSpecialized()
129 if (LineNo != 0) in getPointerForLineNumberSpecialized()
130 --LineNo; in getPointerForLineNumberSpecialized()
136 if (LineNo == 0) in getPointerForLineNumberSpecialized()
138 if (LineNo > Offsets.size()) in getPointerForLineNumberSpecialized()
140 return BufStart + Offsets[LineNo - 1] + 1; in getPointerForLineNumberSpecialized()
146 SourceMgr::SrcBuffer::getPointerForLineNumber(unsigned LineNo) const { in getPointerForLineNumber()
149 return getPointerForLineNumberSpecialized<uint8_t>(LineNo); in getPointerForLineNumber()
151 return getPointerForLineNumberSpecialized<uint16_t>(LineNo); in getPointerForLineNumber()
153 return getPointerForLineNumberSpecialized<uint32_t>(LineNo); in getPointerForLineNumber()
[all …]
DSpecialCaseList.cpp133 unsigned LineNo = 1; in parse() local
136 for (auto I = Lines.begin(), E = Lines.end(); I != E; ++I, ++LineNo) { in parse()
145 Error = (Twine("malformed section header on line ") + Twine(LineNo) + in parse()
169 Error = (Twine("malformed line ") + Twine(LineNo) + ": '" + in parse()
182 if (!M->insert(std::string(Section), LineNo, REError)) { in parse()
193 if (!Entry.insert(std::move(Regexp), LineNo, REError)) { in parse()
194 Error = (Twine("malformed regex in line ") + Twine(LineNo) + ": '" + in parse()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
DDIBuilder.h254 unsigned LineNo, DIScope *Context,
283 DIFile *File, unsigned LineNo,
303 DIFile *File, unsigned LineNo,
321 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNo,
336 DIFile *File, unsigned LineNo,
352 DIDerivedType *createObjCIVar(StringRef Name, DIFile *File, unsigned LineNo,
552 unsigned LineNo, uint64_t SizeInBits,
637 unsigned LineNo, DIType *Ty, bool IsLocalToUnit, bool isDefined = true,
645 unsigned LineNo, DIType *Ty, bool IsLocalToUnit, MDNode *Decl = nullptr,
658 unsigned LineNo, DIType *Ty, bool AlwaysPreserve = false,
[all …]
DDebugInfoMetadata.h2302 unsigned LineNo; variable
2305 DIModule(LLVMContext &Context, StorageType Storage, unsigned LineNo, in DIModule() argument
2308 LineNo(LineNo), IsDecl(IsDecl) {} in DIModule()
2314 unsigned LineNo, bool IsDecl, StorageType Storage,
2319 getCanonicalMDString(Context, APINotesFile), LineNo, IsDecl,
2325 MDString *APINotesFile, unsigned LineNo, bool IsDecl,
2338 StringRef APINotesFile, unsigned LineNo,
2341 APINotesFile, LineNo, IsDecl))
2345 MDString *APINotesFile, unsigned LineNo,
2348 APINotesFile, LineNo, IsDecl))
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/CrossTU/
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-12-stable/contrib/llvm-project/llvm/include/llvm/Support/
DSourceMgr.h70 const char *getPointerForLineNumber(unsigned LineNo) const;
72 const char *getPointerForLineNumberSpecialized(unsigned LineNo) const;
182 SMLoc FindLocForLineAndColumn(unsigned BufferID, unsigned LineNo,
255 int LineNo = 0; variable
267 : Filename(filename), LineNo(-1), ColumnNo(-1), Kind(Knd), Message(Msg) {} in SMDiagnostic()
278 int getLineNo() const { return LineNo; } in getLineNo()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Frontend/
DTextDiagnostic.cpp809 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() local
821 OS << ':' << LineNo; in emitDiagnosticLoc()
823 case DiagnosticOptions::MSVC: OS << '(' << LineNo; break; in emitDiagnosticLoc()
824 case DiagnosticOptions::Vi: OS << " +" << LineNo; break; in emitDiagnosticLoc()
977 unsigned LineNo, FileID FID, in highlightRange() argument
988 if (StartLineNo > LineNo || SM.getFileID(Begin) != FID) in highlightRange()
992 if (EndLineNo < LineNo || SM.getFileID(End) != FID) in highlightRange()
997 if (StartLineNo == LineNo) { in highlightRange()
1004 if (EndLineNo == LineNo) { in highlightRange()
1059 unsigned LineNo, in buildFixItInsertionLine() argument
[all …]
DPrintPreprocessedOutput.cpp162 bool MoveToLine(unsigned LineNo);
168 void WriteLineInfo(unsigned LineNo, const char *Extra=nullptr,
187 void PrintPPOutputPPCallbacks::WriteLineInfo(unsigned LineNo, in WriteLineInfo() argument
194 OS << "#line" << ' ' << LineNo << ' ' << '"'; in WriteLineInfo()
198 OS << '#' << ' ' << LineNo << ' ' << '"'; in WriteLineInfo()
217 bool PrintPPOutputPPCallbacks::MoveToLine(unsigned LineNo) { in MoveToLine() argument
220 if (LineNo-CurLine <= 8) { in MoveToLine()
221 if (LineNo-CurLine == 1) in MoveToLine()
223 else if (LineNo == CurLine) in MoveToLine()
227 OS.write(NewLines, LineNo-CurLine); in MoveToLine()
[all …]
/freebsd-12-stable/lib/libc/gen/
Dfstab.c53 static int LineNo = 0; variable
124 ++LineNo; in fstabscan()
259 LineNo = 0; in setfsent()
269 LineNo = 0; in setfsent()
297 sprintf(num, "%d: ", LineNo); in error()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
DDIBuilder.cpp321 DIFile *File, unsigned LineNo, in createTypedef() argument
325 LineNo, getNonCompileUnitScope(Context), Ty, 0, in createTypedef()
534 DIFile *File, unsigned LineNo, in createSetType() argument
538 DIDerivedType::get(VMContext, dwarf::DW_TAG_set_type, Name, File, LineNo, in createSetType()
737 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, DINode::DIFlags Flags, in createLocalVariable() argument
747 File, LineNo, Ty, ArgNo, Flags, AlignInBits); in createLocalVariable()
760 DIFile *File, unsigned LineNo, in createAutoVariable() argument
765 /* ArgNo */ 0, File, LineNo, Ty, AlwaysPreserve, in createAutoVariable()
771 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, DINode::DIFlags Flags) { in createParameterVariable() argument
774 File, LineNo, Ty, AlwaysPreserve, Flags, in createParameterVariable()
[all …]
DDebugInfo.cpp964 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty, in LLVMDIBuilderCreateFunction() argument
969 unwrapDI<DIFile>(File), LineNo, unwrapDI<DISubroutineType>(Ty), ScopeLine, in LLVMDIBuilderCreateFunction()
1206 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, uint64_t SizeInBits, in LLVMDIBuilderCreateMemberType() argument
1210 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, SizeInBits, AlignInBits, in LLVMDIBuilderCreateMemberType()
1236 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateObjCIVar() argument
1241 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateObjCIVar()
1250 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateObjCProperty() argument
1256 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateObjCProperty()
1270 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateTypedef() argument
1273 unwrapDI<DIType>(Type), {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateTypedef()
[all …]
DLLVMContextImpl.h866 unsigned LineNo;
869 Metadata *File, unsigned LineNo)
870 : Scope(Scope), Decl(Decl), Name(Name), File(File), LineNo(LineNo) {}
873 File(N->getRawFile()), LineNo(N->getLineNo()) {}
878 LineNo == RHS->getLineNo();
882 return hash_combine(Scope, Decl, Name, File, LineNo);
893 unsigned LineNo;
898 MDString *APINotesFile, unsigned LineNo, bool IsDecl)
901 APINotesFile(APINotesFile), LineNo(LineNo), IsDecl(IsDecl) {}
906 APINotesFile(N->getRawAPINotesFile()), LineNo(N->getLineNo()),
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Basic/
DSourceManagerInternals.h37 unsigned LineNo; member
57 E.LineNo = Line; in get()
111 unsigned LineNo, int FilenameID,
/freebsd-12-stable/contrib/llvm-project/clang/lib/Rewrite/
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-12-stable/contrib/llvm-project/llvm/tools/llvm-cov/
DSourceCoverageView.h173 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;
DSourceCoverageViewHTML.cpp501 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()
DSourceCoverageViewText.cpp101 unsigned LineNumber = L.LineNo; in renderLine()
163 unsigned LineNo) { in renderLineNumberColumn() argument
166 BufferOS << LineNo; in renderLineNumberColumn()
DSourceCoverageViewText.h71 void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) override;
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm-c/
DDebugInfo.h340 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
747 size_t NameLen, LLVMMetadataRef File, unsigned LineNo,
805 LLVMMetadataRef File, unsigned LineNo,
827 LLVMMetadataRef File, unsigned LineNo,
884 LLVMMetadataRef File, unsigned LineNo,
1125 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1217 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1297 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
1315 size_t NameLen, unsigned ArgNo, LLVMMetadataRef File, unsigned LineNo,
/freebsd-12-stable/contrib/llvm-project/llvm/lib/CodeGen/
DMIRFSDiscriminator.cpp97 unsigned LineNo = DIL->getLine(); in runOnMachineFunction() local
98 if (LineNo == 0) in runOnMachineFunction()
101 LocationDiscriminator LD{DIL->getFilename(), LineNo, Discriminator}; in runOnMachineFunction()
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
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-12-stable/contrib/llvm-project/clang/lib/Parse/
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-12-stable/contrib/llvm-project/clang/lib/Basic/
DSourceManager.cpp205 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()
1435 unsigned LineNo = Pos-SourceLineCacheStart; in getLineNumber() local
1440 LastLineNoResult = LineNo; in getLineNumber()
1441 return LineNo; in getLineNumber()
1543 unsigned LineNo = getLineNumber(LocInfo.first, LocInfo.second, &Invalid); in getPresumedLoc() local
1572 LineNo = Entry->LineNo + (LineNo-MarkerLineNo-1); in getPresumedLoc()
1584 return PresumedLoc(Filename.data(), FID, LineNo, ColNo, IncludeLoc); in getPresumedLoc()
/freebsd-12-stable/contrib/llvm-project/clang/lib/CrossTU/
DCrossTranslationUnit.cpp161 unsigned LineNo = 1; in parseCrossTUIndex() local
177 index_error_code::multiple_definitions, IndexPath.str(), LineNo); in parseCrossTUIndex()
180 index_error_code::invalid_index_format, IndexPath.str(), LineNo); in parseCrossTUIndex()
181 ++LineNo; in parseCrossTUIndex()
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DCGDebugInfo.h357 llvm::DIDerivedType *DescTy, unsigned LineNo,
653 unsigned LineNo, llvm::DINode::DIFlags Flags,
688 unsigned LineNo, StringRef LinkageName,
743 unsigned &LineNo, QualType &T, StringRef &Name,

12