Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/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()
158 SourceMgr::SrcBuffer::getPointerForLineNumber(unsigned LineNo) const { in getPointerForLineNumber()
161 return getPointerForLineNumberSpecialized<uint8_t>(LineNo); in getPointerForLineNumber()
163 return getPointerForLineNumberSpecialized<uint16_t>(LineNo); in getPointerForLineNumber()
165 return getPointerForLineNumberSpecialized<uint32_t>(LineNo); in getPointerForLineNumber()
[all …]
H A DSpecialCaseList.cpp132 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()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DDIBuilder.h289 unsigned LineNo, DIScope *Context,
321 DIFile *File, unsigned LineNo,
341 DIFile *File, unsigned LineNo,
360 DIFile *File, unsigned LineNo,
378 DIFile *File, unsigned LineNo,
394 DIDerivedType *createObjCIVar(StringRef Name, DIFile *File, unsigned LineNo,
594 unsigned LineNo, uint64_t SizeInBits,
679 unsigned LineNo, DIType *Ty, bool IsLocalToUnit, bool isDefined = true,
688 unsigned LineNo, DIType *Ty, bool IsLocalToUnit, MDNode *Decl = nullptr,
701 unsigned LineNo, DIType *Ty, bool AlwaysPreserve = false,
[all …]
H A DDebugInfoMetadata.h2363 unsigned LineNo; variable
2366 DIModule(LLVMContext &Context, StorageType Storage, unsigned LineNo,
2373 unsigned LineNo, bool IsDecl, StorageType Storage,
2378 getCanonicalMDString(Context, APINotesFile), LineNo, IsDecl,
2384 MDString *APINotesFile, unsigned LineNo, bool IsDecl,
2397 StringRef APINotesFile, unsigned LineNo,
2400 APINotesFile, LineNo, IsDecl))
2404 MDString *APINotesFile, unsigned LineNo,
2407 APINotesFile, LineNo, IsDecl))
2416 unsigned getLineNo() const { return LineNo; } in getLineNo()
[all …]
/openbsd-src/gnu/llvm/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
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DTextDiagnostic.cpp808 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()
979 unsigned LineNo, FileID FID, in highlightRange() argument
990 if (StartLineNo > LineNo || SM.getFileID(Begin) != FID) in highlightRange()
994 if (EndLineNo < LineNo || SM.getFileID(End) != FID) in highlightRange()
999 if (StartLineNo == LineNo) { in highlightRange()
1006 if (EndLineNo == LineNo) { in highlightRange()
1061 unsigned LineNo, in buildFixItInsertionLine() argument
[all …]
H A DPrintPreprocessedOutput.cpp206 bool MoveToLine(unsigned LineNo, bool RequireStartOfLine);
212 void WriteLineInfo(unsigned LineNo, const char *Extra=nullptr,
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()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DSourceManagerInternals.h37 unsigned LineNo; member
57 E.LineNo = Line; in get()
111 unsigned LineNo, int FilenameID,
/openbsd-src/gnu/llvm/llvm/tools/llvm-cov/
H A 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;
H A 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()
H A DSourceCoverageViewText.cpp101 unsigned LineNumber = L.LineNo; in renderLine()
163 unsigned LineNo) { in renderLineNumberColumn() argument
166 BufferOS << LineNo; in renderLineNumberColumn()
H A DSourceCoverageViewText.h71 void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) override;
H A DSourceCoverageViewHTML.h80 void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) override;
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/include/llvm-c/
H A DDebugInfo.h364 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
771 size_t NameLen, LLVMMetadataRef File, unsigned LineNo,
829 LLVMMetadataRef File, unsigned LineNo,
851 LLVMMetadataRef File, unsigned LineNo,
908 LLVMMetadataRef File, unsigned LineNo,
1149 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1241 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1321 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
1339 size_t NameLen, unsigned ArgNo, LLVMMetadataRef File, unsigned LineNo,
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DDIBuilder.cpp351 DIFile *File, unsigned LineNo, in createTypedef() argument
356 LineNo, getNonCompileUnitScope(Context), Ty, 0, in createTypedef()
569 DIFile *File, unsigned LineNo, in createSetType() argument
573 DIDerivedType::get(VMContext, dwarf::DW_TAG_set_type, Name, File, LineNo, in createSetType()
777 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, DINode::DIFlags Flags, in createLocalVariable() argument
786 VMContext, cast_or_null<DILocalScope>(Context), Name, File, LineNo, Ty, in createLocalVariable()
800 DIFile *File, unsigned LineNo, in createAutoVariable() argument
805 /* ArgNo */ 0, File, LineNo, Ty, AlwaysPreserve, in createAutoVariable()
811 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, DINode::DIFlags Flags, in createParameterVariable() argument
815 File, LineNo, Ty, AlwaysPreserve, Flags, in createParameterVariable()
[all …]
H A DDebugInfo.cpp1022 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty, in LLVMDIBuilderCreateFunction() argument
1027 unwrapDI<DIFile>(File), LineNo, unwrapDI<DISubroutineType>(Ty), ScopeLine, in LLVMDIBuilderCreateFunction()
1266 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, uint64_t SizeInBits, in LLVMDIBuilderCreateMemberType() argument
1270 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, SizeInBits, AlignInBits, in LLVMDIBuilderCreateMemberType()
1296 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateObjCIVar() argument
1301 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateObjCIVar()
1310 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateObjCProperty() argument
1316 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateObjCProperty()
1330 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateTypedef() argument
1333 unwrapDI<DIType>(Type), {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateTypedef()
[all …]
H A DLLVMContextImpl.h937 unsigned LineNo;
940 unsigned LineNo)
941 : Scope(Scope), Decl(Decl), Name(Name), File(File), LineNo(LineNo) {}
944 File(N->getRawFile()), LineNo(N->getLineNo()) {}
949 LineNo == RHS->getLineNo();
953 return hash_combine(Scope, Decl, Name, File, LineNo);
964 unsigned LineNo;
969 MDString *APINotesFile, unsigned LineNo, bool IsDecl)
972 APINotesFile(APINotesFile), LineNo(LineNo), IsDecl(IsDecl) {}
977 APINotesFile(N->getRawAPINotesFile()), LineNo(N->getLineNo()),
[all …]
H A DDebugInfoMetadata.cpp1131 unsigned LineNo, ArrayRef<Metadata *> Ops) in DICommonBlock() argument
1134 LineNo(LineNo) {} in DICommonBlock()
1137 Metadata *File, unsigned LineNo, in getImpl() argument
1140 DEFINE_GETIMPL_LOOKUP(DICommonBlock, (Scope, Decl, Name, File, LineNo)); in getImpl()
1143 DEFINE_GETIMPL_STORE(DICommonBlock, (LineNo), Ops); in getImpl()
1146 DIModule::DIModule(LLVMContext &Context, StorageType Storage, unsigned LineNo, in DIModule() argument
1149 LineNo(LineNo), IsDecl(IsDecl) {} in DIModule()
1154 unsigned LineNo, bool IsDecl, StorageType Storage, in getImpl() argument
1158 IncludePath, APINotesFile, LineNo, IsDecl)); in getImpl()
1161 DEFINE_GETIMPL_STORE(DIModule, (LineNo, IsDecl), Ops); in getImpl()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DMIRFSDiscriminator.cpp101 unsigned LineNo = DIL->getLine(); in runOnMachineFunction() local
102 if (LineNo == 0) in runOnMachineFunction()
105 LocationDiscriminator LD{DIL->getFilename(), LineNo, Discriminator}; in runOnMachineFunction()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
1439 unsigned LineNo = Pos-SourceLineCacheStart; in getLineNumber() local
1444 LastLineNoResult = LineNo; in getLineNumber()
1445 return LineNo; in getLineNumber()
1547 unsigned LineNo = getLineNumber(LocInfo.first, LocInfo.second, &Invalid); in getPresumedLoc() local
1576 LineNo = Entry->LineNo + (LineNo-MarkerLineNo-1); in getPresumedLoc()
1588 return PresumedLoc(Filename.data(), FID, LineNo, ColNo, IncludeLoc); in getPresumedLoc()
/openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Uncompress/
H A DBase.pm437 *$obj->{LineNo} = $. = 0;
1022 *$self->{LineNo} = $. = 0;
1282 $. = ++ *$self->{LineNo} ;
1488 my $last = *$self->{LineNo};
1489 $. = *$self->{LineNo} = $_[1] if @_ ;

12