Home
last modified time | relevance | path

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

12345678910>>...22

/openbsd/gnu/llvm/clang/lib/Tooling/Inclusions/
H A DHeaderAnalysis.cpp20 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()
29 Line = Line.ltrim(); in isErrorAboutInclude()
32 Line = Line.ltrim(); in isErrorAboutInclude()
41 llvm::StringRef Line; in isDontIncludeMeHeader() local
53 Line = Line.ltrim(); in isImportLine()
56 Line = Line.ltrim(); in isImportLine()
87 llvm::StringRef Line; in codeContainsImports() local
[all …]
/openbsd/gnu/llvm/llvm/lib/DebugInfo/Symbolize/
H A DMarkup.cpp42 this->Line = Line; in parseLine()
56 if (Line.empty()) in nextNode()
72 Line = Line.drop_front(Line.size()); in nextNode()
92 Line = Line.drop_front(Line.size()); in nextNode()
97 parseTextOutsideMarkup(Line); in nextNode()
98 Line = Line.drop_front(Line.size()); in nextNode()
105 Line = {}; in flush()
126 Line = Line.substr(EndPos); in parseElement()
192 return Line.substr(BeginPos); in parseMultiLineBegin()
198 size_t EndPos = Line.find("}}}"); in parseMultiLineEnd()
[all …]
/openbsd/gnu/llvm/lldb/source/Plugins/ObjectFile/Breakpad/
H A DBreakpadRecords.cpp187 std::tie(Str, Line) = getToken(Line); in parse()
211 std::tie(Str, Line) = getToken(Line); in parse()
235 std::tie(Str, Line) = getToken(Line); in parseNumberName()
280 std::tie(Str, Line) = getToken(Line); in parsePublicOrFunc()
294 std::tie(Str, Line) = getToken(Line); in parsePublicOrFunc()
382 std::tie(Str, Line) = getToken(Line); in parse()
387 std::tie(Str, Line) = getToken(Line); in parse()
392 std::tie(Str, Line) = getToken(Line); in parse()
397 std::tie(Str, Line) = getToken(Line); in parse()
448 std::tie(Str, Line) = getToken(Line); in parse()
[all …]
/openbsd/gnu/llvm/llvm/tools/llvm-rc/
H A DResourceScriptCppFilter.cpp31 bool parseLine(StringRef Line);
51 if (parseLine(Line)) in run()
52 Output.push_back(Line); in run()
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()
83 Line = Line.ltrim(); in parseLine()
85 if (!Line.consume_front("\"")) in parseLine()
[all …]
/openbsd/gnu/llvm/clang/lib/Format/
H A DTokenAnnotator.h39 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine() argument
40 : First(Line.Tokens.front().Tok), Level(Line.Level), in AnnotatedLine()
41 PPLevel(Line.PPLevel), in AnnotatedLine()
44 InPPDirective(Line.InPPDirective), in AnnotatedLine()
45 InPragmaDirective(Line.InPragmaDirective), in AnnotatedLine()
46 InMacroBody(Line.InMacroBody), in AnnotatedLine()
51 FirstStartColumn(Line.FirstStartColumn) { in AnnotatedLine()
52 assert(!Line.Tokens.empty()); in AnnotatedLine()
181 void annotate(AnnotatedLine &Line) const;
197 bool mustBreakBefore(const AnnotatedLine &Line,
[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()
55 PreviousLine = Line; in computeAffectedLines()
105 Line->ChildrenAffected = computeAffectedLines(Line->Children); in nonPPLineAffected()
106 if (Line->ChildrenAffected) in nonPPLineAffected()
119 assert(Line->First); in nonPPLineAffected()
138 Line->First->is(tok::comment) && Line->First->Next == nullptr && in nonPPLineAffected()
[all …]
H A DUnwrappedLineFormatter.cpp71 (Line.Level - Line.PPLevel) * Style.IndentWidth in nextLine()
338 if (!Line) in tryFitMultipleLinesInOne()
612 if (!Line.First->is(tok::kw_do) && !Line.First->is(tok::kw_else) && in tryMergeSimpleControlStatement()
617 if (Line.First->is(tok::kw_do) && !Line.Last->is(tok::kw_do)) in tryMergeSimpleControlStatement()
673 Line = *J; in tryMergeShortCaseLabels()
678 if (Line->First->isNot(tok::comment) || Level != Line->Level) in tryMergeShortCaseLabels()
713 (Line.First->Next && Line.First->Next->is(tok::kw_else))) { in tryMergeSimpleBlock()
781 if (IsSplitBlock && Line.First == Line.Last && in tryMergeSimpleBlock()
838 if (Line.First == Line.Last && Line.First->isNot(TT_FunctionLBrace) && in tryMergeSimpleBlock()
1314 Line; PrevPrevLine = PreviousLine, PreviousLine = Line, Line = NextLine, in format()
[all …]
H A DUnwrappedLineParser.cpp98 : Line(Line), Stack(Stack) { in ScopedDeclarationState()
138 : Line(Line), TokenSource(TokenSource), ResetToken(ResetToken), in ScopedMacroState()
144 Line.Level = 0; in ScopedMacroState()
381 if (Line.InPPDirective && Line.Level > 0) in parse()
607 (Line->InPPDirective && Line->Level == 1))) { in parseLevel()
1295 ++Line->Level; in parsePPDefine()
2050 auto I = Line->Tokens.begin(), E = Line->Tokens.end(); in parseStructuralElement()
2696 ++Line->Level; in parseUnbracedBody()
2715 --Line->Level; in parseUnbracedBody()
3158 if (Line->Level > 1 || (!Line->InPPDirective && Line->Level > 0)) in parseLabel()
[all …]
H A DUsingDeclarationsSorter.cpp95 const AnnotatedLine *Line; member
99 : Line(Line), Label(Label) {} in UsingDeclaration()
143 if (Declaration.Line->Affected) { in endUsingDeclarationBlock()
171 auto End = (*UsingDeclarations)[I].Line->Last->Tok.getEndLoc(); in endUsingDeclarationBlock()
180 if ((*UsingDeclarations)[I].Line == SortedUsingDeclarations[I].Line) in endUsingDeclarationBlock()
183 auto End = (*UsingDeclarations)[I].Line->Last->Tok.getEndLoc(); in endUsingDeclarationBlock()
185 SortedUsingDeclarations[I].Line->First->Tok.getLocation(); in endUsingDeclarationBlock()
219 for (const AnnotatedLine *Line : AnnotatedLines) { in analyze() local
220 const auto *FirstTok = Line->First; in analyze()
221 if (Line->InPPDirective || !Line->startsWith(tok::kw_using) || in analyze()
[all …]
H A DTokenAnnotator.cpp32 return Line.startsWith(tok::kw_for) || Line.startsWith(tok::kw_if) || in startsWithInitStatement()
115 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false), in AnnotatingParser()
345 } else if (!Line.MustBeDeclaration && !Line.InPPDirective) { in parseParens()
991 if (Line.Level > 1 || (!Line.InPPDirective && Line.Level > 0)) in consumeToken()
1273 (Line.Level > 1 || (!Line.InPPDirective && Line.Level > 0))) { in consumeToken()
1274 --Line.Level; in consumeToken()
2474 AnnotatedLine &Line; member in clang::format::__anon04924c560111::AnnotatingParser
2495 : Style(Style), Keywords(Keywords), Line(Line), Current(Line.First) {} in ExpressionParser()
2787 Line.First->CanBreakBefore = Line.First->MustBreakBefore; in annotate()
3105 if (Line.First == Line.Last) in calculateArrayInitializerColumnList()
[all …]
/openbsd/gnu/llvm/lldb/source/Host/linux/
H A DHost.cpp69 llvm::StringRef Line; in GetStatusInfo() local
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()
84 Line = Line.ltrim(); in GetStatusInfo()
86 Line.consumeInteger(10, RUid); in GetStatusInfo()
87 Line = Line.ltrim(); in GetStatusInfo()
88 Line.consumeInteger(10, EUid); in GetStatusInfo()
112 Line = Line.ltrim(); in GetStatusInfo()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.dwarf2/
H A Dfile1.txt1 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/gnu/llvm/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;
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/gnu/llvm/llvm/lib/LineEditor/
H A DLineEditor.cpp262 (Line[LineLen - 1] == '\n' || Line[LineLen - 1] == '\r')) 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()
310 (Line[Line.size() - 1] != '\n' && Line[Line.size() - 1] != '\r')); in readLine()
312 while (!Line.empty() && in readLine()
313 (Line[Line.size() - 1] == '\n' || Line[Line.size() - 1] == '\r')) in readLine()
314 Line.resize(Line.size() - 1); in readLine()
[all …]
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVBinaryReader.cpp426 Line->setAddress(Address); in createInstructions()
428 Instructions->push_back(Line); in createInstructions()
445 << hexValue(Line->getOffset()) << ", (" << Line->getName() in createInstructions()
570 << hexValue(Line->getOffset()) << ", (" << Line->getName() in processLines()
654 << hexValue(Line->getOffset()) << ", (" << Line->getName() in processLines()
675 for (LVLine *Line : *DebugLines) { in processLines()
692 Scope->addElement(Line); in processLines()
696 !Line->getLineNumber()) in processLines()
706 if (Line->getIsLineDebug()) in processLines()
733 [](LVLine *Line) { return !Line->getAddress(); }); in processLines() argument
[all …]
/openbsd/gnu/llvm/llvm/lib/IR/
H A DLLVMContextImpl.h316 unsigned Line;
527 unsigned Line;
619 unsigned Line;
747 unsigned Line;
772 Line(Line), Type(Type), ScopeLine(ScopeLine),
873 unsigned Line;
1043 unsigned Line;
1058 Line(Line), Type(Type), IsLocalToUnit(IsLocalToUnit),
1103 unsigned Line;
1145 unsigned Line;
[all …]
/openbsd/gnu/llvm/lldb/tools/lldb-test/
H A DFormatUtil.h28 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/gnu/llvm/llvm/lib/Support/
H A DSymbolRemappingReader.cpp37 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/gnu/llvm/compiler-rt/lib/fuzzer/
H A DFuzzerDataFlowTrace.cpp132 static bool ParseError(const char *Err, const std::string &Line) { in ParseError() argument
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()
150 const char *End = Line.c_str() + Line.size(); in ParseDFTLine()
[all …]
/openbsd/gnu/llvm/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()
/openbsd/regress/usr.bin/patch/
H A Dt8.diff4 -Line 1
5 +Line 1 with a change
6 Line 2
7 Line 3
8 Line 4 (no eol)
/openbsd/gnu/llvm/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp84 void WriteLineInfo(StringRef Filename, int Line,
121 OS << "#line" << ' ' << Line << ' ' << '"'; in WriteLineInfo()
127 OS << '#' << ' ' << Line << ' ' << '"'; in WriteLineInfo()
285 Line += TextToWrite.count(LocalEOL); in OutputContentUpTo()
339 LocalEOL, Line, true); in CommentOutDirective()
404 Line); in Process()
439 NextToWrite, Line); in Process()
447 NextToWrite, Line); in Process()
482 WriteLineInfo(FileName, Line, FileType); in Process()
500 WriteLineInfo(FileName, Line, FileType); in Process()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DDebugInfoMetadata.h698 unsigned Line; variable
715 this->Line = Line; in init()
1855 unsigned Line; variable
2144 unsigned Line; variable
2546 unsigned Line; variable
3256 unsigned Line;
3321 unsigned Line;
3401 unsigned Line;
3557 unsigned Line;
3561 : DIMacroNode(C, DIMacroKind, Storage, MIType, Ops), Line(Line) {}
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/Support/
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

12345678910>>...22