Home
last modified time | relevance | path

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

1234

/external/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()
/external/llvm/include/llvm/IR/
DDIBuilder.h166 unsigned LineNo, DIScope *Context);
192 DIFile *File, unsigned LineNo,
209 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNo,
223 DIFile *File, unsigned LineNo,
238 DIDerivedType *createObjCIVar(StringRef Name, DIFile *File, unsigned LineNo,
459 unsigned LineNo, DIType *Ty,
468 unsigned LineNo, DIType *Ty, bool isLocalToUnit, llvm::Constant *Val,
480 DIFile *File, unsigned LineNo,
498 unsigned LineNo, DIType *Ty,
533 unsigned LineNo, DISubroutineType *Ty,
[all …]
/external/llvm-project/llvm/include/llvm/IR/
DDIBuilder.h252 unsigned LineNo, DIScope *Context,
281 DIFile *File, unsigned LineNo,
301 DIFile *File, unsigned LineNo,
319 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNo,
334 DIFile *File, unsigned LineNo,
350 DIDerivedType *createObjCIVar(StringRef Name, DIFile *File, unsigned LineNo,
623 unsigned LineNo, DIType *Ty, bool IsLocalToUnit, bool isDefined = true,
631 unsigned LineNo, DIType *Ty, bool IsLocalToUnit, MDNode *Decl = nullptr,
644 unsigned LineNo, DIType *Ty, bool AlwaysPreserve = false,
653 createLabel(DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNo,
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDIBuilder.h242 unsigned LineNo, DIScope *Context,
271 DIFile *File, unsigned LineNo,
291 DIFile *File, unsigned LineNo,
309 DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNo,
324 DIFile *File, unsigned LineNo,
340 DIDerivedType *createObjCIVar(StringRef Name, DIFile *File, unsigned LineNo,
586 unsigned LineNo, DIType *Ty, bool IsLocalToUnit, bool isDefined = true,
594 unsigned LineNo, DIType *Ty, bool IsLocalToUnit, MDNode *Decl = nullptr,
607 unsigned LineNo, DIType *Ty, bool AlwaysPreserve = false,
616 createLabel(DIScope *Scope, StringRef Name, DIFile *File, unsigned LineNo,
[all …]
/external/clang/include/clang/Basic/
DSourceManagerInternals.h34 unsigned LineNo; member
54 E.LineNo = Line; in get()
105 unsigned LineNo, int FilenameID);
107 unsigned LineNo, int FilenameID,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
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(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()
DSourceMgr.cpp134 unsigned LineNo; in getLineAndColumn() local
136 LineNo = SB.getLineNumber<uint8_t>(Ptr); in getLineAndColumn()
138 LineNo = SB.getLineNumber<uint16_t>(Ptr); in getLineAndColumn()
140 LineNo = SB.getLineNumber<uint32_t>(Ptr); in getLineAndColumn()
142 LineNo = SB.getLineNumber<uint64_t>(Ptr); in getLineAndColumn()
147 return std::make_pair(LineNo, Ptr-BufStart-NewlineOffs); in getLineAndColumn()
264 : SM(&sm), Loc(L), Filename(FN), LineNo(Line), ColumnNo(Col), Kind(Kind), in SMDiagnostic()
382 if (LineNo != -1) { in print()
383 S << ':' << LineNo; in print()
411 if (LineNo == -1 || ColumnNo == -1) in print()
/external/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()
/external/llvm/lib/Support/
DSourceMgr.cpp86 unsigned LineNo = 1; in getLineAndColumn() local
98 LineNo = Cache->LineNoOfQuery; in getLineAndColumn()
104 if (*Ptr == '\n') ++LineNo; in getLineAndColumn()
114 Cache.LineNoOfQuery = LineNo; in getLineAndColumn()
118 return std::make_pair(LineNo, Ptr-BufStart-NewlineOffs); in getLineAndColumn()
237 : SM(&sm), Loc(L), Filename(FN), LineNo(Line), ColumnNo(Col), Kind(Kind), in SMDiagnostic()
352 if (LineNo != -1) { in print()
353 S << ':' << LineNo; in print()
390 if (LineNo == -1 || ColumnNo == -1) in print()
DSpecialCaseList.cpp91 int LineNo = 1; in parse() local
92 for (auto I = Lines.begin(), E = Lines.end(); I != E; ++I, ++LineNo) { in parse()
101 Error = (Twine("malformed line ") + Twine(LineNo) + ": '" + in parse()
126 Error = (Twine("malformed regex in line ") + Twine(LineNo) + ": '" + in parse()
/external/llvm-project/clang/include/clang/CrossTU/
DCrossTranslationUnit.h62 IndexError(index_error_code C) : Code(C), LineNo(0) {} in IndexError()
63 IndexError(index_error_code C, std::string FileName, int LineNo = 0)
64 : Code(C), FileName(std::move(FileName)), LineNo(LineNo) {} in Code()
73 int getLineNum() const { return LineNo; } in getLineNum()
81 int LineNo; variable
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp155 bool MoveToLine(unsigned LineNo);
161 void WriteLineInfo(unsigned LineNo, const char *Extra=nullptr,
176 void PrintPPOutputPPCallbacks::WriteLineInfo(unsigned LineNo, in WriteLineInfo() argument
183 OS << "#line" << ' ' << LineNo << ' ' << '"'; in WriteLineInfo()
187 OS << '#' << ' ' << LineNo << ' ' << '"'; in WriteLineInfo()
206 bool PrintPPOutputPPCallbacks::MoveToLine(unsigned LineNo) { in MoveToLine() argument
209 if (LineNo-CurLine <= 8) { in MoveToLine()
210 if (LineNo-CurLine == 1) in MoveToLine()
212 else if (LineNo == CurLine) in MoveToLine()
216 OS.write(NewLines, LineNo-CurLine); in MoveToLine()
[all …]
/external/llvm-project/clang/lib/Frontend/
DTextDiagnostic.cpp820 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() local
832 OS << ':' << LineNo; in emitDiagnosticLoc()
834 case DiagnosticOptions::MSVC: OS << '(' << LineNo; break; in emitDiagnosticLoc()
835 case DiagnosticOptions::Vi: OS << " +" << LineNo; break; in emitDiagnosticLoc()
988 unsigned LineNo, FileID FID, in highlightRange() argument
999 if (StartLineNo > LineNo || SM.getFileID(Begin) != FID) in highlightRange()
1003 if (EndLineNo < LineNo || SM.getFileID(End) != FID) in highlightRange()
1008 if (StartLineNo == LineNo) { in highlightRange()
1015 if (EndLineNo == LineNo) { in highlightRange()
1070 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 …]
/external/llvm-project/llvm/tools/llvm-cov/
DSourceCoverageView.h153 int64_t LineNo; member
155 LineRef(StringRef Line, int64_t LineNo) : Line(Line), LineNo(LineNo) {} in LineRef()
191 virtual void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) = 0;
/external/llvm-project/clang/include/clang/Basic/
DSourceManagerInternals.h37 unsigned LineNo; member
57 E.LineNo = Line; in get()
111 unsigned LineNo, int FilenameID,
/external/llvm/tools/llvm-cov/
DSourceCoverageView.h178 int64_t LineNo; member
180 LineRef(StringRef Line, int64_t LineNo) : Line(Line), LineNo(LineNo) {} in LineRef()
217 virtual void renderLineNumberColumn(raw_ostream &OS, unsigned LineNo) = 0;
/external/llvm/lib/IR/
DDIBuilder.cpp238 DIFile *File, unsigned LineNo, in createTypedef() argument
241 LineNo, getNonCompileUnitScope(Context), Ty, 0, 0, in createTypedef()
567 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, unsigned Flags) { in createLocalVariable() argument
576 File, LineNo, Ty, ArgNo, Flags); in createLocalVariable()
589 DIFile *File, unsigned LineNo, in createAutoVariable() argument
593 /* ArgNo */ 0, File, LineNo, Ty, AlwaysPreserve, in createAutoVariable()
599 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, unsigned Flags) { in createParameterVariable() argument
602 File, LineNo, Ty, AlwaysPreserve, Flags); in createParameterVariable()
630 unsigned LineNo, DISubroutineType *Ty, bool isLocalToUnit, in createFunction() argument
635 getNonCompileUnitScope(Context), Name, LinkageName, File, LineNo, Ty, in createFunction()
[all …]
/external/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()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DDebugInfo.h332 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
739 size_t NameLen, LLVMMetadataRef File, unsigned LineNo,
797 LLVMMetadataRef File, unsigned LineNo,
819 LLVMMetadataRef File, unsigned LineNo,
876 LLVMMetadataRef File, unsigned LineNo,
1117 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1209 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1289 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
1307 size_t NameLen, unsigned ArgNo, LLVMMetadataRef File, unsigned LineNo,
/external/llvm-project/llvm/include/llvm-c/
DDebugInfo.h339 LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
746 size_t NameLen, LLVMMetadataRef File, unsigned LineNo,
804 LLVMMetadataRef File, unsigned LineNo,
826 LLVMMetadataRef File, unsigned LineNo,
883 LLVMMetadataRef File, unsigned LineNo,
1124 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1216 unsigned LineNo, LLVMMetadataRef Ty, LLVMBool LocalToUnit,
1296 size_t NameLen, LLVMMetadataRef File, unsigned LineNo, LLVMMetadataRef Ty,
1314 size_t NameLen, unsigned ArgNo, LLVMMetadataRef File, unsigned LineNo,
/external/llvm-project/llvm/lib/IR/
DDIBuilder.cpp316 DIFile *File, unsigned LineNo, in createTypedef() argument
320 LineNo, getNonCompileUnitScope(Context), Ty, 0, in createTypedef()
720 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, DINode::DIFlags Flags, in createLocalVariable() argument
730 File, LineNo, Ty, ArgNo, Flags, AlignInBits); in createLocalVariable()
743 DIFile *File, unsigned LineNo, in createAutoVariable() argument
748 /* ArgNo */ 0, File, LineNo, Ty, AlwaysPreserve, in createAutoVariable()
754 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, DINode::DIFlags Flags) { in createParameterVariable() argument
757 File, LineNo, Ty, AlwaysPreserve, Flags, in createParameterVariable()
763 unsigned LineNo, bool AlwaysPreserve) { in createLabel() argument
768 File, LineNo); in createLabel()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DDIBuilder.cpp308 DIFile *File, unsigned LineNo, in createTypedef() argument
312 LineNo, getNonCompileUnitScope(Context), Ty, 0, in createTypedef()
676 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, DINode::DIFlags Flags, in createLocalVariable() argument
686 File, LineNo, Ty, ArgNo, Flags, AlignInBits); in createLocalVariable()
699 DIFile *File, unsigned LineNo, in createAutoVariable() argument
704 /* ArgNo */ 0, File, LineNo, Ty, AlwaysPreserve, in createAutoVariable()
710 unsigned LineNo, DIType *Ty, bool AlwaysPreserve, DINode::DIFlags Flags) { in createParameterVariable() argument
713 File, LineNo, Ty, AlwaysPreserve, Flags, in createParameterVariable()
719 unsigned LineNo, bool AlwaysPreserve) { in createLabel() argument
724 File, LineNo); in createLabel()
[all …]
/external/clang/lib/Rewrite/
DHTMLRewrite.cpp208 static void AddLineNumber(RewriteBuffer &RB, unsigned LineNo, in AddLineNumber() argument
214 << LineNo << "\">" in AddLineNumber()
215 << LineNo << "</td><td class=\"line\">"; in AddLineNumber()
236 unsigned LineNo = 0; in AddLineNumbers() local
241 ++LineNo; in AddLineNumbers()
262 AddLineNumber(RB, LineNo, LineStartPos, LineEndPos); in AddLineNumbers()

1234