Home
last modified time | relevance | path

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

12

/freebsd/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()
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.cpp133 SpecialCaseList::addSection(StringRef SectionStr, unsigned LineNo, in parse()
138 if (auto Err = Section.SectionMatcher->insert(SectionStr, LineNo, UseGlobs)) in parse()
140 "malformed section at line " + Twine(LineNo) + in parse()
162 unsigned LineNo = LineIt.line_number(); in parse()
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)))
129 unsigned LineNo = 1; parse() local
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDIBuilder.h308 unsigned LineNo, DIScope *Context,
325 unsigned LineNo, DIScope *Context,
358 DIFile *File, unsigned LineNo,
378 DIFile *File, unsigned LineNo,
397 DIFile *File, unsigned LineNo,
416 DIFile *File, unsigned LineNo,
432 DIDerivedType *createObjCIVar(StringRef Name, DIFile *File, unsigned LineNo,
635 unsigned LineNo, uint64_t SizeInBits,
720 unsigned LineNo, DIType *Ty, bool IsLocalToUnit, bool isDefined = true,
729 unsigned LineNo, DIType *Ty, bool IsLocalToUnit, MDNode *Decl = nullptr,
[all …]
/freebsd/lib/libc/gen/
H A Dfstab.c49 static int LineNo = 0; variable
120 ++LineNo; in fstabscan()
255 LineNo = 0; in setfsent()
261 LineNo = 0; in setfsent()
289 sprintf(num, "%d: ", LineNo); in error()
/freebsd/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/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()
/freebsd/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/contrib/llvm-project/clang/lib/Frontend/
H A DTextDiagnostic.cpp797 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() local
810 OS << ':' << LineNo; in emitDiagnosticLoc()
812 case DiagnosticOptions::MSVC: OS << '(' << LineNo; break; in emitDiagnosticLoc()
813 case DiagnosticOptions::Vi: OS << " +" << LineNo; break; in emitDiagnosticLoc()
963 unsigned LineNo; member
1002 unsigned LineNo, in buildFixItInsertionLine() argument
1021 LineNo == SM.getLineNumber(HintLocInfo.first, HintLocInfo.second) && in buildFixItInsertionLine()
1358 for (unsigned LineNo = Lines.first; LineNo != Lines.second + 1; in emitSnippetAndCaret() local
1359 ++LineNo, ++DisplayLineNo) { in emitSnippetAndCaret()
1363 SM.getDecomposedLoc(SM.translateLineCol(FID, LineNo, 1)).second; in emitSnippetAndCaret()
[all …]
H A DPrintPreprocessedOutput.cpp224 bool MoveToLine(unsigned LineNo, bool RequireStartOfLine);
230 void WriteLineInfo(unsigned LineNo, const char *Extra=nullptr,
252 void PrintPPOutputPPCallbacks::WriteLineInfo(unsigned LineNo, in WriteLineInfo() argument
259 *OS << "#line" << ' ' << LineNo << ' ' << '"'; in WriteLineInfo()
263 *OS << '#' << ' ' << LineNo << ' ' << '"'; in WriteLineInfo()
282 bool PrintPPOutputPPCallbacks::MoveToLine(unsigned LineNo, in MoveToLine() argument
299 if (CurLine == LineNo) { in MoveToLine()
303 } else if (!StartedNewLine && LineNo - CurLine == 1) { in MoveToLine()
310 if (LineNo - CurLine <= 8) { in MoveToLine()
312 OS->write(NewLines, LineNo - CurLine); in MoveToLine()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/
H A DSourceCoverageView.h189 int64_t LineNo; member
191 LineRef(StringRef Line, int64_t LineNo) : Line(Line), LineNo(LineNo) {} in LineRef()
227 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.cpp935 unsigned LineNo = L.LineNo; in renderLine() local
1011 errs() << "Highlighted line " << LineNo << ", " << Range.first << " -> "; in renderLine()
1068 unsigned LineNo) { in renderLineNumberColumn() argument
1069 std::string LineNoStr = utostr(uint64_t(LineNo)); in renderLineNumberColumn()
H A DSourceCoverageViewText.h89 void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) override;
H A DSourceCoverageViewHTML.h102 void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) override;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDIBuilder.cpp349 DIFile *File, unsigned LineNo, in createTypedef() argument
354 LineNo, getNonCompileUnitScope(Context), Ty, 0, in createTypedef()
361 unsigned LineNo, DIScope *Context, in createTemplateAlias() argument
365 LineNo, getNonCompileUnitScope(Context), Ty, 0, in createTemplateAlias()
582 DIFile *File, unsigned LineNo, in createSetType() argument
586 LineNo, getNonCompileUnitScope(Scope), Ty, in createSetType()
790 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, DINode::DIFlags Flags, in createLocalVariable() argument
795 auto *Node = DILocalVariable::get(VMContext, Scope, Name, File, LineNo, Ty, in createLocalVariable()
807 DIFile *File, unsigned LineNo, in createAutoVariable() argument
815 /* ArgNo */ 0, File, LineNo, Ty, AlwaysPreserve, Flags, AlignInBits); in createAutoVariable()
[all …]
H A DDebugInfo.cpp1121 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty, in LLVMDIBuilderCreateFunction() argument
1126 unwrapDI<DIFile>(File), LineNo, unwrapDI<DISubroutineType>(Ty), ScopeLine, in LLVMDIBuilderCreateFunction()
1365 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, uint64_t SizeInBits, in LLVMDIBuilderCreateMemberType() argument
1369 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, SizeInBits, AlignInBits, in LLVMDIBuilderCreateMemberType()
1393 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateObjCIVar() argument
1398 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateObjCIVar()
1407 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateObjCProperty() argument
1413 {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateObjCProperty()
1427 LLVMMetadataRef File, unsigned LineNo, in LLVMDIBuilderCreateTypedef() argument
1430 unwrapDI<DIType>(Type), {Name, NameLen}, unwrapDI<DIFile>(File), LineNo, in LLVMDIBuilderCreateTypedef()
[all …]
H A DLLVMContextImpl.h959 unsigned LineNo;
962 unsigned LineNo)
963 : Scope(Scope), Decl(Decl), Name(Name), File(File), LineNo(LineNo) {}
966 File(N->getRawFile()), LineNo(N->getLineNo()) {}
971 LineNo == RHS->getLineNo();
975 return hash_combine(Scope, Decl, Name, File, LineNo);
986 unsigned LineNo;
991 MDString *APINotesFile, unsigned LineNo, bool IsDecl)
994 APINotesFile(APINotesFile), LineNo(LineNo), IsDecl(IsDecl) {}
999 APINotesFile(N->getRawAPINotesFile()), LineNo(N->getLineNo()),
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DDebugInfo.h378 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
785 size_t NameLen, LLVMMetadataRef File, unsigned LineNo,
843 LLVMMetadataRef File, unsigned LineNo,
865 LLVMMetadataRef File, unsigned LineNo,
922 LLVMMetadataRef File, unsigned LineNo,
1163 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1261 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1359 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
1377 size_t NameLen, unsigned ArgNo, LLVMMetadataRef File, unsigned LineNo,
/freebsd/contrib/llvm-project/clang/lib/Rewrite/
H A DHTMLRewrite.cpp237 static void AddLineNumber(RewriteBuffer &RB, unsigned LineNo, in AddLineNumber() argument
242 OS << "<tr class=\"codeline\" data-linenumber=\"" << LineNo << "\">" in AddLineNumber()
243 << "<td class=\"num\" id=\"LN" << LineNo << "\">" << LineNo in AddLineNumber()
265 unsigned LineNo = 0; in AddLineNumbers() local
270 ++LineNo; in AddLineNumbers()
291 AddLineNumber(RB, LineNo, LineStartPos, LineEndPos); in AddLineNumbers()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMIRFSDiscriminator.cpp150 unsigned LineNo = in runOnMachineFunction()
152 if (LineNo == 0) in runOnMachineFunction()
165 LocationDiscriminator LD{DIL->getFilename(), LineNo, Discriminator, in runOnMachineFunction()
148 unsigned LineNo = runOnMachineFunction() local
/freebsd/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/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/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp211 void LineTableInfo::AddLineNote(FileID FID, unsigned Offset, unsigned LineNo, in AddLineNote() argument
242 Entries.push_back(LineEntry::get(Offset, LineNo, FilenameID, FileKind, in AddLineNote()
280 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() argument
304 LineTable->AddLineNote(LocInfo.first, LocInfo.second, LineNo, FilenameID, in AddLineNote()
1388 unsigned LineNo = Pos-SourceLineCacheStart; in getLineNumber() local
1393 LastLineNoResult = LineNo; in getLineNumber()
1394 return LineNo; in getLineNumber()
1496 unsigned LineNo = getLineNumber(LocInfo.first, LocInfo.second, &Invalid); in getPresumedLoc() local
1525 LineNo = Entry->LineNo + (LineNo-MarkerLineNo-1); in getPresumedLoc()
1537 return PresumedLoc(Filename.data(), FID, LineNo, ColNo, IncludeLoc); in getPresumedLoc()
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DTextDiagnostic.h116 unsigned LineNo, unsigned DisplayLineNo,
/freebsd/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp701 unsigned LineNo = 1; in main() local
704 LineNo++; in main()
706 errs() << "Clang-formating " << LineNo << " files\n"; in main()

12