Home
last modified time | relevance | path

Searched refs:Line (Results 1 – 25 of 492) sorted by relevance

12345678910>>...20

/freebsd-src/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderAnalysis.cpp19 bool isIf(llvm::StringRef Line) { in isIf() argument
20 Line = Line.ltrim(); in isIf()
21 if (!Line.consume_front("#")) in isIf()
23 Line = Line.ltrim(); in isIf()
24 return Line.starts_with("if"); in isIf()
28 bool isErrorAboutInclude(llvm::StringRef Line) { in isErrorAboutInclude() argument
29 Line = Line.ltrim(); in isErrorAboutInclude()
30 if (!Line.consume_front("#")) in isErrorAboutInclude()
32 Line = Line.ltrim(); in isErrorAboutInclude()
33 if (!Line.starts_with("error")) in isErrorAboutInclude()
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DMarkup.cpp38 void MarkupParser::parseLine(StringRef Line) { in parseLine() argument
42 this->Line = Line; in parseLine()
56 if (Line.empty()) in nextNode()
60 if (std::optional<StringRef> MultilineEnd = parseMultiLineEnd(Line)) { in nextNode()
66 advanceTo(Line, MultilineEnd->end()); in nextNode()
71 llvm::append_range(InProgressMultiline, Line); in nextNode()
72 Line = Line.drop_front(Line.size()); in nextNode()
77 if (std::optional<MarkupNode> Element = parseElement(Line)) { in nextNode()
78 parseTextOutsideMarkup(takeTo(Line, Element->Text.begin())); in nextNode()
80 advanceTo(Line, Element->Text.end()); in nextNode()
[all …]
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/ObjectFile/Breakpad/
H A DBreakpadRecords.cpp132 std::optional<Record::Kind> Record::classify(llvm::StringRef Line) { in classify() argument
133 Token Tok = consume<Token>(Line); in classify()
146 Tok = consume<Token>(Line); in classify()
163 return Record::Line; in classify()
175 std::optional<ModuleRecord> ModuleRecord::parse(llvm::StringRef Line) { in parse() argument
177 if (consume<Token>(Line) != Token::Module) in parse()
180 llvm::Triple::OSType OS = consume<llvm::Triple::OSType>(Line); in parse()
184 llvm::Triple::ArchType Arch = consume<llvm::Triple::ArchType>(Line); in parse()
189 std::tie(Str, Line) = getToken(Line); in parse()
204 std::optional<InfoRecord> InfoRecord::parse(llvm::StringRef Line) { in parse() argument
[all …]
/freebsd-src/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.h49 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine()
50 : First(Line.Tokens.front().Tok), Type(LT_Other), Level(Line.Level), in AnnotatedLine()
51 PPLevel(Line.PPLevel), in AnnotatedLine()
52 MatchingOpeningBlockLineIndex(Line.MatchingOpeningBlockLineIndex), in AnnotatedLine()
53 MatchingClosingBlockLineIndex(Line.MatchingClosingBlockLineIndex), in AnnotatedLine()
54 InPPDirective(Line.InPPDirective), in AnnotatedLine()
55 InPragmaDirective(Line.InPragmaDirective), in AnnotatedLine()
56 InMacroBody(Line.InMacroBody), in AnnotatedLine()
57 MustBeDeclaration(Line in AnnotatedLine()
48 AnnotatedLine(const UnwrappedLine & Line) AnnotatedLine() argument
[all...]
H A DAffectedRangeManager.cpp29 AnnotatedLine *Line = *I; in computeAffectedLines() local
30 assert(Line->First); in computeAffectedLines()
31 Line->LeadingEmptyLinesAffected = affectsLeadingEmptyLines(*Line->First); in computeAffectedLines()
35 if (Line->InPPDirective) { in computeAffectedLines()
36 FormatToken *Last = Line->Last; in computeAffectedLines()
43 if (affectsTokenRange(*Line->First, *Last, in computeAffectedLines()
52 if (nonPPLineAffected(Line, PreviousLine, Lines)) in computeAffectedLines()
55 PreviousLine = Line; in computeAffectedLines()
102 AnnotatedLine *Line, const AnnotatedLine *PreviousLine, in nonPPLineAffected() argument
105 Line->ChildrenAffected = computeAffectedLines(Line->Children); in nonPPLineAffected()
[all …]
H A DUnwrappedLineFormatter.cpp23 bool startsExternCBlock(const AnnotatedLine &Line) { in startsExternCBlock() argument
24 const FormatToken *Next = Line.First->getNextNonComment(); in startsExternCBlock()
26 return Line.startsWith(tok::kw_extern) && Next && Next->isStringLiteral() && in startsExternCBlock()
57 /// Update the indent state given that \p Line is going to be formatted
59 void nextLine(const AnnotatedLine &Line) { in nextLine() argument
60 Offset = getIndentOffset(Line); in nextLine()
63 if (Line.Level >= IndentForLevel.size()) in nextLine()
64 IndentForLevel.resize(Line.Level + 1, -1); in nextLine()
66 (Line.InPPDirective || in nextLine()
68 Line in nextLine()
97 adjustToUnmodifiedLine(const AnnotatedLine & Line) adjustToUnmodifiedLine() argument
188 getMatchingNamespaceToken(const AnnotatedLine * Line,const SmallVectorImpl<AnnotatedLine * > & AnnotatedLines) getMatchingNamespaceToken() argument
199 getNamespaceTokenText(const AnnotatedLine * Line) getNamespaceTokenText() argument
205 getMatchingNamespaceTokenText(const AnnotatedLine * Line,const SmallVectorImpl<AnnotatedLine * > & AnnotatedLines) getMatchingNamespaceTokenText() argument
335 const AnnotatedLine *Line = nullptr; tryFitMultipleLinesInOne() local
630 AnnotatedLine &Line = **I; tryMergeSimpleControlStatement() local
675 const AnnotatedLine *Line = I[1 + NumStmts]; tryMergeShortCaseLabels() local
719 AnnotatedLine &Line = **I; tryMergeSimpleBlock() local
742 __anon1ae19a960502(const auto &Line) tryMergeSimpleBlock() argument
910 containsMustBreak(const AnnotatedLine * Line) containsMustBreak() argument
1099 formatLine(const AnnotatedLine & Line,unsigned FirstIndent,unsigned FirstStartColumn,bool DryRun) formatLine() argument
1125 formatLine(const AnnotatedLine & Line,unsigned FirstIndent,unsigned FirstStartColumn,bool DryRun) formatLine() argument
1150 formatLine(const AnnotatedLine & Line,unsigned FirstIndent,unsigned FirstStartColumn,bool DryRun) formatLine() argument
1348 for (const AnnotatedLine *Line = format() local
1451 computeNewlines(const AnnotatedLine & Line,const AnnotatedLine * PreviousLine,const AnnotatedLine * PrevPrevLine,const SmallVectorImpl<AnnotatedLine * > & Lines,const FormatStyle & Style) computeNewlines() argument
1542 formatFirstToken(const AnnotatedLine & Line,const AnnotatedLine * PreviousLine,const AnnotatedLine * PrevPrevLine,const SmallVectorImpl<AnnotatedLine * > & Lines,unsigned Indent,unsigned NewlineIndent) formatFirstToken() argument
[all...]
H A DUnwrappedLineParser.cpp38 void printLine(llvm::raw_ostream &OS, const UnwrappedLine &Line, in printLine() argument
40 OS << Prefix << "Line(" << Line.Level << ", FSC=" << Line.FirstStartColumn in printLine()
41 << ")" << (Line.InPPDirective ? " MACRO" : "") << ": "; in printLine()
43 for (std::list<UnwrappedLineNode>::const_iterator I = Line.Tokens.begin(), in printLine()
44 E = Line.Tokens.end(); in printLine()
67 LLVM_ATTRIBUTE_UNUSED static void printDebugInfo(const UnwrappedLine &Line) { in printDebugInfo()
68 printLine(llvm::dbgs(), Line); in printDebugInfo()
73 ScopedDeclarationState(UnwrappedLine &Line, llv in ScopedDeclarationState()
66 printDebugInfo(const UnwrappedLine & Line) printDebugInfo() argument
72 ScopedDeclarationState(UnwrappedLine & Line,llvm::BitVector & Stack,bool MustBeDeclaration) ScopedDeclarationState() argument
87 UnwrappedLine &Line; global() member in clang::format::__anon2ffb27af0111::ScopedDeclarationState
209 for (auto &Line : Lines) parse() local
223 for (const auto &Line : Lines) { parse() local
241 for (const UnwrappedLine &Line : Lines) { parse() local
702 AnnotatedLine Line(ParsedLine); mightFitOnOneLine() local
912 isGoogScope(const UnwrappedLine & Line) isGoogScope() argument
930 isIIFE(const UnwrappedLine & Line,const AdditionalKeywords & Keywords) isIIFE() argument
1030 size_t Line = CurrentLines->size(); conditionalCompilationCondition() local
1094 for (auto &Line : Lines) { parsePPIf() local
1150 for (auto &Line : Lines) { parsePPDefine() local
2659 getLastNonComment(const UnwrappedLine & Line) getLastNonComment() argument
4505 continuesLineCommentSection(const FormatToken & FormatTok,const UnwrappedLine & Line,const llvm::Regex & CommentPragmasRegex) continuesLineCommentSection() argument
[all...]
H A DUsingDeclarationsSorter.cpp95 const AnnotatedLine *Line; member
98 UsingDeclaration(const AnnotatedLine *Line, const std::string &Label) in UsingDeclaration()
99 : Line(Line), Label(Label) {} in UsingDeclaration()
143 if (Declaration.Line->Affected) { in endUsingDeclarationBlock()
170 (*UsingDeclarations)[I].Line->First->WhitespaceRange.getBegin(); in endUsingDeclarationBlock()
171 auto End = (*UsingDeclarations)[I].Line->Last->Tok.getEndLoc(); in endUsingDeclarationBlock()
180 if ((*UsingDeclarations)[I].Line == SortedUsingDeclarations[I].Line) in endUsingDeclarationBlock()
182 auto Begin = (*UsingDeclarations)[I].Line->First->Tok.getLocation(); in endUsingDeclarationBlock()
183 auto End = (*UsingDeclarations)[I].Line->Last->Tok.getEndLoc(); in endUsingDeclarationBlock()
185 SortedUsingDeclarations[I].Line->First->Tok.getLocation(); in endUsingDeclarationBlock()
[all …]
/freebsd-src/contrib/llvm-project/llvm/tools/llvm-cov/
H A DSourceCoverageView.h57 unsigned Line; member
60 InstantiationView(StringRef FunctionName, unsigned Line, in InstantiationView()
62 : FunctionName(FunctionName), Line(Line), View(std::move(View)) {} in InstantiationView()
66 return LHS.Line < RHS.Line;
73 unsigned Line;
75 BranchView(unsigned Line, SmallVector<CountedRegion, 0> Regions)
76 : Regions(std::move(Regions)), Line(Line) {} in BranchView()
74 unsigned Line; global() member
91 unsigned Line; global() member
192 StringRef Line; global() member
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/LineEditor/
H A DLineEditor.cpp254 const char *Line = ::el_gets(Data->EL, &LineLen); in readLine() local
257 if (!Line || LineLen == 0) in readLine()
262 (Line[LineLen - 1] == '\n' || Line[LineLen - 1] == '\r')) in readLine()
267 ::history(Data->Hist, &HE, H_ENTER, Line); in readLine()
269 return std::string(Line, LineLen); in readLine()
298 std::string Line; in readLine() local
303 if (Line.empty()) in readLine()
306 return Line; in readLine()
308 Line.append(Buf); in readLine()
309 } while (Line.empty() || in readLine()
[all …]
/freebsd-src/sys/contrib/dev/acpica/components/utilities/
H A Duttrack.c185 UINT32 Line);
192 UINT32 Line);
239 * Line - Line number of caller
252 UINT32 Line) in AcpiUtAllocateAndTrack() argument
262 ACPI_WARNING ((Module, Line, in AcpiUtAllocateAndTrack()
272 ACPI_WARNING ((Module, Line, in AcpiUtAllocateAndTrack()
279 Allocation, Size, ACPI_MEM_MALLOC, Component, Module, Line); in AcpiUtAllocateAndTrack()
308 * Line - Line numbe
321 AcpiUtAllocateZeroedAndTrack(ACPI_SIZE Size,UINT32 Component,const char * Module,UINT32 Line) AcpiUtAllocateZeroedAndTrack() argument
390 AcpiUtFreeAndTrack(void * Allocation,UINT32 Component,const char * Module,UINT32 Line) AcpiUtFreeAndTrack() argument
518 AcpiUtTrackAllocation(ACPI_DEBUG_MEM_BLOCK * Allocation,ACPI_SIZE Size,UINT8 AllocType,UINT32 Component,const char * Module,UINT32 Line) AcpiUtTrackAllocation() argument
619 AcpiUtRemoveAllocation(ACPI_DEBUG_MEM_BLOCK * Allocation,UINT32 Component,const char * Module,UINT32 Line) AcpiUtRemoveAllocation() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVBinaryReader.cpp498 LVLineAssembler *Line = createLineAssembler(); in createInstructions()
499 Line->setAddress(Address);
500 Line->setName(StringRef(Stream.str()).trim()); in createInstructions()
501 Instructions.push_back(Line); in createInstructions()
516 for (const LVLine *Line : Instructions) in createInstructions()
518 << hexValue(Line->getOffset()) << ", (" << Line->getName() in createInstructions()
603 for (const LVLine *Line : *DebugLines) { in processLines()
604 dbgs() << format_decimal(Index, 5) << ": " << hexValue(Line->getOffset()) in processLines()
605 << ", (" << Line in processLines()
469 LVLineAssembler *Line = createLineAssembler(); createInstructions() local
777 __anond0b534180102(LVLine *Line) processLines() argument
781 __anond0b534180202(LVLine *Line) processLines() argument
[all...]
/freebsd-src/sys/contrib/device-tree/src/arm/ti/omap/
H A Dam3517-evm-ui.dtsi15 "Line", "Line In",
16 "Line", "Line Out";
19 "Line Out", "LOUT",
20 "Line Out", "ROUT",
21 "LLINEIN", "Line In",
22 "RLINEIN", "Line In",
45 "Line", "Line In",
46 "Line", "Line Out";
49 "Line Out", "LOUT",
50 "Line Out", "ROUT",
[all …]
/freebsd-src/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_powerpc64.cpp37 for (intptr_t Line = StartLine; Line < EndLine; Line += LineSize) in clearCache() local
38 asm volatile("dcbf 0, %0" : : "r"(Line)); in clearCache()
41 for (intptr_t Line = StartLine; Line < EndLine; Line += LineSize) in clearCache() local
42 asm volatile("icbi 0, %0" : : "r"(Line)); in clearCache()
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContextImpl.h317 unsigned Line;
323 MDNodeKeyImpl(unsigned Line, unsigned Column, Metadata *Scope,
325 : Line(Line), Column(Column), Scope(Scope), InlinedAt(InlinedAt),
328 : Line(L->getLine()), Column(L->getColumn()), Scope(L->getRawScope()),
332 return Line == RHS->getLine() && Column == RHS->getColumn() &&
338 return hash_combine(Line, Column, Scope, InlinedAt, ImplicitCode);
537 unsigned Line;
549 MDNodeKeyImpl(unsigned Tag, MDString *Name, Metadata *File, unsigned Line,
555 : Tag(Tag), Name(Name), File(File), Line(Lin
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/ProfileData/
H A DSymbolRemappingReader.cpp37 StringRef Line = *LineIt; in read() local
38 Line = Line.ltrim(' '); in read()
40 if (Line.starts_with("#") || Line.empty()) in read()
44 Line.split(Parts, ' ', /*MaxSplits*/-1, /*KeepEmpty*/false); in read()
48 "found '" + Line + "'"); in read()
/freebsd-src/sys/contrib/device-tree/Bindings/sound/
H A Dmt2701-cs42448.txt21 "Line Out Jack", "AOUT1L",
22 "Line Out Jack", "AOUT1R",
23 "Line Out Jack", "AOUT2L",
24 "Line Out Jack", "AOUT2R",
25 "Line Out Jack", "AOUT3L",
26 "Line Out Jack", "AOUT3R",
27 "Line Out Jack", "AOUT4L",
28 "Line Out Jack", "AOUT4R",
H A Dfsl-asoc-card.txt70 * Line Out Jack
71 * Line In Jack
105 "Line Out Jack", "AOUT1L",
106 "Line Out Jack", "AOUT1R",
107 "Line Out Jack", "AOUT2L",
108 "Line Out Jack", "AOUT2R",
109 "Line Out Jack", "AOUT3L",
110 "Line Out Jack", "AOUT3R",
111 "Line Out Jack", "AOUT4L",
112 "Line Out Jack", "AOUT4R",
[all …]
/freebsd-src/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerDataFlowTrace.cpp132 static bool ParseError(const char *Err, const std::string &Line) { in ParseError() argument
133 Printf("DataFlowTrace: parse error: %s: Line: %s\n", Err, Line.c_str()); in ParseError()
139 static bool ParseDFTLine(const std::string &Line, size_t *FunctionNum, in ParseDFTLine() argument
141 if (!Line.empty() && Line[0] != 'F') in ParseDFTLine()
143 size_t SpacePos = Line.find(' '); in ParseDFTLine()
145 return ParseError("no space in the trace line", Line); in ParseDFTLine()
146 if (Line.empty() || Line[0] != 'F') in ParseDFTLine()
147 return ParseError("the trace line doesn't start with 'F'", Line); in ParseDFTLine()
148 *FunctionNum = std::atol(Line.c_str() + 1); in ParseDFTLine()
149 const char *Beg = Line.c_str() + SpacePos + 1; in ParseDFTLine()
[all …]
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVLine.cpp113 for (LVLine *Line : *Targets) in findIn()
114 if (equals(Line)) in findIn()
115 return Line; in findIn()
120 bool LVLine::equals(const LVLine *Line) const { in equals()
121 return LVElement::equals(Line); in equals()
193 bool LVLineDebug::equals(const LVLine *Line) const { in equals()
194 if (!LVLine::equals(Line)) in equals()
196 return getFilenameIndex() == Line->getFilenameIndex(); in equals()
214 bool LVLineAssembler::equals(const LVLine *Line) const { in equals()
215 return LVLine::equals(Line); in equals()
/freebsd-src/sys/contrib/device-tree/src/arm64/tesla/
H A Dfsd-evb.dts40 simple-audio-card,widgets = "Line", "Line Out",
41 "Line", "Line In";
42 simple-audio-card,routing = "Line Out", "LLOUT",
43 "Line Out", "RLOUT",
44 "MIC2L", "Line In",
45 "MIC2R", "Line In";
/freebsd-src/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSymbolRemappingReader.h72 SymbolRemappingParseError(StringRef File, int64_t Line, const Twine &Message) in SymbolRemappingParseError() argument
73 : File(File), Line(Line), Message(Message.str()) {} in SymbolRemappingParseError()
76 OS << File << ':' << Line << ": " << Message; in log()
83 int64_t getLineNum() const { return Line; } in getLineNum()
90 int64_t Line; variable
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeLineNumber.cpp16 const codeview::LineInfo Line, in NativeLineNumber() argument
20 : Session(Session), Line(Line), ColumnNumber(ColumnNumber), in NativeLineNumber()
24 uint32_t NativeLineNumber::getLineNumber() const { return Line.getStartLine(); } in getLineNumber()
27 return Line.getEndLine(); in getLineNumberEnd()
52 bool NativeLineNumber::isStatement() const { return Line.isStatement(); } in isStatement()
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DLineTable.cpp103 Row.Line += Data.getSLEB128(&Offset); in parse()
110 Row.Line += LineDelta; in parse()
143 int64_t LineDelta = (int64_t)line_entry.Line - PrevLine; in encode()
155 PrevLine = (int64_t)line_entry.Line; in encode()
193 LineEntry Prev(BaseAddr, 1, Lines.front().Line); in encode()
199 Out.writeULEB(Prev.Line); in encode()
212 if (Curr.Line > Prev.Line) in encode()
213 LineDelta = Curr.Line - Prev.Line; in encode()
214 else if (Prev.Line > Curr.Line) in encode()
215 LineDelta = -((int32_t)(Prev.Line - Curr.Line)); in encode()
/freebsd-src/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp85 void WriteLineInfo(StringRef Filename, int Line,
116 /// \p Line we are located at, using the specified \p EOL line separator, and
118 void InclusionRewriter::WriteLineInfo(StringRef Filename, int Line, in WriteLineInfo()
124 OS << "#line" << ' ' << Line << ' ' << '"'; in WriteLineInfo()
130 OS << '#' << ' ' << Line << ' ' << '"'; in WriteLineInfo()
268 StringRef LocalEOL, int &Line, in OutputContentUpTo()
289 Line += TextToWrite.count(LocalEOL); in OutputContentUpTo()
332 /// and \p Line to track the number of source lines visited and the progress in CommentOutDirective()
338 unsigned &NextToWrite, int &Line, in CommentOutDirective()
341 SM.getFileOffset(StartToken.getLocation()), LocalEOL, Line, in CommentOutDirective()
117 WriteLineInfo(StringRef Filename,int Line,SrcMgr::CharacteristicKind FileType,StringRef Extra) WriteLineInfo() argument
266 OutputContentUpTo(const MemoryBufferRef & FromFile,unsigned & WriteFrom,unsigned WriteTo,StringRef LocalEOL,int & Line,bool EnsureNewline) OutputContentUpTo() argument
336 CommentOutDirective(Lexer & DirectiveLex,const Token & StartToken,const MemoryBufferRef & FromFile,StringRef LocalEOL,unsigned & NextToWrite,int & Line,const IncludedFile * Inc) CommentOutDirective() argument
407 int Line = 1; // The current input file line number. Process() local
[all...]

12345678910>>...20