| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/GSYM/ |
| H A D | LineTable.h | 174 if (Lines.empty()) in first() 176 return Lines.front(); in first() 183 if (Lines.empty()) in last() 185 return Lines.back(); in last() 188 Lines.push_back(LE); in push() 194 return Lines.size(); in size() 198 return Lines[i]; in get() 202 return Lines[i]; in get() 211 return Lines == RHS.Lines; 214 return Lines != RHS.Lines; [all …]
|
| /llvm-project-15.0.7/clang/lib/Format/ |
| H A D | DefinitionBlockSeparator.cpp | 77 for (unsigned I = 0; I < Lines.size(); ++I) { in separateBlocks() 78 const auto &CurrentLine = Lines[I]; in separateBlocks() 107 const auto &Line = Lines[LineIndex]; in separateBlocks() 141 assert(OperateIndex < Lines.size()); in separateBlocks() 152 OperateIndex + 1 < Lines.size()) { in separateBlocks() 179 OpeningLine = Lines[OpeningLineIndex]; in separateBlocks() 191 while (I < Lines.size() && !Lines[I]->First->is(tok::r_brace)) in separateBlocks() 194 if (OpeningLineIndex > Lines.size()) in separateBlocks() 204 OpeningLine = Lines[OpeningLineIndex]; in separateBlocks() 226 TargetLine = Lines[OpeningLineIndex]; in separateBlocks() [all …]
|
| H A D | BreakableToken.cpp | 382 Content.resize(Lines.size()); in BreakableBlockComment() 383 Content[0] = Lines[0]; in BreakableBlockComment() 384 ContentColumn.resize(Lines.size()); in BreakableBlockComment() 387 Tokens.resize(Lines.size()); in BreakableBlockComment() 466 if ((Lines[0] == "*" || Lines[0].startswith("* ")) && Lines.size() > 1) { in BreakableBlockComment() 469 } else if (Lines[0].startswith("* ") && Lines.size() == 1) { in BreakableBlockComment() 770 TokenText.split(Lines, "\n"); in BreakableLineCommentSection() 771 Content.resize(Lines.size()); in BreakableLineCommentSection() 774 Tokens.resize(Lines.size()); in BreakableLineCommentSection() 775 Prefix.resize(Lines.size()); in BreakableLineCommentSection() [all …]
|
| H A D | AffectedRangeManager.cpp | 23 SmallVectorImpl<AnnotatedLine *> &Lines) { in computeAffectedLines() argument 24 SmallVectorImpl<AnnotatedLine *>::iterator I = Lines.begin(); in computeAffectedLines() 25 SmallVectorImpl<AnnotatedLine *>::iterator E = Lines.end(); in computeAffectedLines() 52 if (nonPPLineAffected(Line, PreviousLine, Lines)) in computeAffectedLines() 103 SmallVectorImpl<AnnotatedLine *> &Lines) { in nonPPLineAffected() argument 145 Lines[Line->MatchingOpeningBlockLineIndex]->Affected; in nonPPLineAffected()
|
| H A D | AffectedRangeManager.h | 34 bool computeAffectedLines(SmallVectorImpl<AnnotatedLine *> &Lines); 56 SmallVectorImpl<AnnotatedLine *> &Lines);
|
| /llvm-project-15.0.7/llvm/lib/ObjectYAML/ |
| H A D | CodeViewYAMLDebugSections.cpp | 132 SourceLineInfo Lines; member 419 Result->setRelocationAddress(Lines.RelocSegment, Lines.RelocOffset); in toCodeViewSubsection() 420 Result->setFlags(Lines.Flags); in toCodeViewSubsection() 585 Result->Lines.CodeSize = Lines.header()->CodeSize; in fromCodeViewSubsection() 586 Result->Lines.RelocOffset = Lines.header()->RelocOffset; in fromCodeViewSubsection() 587 Result->Lines.RelocSegment = Lines.header()->RelocSegment; in fromCodeViewSubsection() 588 Result->Lines.Flags = static_cast<LineFlags>(uint16_t(Lines.header()->Flags)); in fromCodeViewSubsection() 589 for (const auto &L : Lines) { in fromCodeViewSubsection() 595 if (Lines.hasColumnInfo()) { in fromCodeViewSubsection() 625 for (const auto &IL : Lines) { in fromCodeViewSubsection() [all …]
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/ |
| H A D | DebugLinesSubsection.cpp | 54 : DebugSubsectionRef(DebugSubsectionKind::Lines) {} in DebugLinesSubsectionRef() 73 : DebugSubsection(DebugSubsectionKind::Lines), Checksums(Checksums) {} in DebugLinesSubsection() 86 B.Lines.push_back(LNE); in addLineInfo() 94 assert(B.Lines.size() == B.Columns.size()); in addLineAndColumnInfo() 115 assert(B.Lines.size() == B.Columns.size() || B.Columns.empty()); in commit() 117 BlockHeader.NumLines = B.Lines.size(); in commit() 126 if (auto EC = Writer.writeArray(makeArrayRef(B.Lines))) in commit() 141 Size += B.Lines.size() * sizeof(LineNumberEntry); in calculateSerializedSize()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-query/ |
| H A D | Query.cpp | 202 SmallVector<StringRef, 4> Lines; in run() local 203 Source.split(Lines, "\n"); in run() 204 auto FirstLine = Lines[0]; in run() 205 Lines.erase(Lines.begin(), Lines.begin() + 1); in run() 206 while (!Lines.empty() && Lines.back().empty()) { in run() 207 Lines.resize(Lines.size() - 1); in run() 213 for (auto Line : Lines) { in run()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | Host.cpp | 165 SmallVector<StringRef, 32> Lines; in getHostCPUNameForARM() local 166 ProcCpuinfoContent.split(Lines, "\n"); in getHostCPUNameForARM() 175 if (Lines[I].startswith("Hardware")) in getHostCPUNameForARM() 280 for (auto I : Lines) in getHostCPUNameForARM() 286 for (auto I : Lines) in getHostCPUNameForARM() 352 SmallVector<StringRef, 32> Lines; in getHostCPUNameForS390x() local 359 size_t Pos = Lines[I].find(':'); in getHostCPUNameForS390x() 394 SmallVector<StringRef> Lines; in getHostCPUNameForRISCV() local 1422 SmallVector<StringRef> Lines; in getHostCPUNameForSPARC() local 1836 SmallVector<StringRef, 32> Lines; in getHostCPUFeatures() local [all …]
|
| H A D | Signals.cpp | 215 SmallVector<StringRef, 32> Lines; in printSymbolizedStackTrace() local 216 Output.split(Lines, "\n"); in printSymbolizedStackTrace() 217 auto CurLine = Lines.begin(); in printSymbolizedStackTrace() 233 if (CurLine == Lines.end()) in printSymbolizedStackTrace() 241 if (CurLine == Lines.end()) in printSymbolizedStackTrace()
|
| /llvm-project-15.0.7/clang/lib/Driver/ |
| H A D | Distro.cpp | 31 SmallVector<StringRef, 16> Lines; in DetectOsRelease() local 32 File.get()->getBuffer().split(Lines, "\n"); in DetectOsRelease() 36 for (StringRef Line : Lines) in DetectOsRelease() 57 SmallVector<StringRef, 16> Lines; in DetectLsbRelease() local 58 File.get()->getBuffer().split(Lines, "\n"); in DetectLsbRelease() 61 for (StringRef Line : Lines) in DetectLsbRelease() 178 SmallVector<StringRef, 8> Lines; in DetectDistro() local 179 Data.split(Lines, "\n"); in DetectDistro() 180 for (const StringRef &Line : Lines) { in DetectDistro()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | NativeEnumLineNumbers.cpp | 23 : Lines(std::move(LineNums)), Index(0) {} in NativeEnumLineNumbers() 26 return static_cast<uint32_t>(Lines.size()); in getChildCount() 33 return std::make_unique<NativeLineNumber>(Lines[N]); in getChildAtIndex()
|
| H A D | SymbolCache.cpp | 467 if (SS.kind() != DebugSubsectionKind::Lines) in findLineTable() 470 DebugLinesSubsectionRef Lines; in findLineTable() local 472 if (auto EC = Lines.initialize(Reader)) { in findLineTable() 477 uint32_t RelocSegment = Lines.header()->RelocSegment; in findLineTable() 478 uint32_t RelocOffset = Lines.header()->RelocOffset; in findLineTable() 479 for (const LineColumnEntry &Group : Lines) { in findLineTable() 504 if (Lines.hasColumnInfo() && ColIt != ColsEnd) { in findLineTable() 538 std::vector<LineTableEntry> Lines = findLineTable(Modi); in findLineNumbersByVA() local 539 if (Lines.empty()) in findLineNumbersByVA() 549 if (LineIter == Lines.end() || LineIter->Addr > VA) { in findLineNumbersByVA() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | DebugInlineeLinesSubsection.h | 76 bool valid() const { return Lines.valid(); } 79 Iterator begin() const { return Lines.begin(); } 80 Iterator end() const { return Lines.end(); } 84 LinesArray Lines;
|
| H A D | DebugLinesSubsection.h | 89 return S->kind() == DebugSubsectionKind::Lines; in classof() 112 std::vector<LineNumberEntry> Lines; member 121 return S->kind() == DebugSubsectionKind::Lines; in classof()
|
| /llvm-project-15.0.7/lld/test/COFF/ |
| H A D | pdb-source-lines.test | 42 CHECK-NEXT: - !Lines 49 CHECK-NEXT: Lines: 67 CHECK-NEXT: - !Lines 74 CHECK-NEXT: Lines: 102 CHECK-NEXT: - !Lines 109 CHECK-NEXT: Lines:
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | FunctionSizeCheck.cpp | 114 unsigned Lines = 0; member 171 FI.Lines = SM->getSpellingLineNumber(Body->getEndLoc()) - in check() 178 if (FI.Lines > LineThreshold || FI.Statements > StatementThreshold || in check() 187 if (FI.Lines > LineThreshold) { in check() 191 << FI.Lines << LineThreshold; in check()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/PerfJITEvents/ |
| H A D | PerfJITEventListener.cpp | 79 void NotifyDebug(uint64_t CodeAddr, DILineInfoTable Lines); 279 DILineInfoTable Lines = Context->getLineInfoForAddressRange( in notifyObjectLoaded() local 282 NotifyDebug(*AddrOrErr, Lines); in notifyObjectLoaded() 436 DILineInfoTable Lines) { in NotifyDebug() argument 440 if (Lines.empty()) in NotifyDebug() 448 rec.NrEntry = Lines.size(); in NotifyDebug() 451 DILineInfoTable::iterator Begin = Lines.begin(); in NotifyDebug() 452 DILineInfoTable::iterator End = Lines.end(); in NotifyDebug()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ConfusableTable/ |
| H A D | BuildConfusableTable.cpp | 24 SmallVector<StringRef> Lines; in main() local 25 SplitString(Content, Lines, "\r\n"); in main() 29 for (StringRef Line : Lines) { in main()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/OProfileJIT/ |
| H A D | OProfileJITEventListener.cpp | 115 DILineInfoTable Lines = Context->getLineInfoForAddressRange(Addr, Size); in notifyObjectLoaded() local 117 size_t num_entries = Lines.size(); in notifyObjectLoaded() 122 for (auto& It : Lines) { in notifyObjectLoaded() 126 const_cast<char *>(Lines.front().second.FileName.c_str()); in notifyObjectLoaded()
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/ |
| H A D | DebugSupport.cpp | 177 std::vector<std::string> Lines; in debugString() local 183 Lines.push_back(Line); in debugString() 185 llvm::sort(Lines); in debugString() 187 return formatv("{0:$[\n]}", llvm::make_range(Lines.begin(), Lines.end())); in debugString()
|
| /llvm-project-15.0.7/libc/utils/HdrGen/ |
| H A D | PublicAPICommand.cpp | 23 llvm::SmallVector<llvm::StringRef, 10> Lines; in dedentAndWrite() local 24 llvm::SplitString(Text, Lines, "\n"); in dedentAndWrite() 26 for (llvm::StringRef L : Lines) { in dedentAndWrite() 36 for (llvm::StringRef L : Lines) { in dedentAndWrite()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/Symbolize/ |
| H A D | DIPrinter.cpp | 36 if (Lines <= 0) in load() 71 const int Lines; member in llvm::symbolize::SourceCode 77 StringRef FileName, int64_t Line, int Lines, in SourceCode() argument 79 : Line(Line), Lines(Lines), in SourceCode() 80 FirstLine(std::max(static_cast<int64_t>(1), Line - Lines / 2)), in SourceCode() 81 LastLine(FirstLine + Lines - 1), in SourceCode()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/ |
| H A D | TraceTests.cpp | 154 llvm::SmallVector<llvm::StringRef> Lines; in outputLines() local 155 llvm::StringRef(Output).split(Lines, "\r\n"); in outputLines() 156 return {Lines.begin(), Lines.end()}; in outputLines()
|
| /llvm-project-15.0.7/llvm/tools/llvm-cfi-verify/ |
| H A D | llvm-cfi-verify.cpp | 75 SmallVector<StringRef, 100> Lines; in printBlameContext() local 76 File->getBuffer().split(Lines, '\n'); in printBlameContext() 80 std::min<size_t>(Lines.size() + 1, LineInfo.Line + Context + 1); in printBlameContext() 87 outs() << i << ": " << Lines[i - 1] << "\n"; in printBlameContext()
|