| /openbsd-src/gnu/llvm/clang/lib/Tooling/Inclusions/ |
| H A D | HeaderAnalysis.cpp | 19 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.startswith("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.startswith("error")) in isErrorAboutInclude() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/Symbolize/ |
| H A D | Markup.cpp | 38 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 …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ObjectFile/Breakpad/ |
| H A D | BreakpadRecords.cpp | 130 std::optional<Record::Kind> Record::classify(llvm::StringRef Line) { in classify() argument 131 Token Tok = consume<Token>(Line); in classify() 144 Tok = consume<Token>(Line); in classify() 161 return Record::Line; in classify() 173 std::optional<ModuleRecord> ModuleRecord::parse(llvm::StringRef Line) { in parse() argument 175 if (consume<Token>(Line) != Token::Module) in parse() 178 llvm::Triple::OSType OS = consume<llvm::Triple::OSType>(Line); in parse() 182 llvm::Triple::ArchType Arch = consume<llvm::Triple::ArchType>(Line); in parse() 187 std::tie(Str, Line) = getToken(Line); in parse() 202 std::optional<InfoRecord> InfoRecord::parse(llvm::StringRef Line) { in parse() argument [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-rc/ |
| H A D | ResourceScriptCppFilter.cpp | 31 bool parseLine(StringRef Line); 49 StringRef Line = Data.take_front(Pos).drop_front(LineStart); in run() local 51 if (parseLine(Line)) in run() 52 Output.push_back(Line); in run() 58 bool Filter::parseLine(StringRef Line) { in parseLine() argument 59 Line = Line.ltrim(); in parseLine() 61 if (!Line.consume_front("#")) { in parseLine() 69 Line.consume_front("line"); in parseLine() 70 if (!Line.startswith(" ")) in parseLine() 76 Line = in parseLine() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Format/ |
| H A D | TokenAnnotator.h | 39 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() argument 40 : First(Line.Tokens.front().Tok), Level(Line.Level), in AnnotatedLine() 41 PPLevel(Line.PPLevel), in AnnotatedLine() 42 MatchingOpeningBlockLineIndex(Line.MatchingOpeningBlockLineIndex), in AnnotatedLine() 43 MatchingClosingBlockLineIndex(Line.MatchingClosingBlockLineIndex), in AnnotatedLine() 44 InPPDirective(Line.InPPDirective), in AnnotatedLine() 45 InPragmaDirective(Line.InPragmaDirective), in AnnotatedLine() 46 InMacroBody(Line.InMacroBody), in AnnotatedLine() 47 MustBeDeclaration(Line.MustBeDeclaration), MightBeFunctionDecl(false), in AnnotatedLine() 50 ReturnTypeWrapped(false), IsContinuation(Line.IsContinuation), in AnnotatedLine() [all …]
|
| H A D | AffectedRangeManager.cpp | 29 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 D | UnwrappedLineFormatter.cpp | 22 bool startsExternCBlock(const AnnotatedLine &Line) { in startsExternCBlock() argument 23 const FormatToken *Next = Line.First->getNextNonComment(); in startsExternCBlock() 25 return Line.startsWith(tok::kw_extern) && Next && Next->isStringLiteral() && in startsExternCBlock() 58 void nextLine(const AnnotatedLine &Line) { in nextLine() argument 59 Offset = getIndentOffset(*Line.First); in nextLine() 62 skipLine(Line, /*UnknownIndent=*/true); in nextLine() 64 (Line.InPPDirective || in nextLine() 66 Line.Type == LT_CommentAbovePPDirective))) { in nextLine() 69 Indent = Line.InMacroBody in nextLine() 70 ? Line.PPLevel * PPIndentWidth + in nextLine() [all …]
|
| H A D | UnwrappedLineParser.cpp | 61 void printLine(llvm::raw_ostream &OS, const UnwrappedLine &Line, in printLine() argument 63 OS << Prefix << "Line(" << Line.Level << ", FSC=" << Line.FirstStartColumn in printLine() 64 << ")" << (Line.InPPDirective ? " MACRO" : "") << ": "; in printLine() 66 for (std::list<UnwrappedLineNode>::const_iterator I = Line.Tokens.begin(), in printLine() 67 E = Line.Tokens.end(); in printLine() 90 LLVM_ATTRIBUTE_UNUSED static void printDebugInfo(const UnwrappedLine &Line) { in printDebugInfo() argument 91 printLine(llvm::dbgs(), Line); in printDebugInfo() 96 ScopedDeclarationState(UnwrappedLine &Line, llvm::BitVector &Stack, in ScopedDeclarationState() argument 98 : Line(Line), Stack(Stack) { in ScopedDeclarationState() 99 Line.MustBeDeclaration = MustBeDeclaration; in ScopedDeclarationState() [all …]
|
| H A D | UsingDeclarationsSorter.cpp | 95 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 …]
|
| H A D | TokenAnnotator.cpp | 31 static bool startsWithInitStatement(const AnnotatedLine &Line) { in startsWithInitStatement() argument 32 return Line.startsWith(tok::kw_for) || Line.startsWith(tok::kw_if) || in startsWithInitStatement() 33 Line.startsWith(tok::kw_switch); in startsWithInitStatement() 113 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser() argument 115 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false), in AnnotatingParser() 211 !Line.startsWith(tok::kw_template)) { in parseAngle() 297 (Line.startsWith(Keywords.kw_type, tok::identifier) || in parseParens() 298 Line.startsWith(tok::kw_export, Keywords.kw_type, in parseParens() 329 } else if (Line.InPPDirective && in parseParens() 345 } else if (!Line.MustBeDeclaration && !Line.InPPDirective) { in parseParens() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Host/linux/ |
| H A D | Host.cpp | 69 llvm::StringRef Line; in GetStatusInfo() local 70 std::tie(Line, Rest) = Rest.split('\n'); in GetStatusInfo() 72 if (Line.consume_front("Gid:")) { in GetStatusInfo() 74 Line = Line.ltrim(); in GetStatusInfo() 76 Line.consumeInteger(10, RGid); in GetStatusInfo() 77 Line = Line.ltrim(); in GetStatusInfo() 78 Line.consumeInteger(10, EGid); in GetStatusInfo() 82 } else if (Line.consume_front("Uid:")) { in GetStatusInfo() 84 Line = Line.ltrim(); in GetStatusInfo() 86 Line.consumeInteger(10, RUid); in GetStatusInfo() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/testsuite/gdb.dwarf2/ |
| H A D | file1.txt | 1 File 1 Line 1 2 File 1 Line 2 3 File 1 Line 3 4 File 1 Line 4 5 File 1 Line 5 6 File 1 Line 6 7 File 1 Line 7 8 File 1 Line 8
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-cov/ |
| H A D | SourceCoverageView.h | 57 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; 74 unsigned Line; member 76 BranchView(unsigned Line, ArrayRef<CountedRegion> Regions, in BranchView() 78 : Regions(Regions), View(std::move(View)), Line(Line) {} in BranchView() 80 unsigned getLine() const { return Line; } in getLine() 83 return LHS.Line < RHS.Line; 172 StringRef Line; member [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/LineEditor/ |
| H A D | LineEditor.cpp | 254 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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/LogicalView/Readers/ |
| H A D | LVBinaryReader.cpp | 425 LVLineAssembler *Line = new LVLineAssembler(); in createInstructions() local 426 Line->setAddress(Address); in createInstructions() 427 Line->setName(StringRef(Stream.str()).trim()); in createInstructions() 428 Instructions->push_back(Line); in createInstructions() 443 for (const LVLine *Line : *Instructions) in createInstructions() 445 << hexValue(Line->getOffset()) << ", (" << Line->getName() in createInstructions() 530 for (const LVLine *Line : *DebugLines) { in processLines() 531 dbgs() << format_decimal(Index, 5) << ": " << hexValue(Line->getOffset()) in processLines() 532 << ", (" << Line->getLineNumber() << ")" in processLines() 568 for (const LVLine *Line : InstructionLines) in processLines() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/xray/ |
| H A D | xray_powerpc64.cpp | 37 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | LLVMContextImpl.h | 316 unsigned Line; 322 MDNodeKeyImpl(unsigned Line, unsigned Column, Metadata *Scope, 324 : Line(Line), Column(Column), Scope(Scope), InlinedAt(InlinedAt), 327 : Line(L->getLine()), Column(L->getColumn()), Scope(L->getRawScope()), 331 return Line == RHS->getLine() && Column == RHS->getColumn() && 337 return hash_combine(Line, Column, Scope, InlinedAt, ImplicitCode); 527 unsigned Line; 538 MDNodeKeyImpl(unsigned Tag, MDString *Name, Metadata *File, unsigned Line, 543 : Tag(Tag), Name(Name), File(File), Line(Line), Scope(Scope), 549 Line(N->getLine()), Scope(N->getRawScope()), [all …]
|
| /openbsd-src/gnu/llvm/lldb/tools/lldb-test/ |
| H A D | FormatUtil.h | 28 class Line { 32 Line(LinePrinter &P) : P(&P) { P.OS.indent(P.CurrentIndent); } in Line() function 33 ~Line(); 35 Line(Line &&RHS) : P(RHS.P) { RHS.P = nullptr; } in Line() function 36 void operator=(Line &&) = delete; 57 Line line() { return Line(*this); } in line()
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | SymbolRemappingReader.cpp | 37 StringRef Line = *LineIt; in read() local 38 Line = Line.ltrim(' '); in read() 40 if (Line.startswith("#") || Line.empty()) in read() 44 Line.split(Parts, ' ', /*MaxSplits*/-1, /*KeepEmpty*/false); in read() 48 "found '" + Line + "'"); in read()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerDataFlowTrace.cpp | 132 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 …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/LogicalView/Core/ |
| H A D | LVLine.cpp | 113 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()
|
| /openbsd-src/regress/usr.bin/patch/ |
| H A D | t8.diff | 4 -Line 1 5 +Line 1 with a change 6 Line 2 7 Line 3 8 Line 4 (no eol)
|
| /openbsd-src/gnu/llvm/clang/lib/Frontend/Rewrite/ |
| H A D | InclusionRewriter.cpp | 84 void WriteLineInfo(StringRef Filename, int Line, 115 void InclusionRewriter::WriteLineInfo(StringRef Filename, int Line, in WriteLineInfo() argument 121 OS << "#line" << ' ' << Line << ' ' << '"'; in WriteLineInfo() 127 OS << '#' << ' ' << Line << ' ' << '"'; in WriteLineInfo() 264 StringRef LocalEOL, int &Line, in OutputContentUpTo() argument 285 Line += TextToWrite.count(LocalEOL); in OutputContentUpTo() 323 unsigned &NextToWrite, int &Line) { in CommentOutDirective() argument 325 SM.getFileOffset(StartToken.getLocation()), LocalEOL, Line, in CommentOutDirective() 339 LocalEOL, Line, true); in CommentOutDirective() 384 int Line = 1; // The current input file line number. in Process() local [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | DebugInfoMetadata.h | 698 unsigned Line; variable 706 unsigned Line, uint64_t SizeInBits, uint32_t AlignInBits, in DIType() argument 709 init(Line, SizeInBits, AlignInBits, OffsetInBits, Flags); in DIType() 713 void init(unsigned Line, uint64_t SizeInBits, uint32_t AlignInBits, in init() argument 715 this->Line = Line; in init() 723 void mutate(unsigned Tag, unsigned Line, uint64_t SizeInBits, in mutate() argument 727 init(Line, SizeInBits, AlignInBits, OffsetInBits, Flags); in mutate() 735 unsigned getLine() const { return Line; } in getLine() 972 unsigned Line, uint64_t SizeInBits, uint32_t AlignInBits, in DIDerivedType() argument 976 : DIType(C, DIDerivedTypeKind, Storage, Tag, Line, SizeInBits, in DIDerivedType() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | SymbolRemappingReader.h | 72 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
|