/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | Path.h | 58 Style S = Style::native; ///< The path style to use. 84 Style S = Style::native; ///< The path style to use. 101 const_iterator begin(StringRef path, Style style = Style::native); 149 Style style = Style::native); 175 Style style = Style::native); 207 const_iterator end, Style style = Style::native); 220 Style style = Style::native); 328 StringRef stem(StringRef path, Style style = Style::native); 350 bool is_separator(char value, Style style = Style::native); 355 StringRef get_separator(Style style = Style::native); [all …]
|
H A D | FormatProviders.h | 141 if (Style.consume_front("N") || Style.consume_front("n")) 143 else if (Style.consume_front("D") || Style.consume_front("d")) 182 consumeHexStyle(Style, HS); 204 if (!Style.empty() && Style.getAsInteger(10, N)) { 237 if (Style.empty()) 304 if (Style.consume_front("P") || Style.consume_front("p")) 306 else if (Style.consume_front("F") || Style.consume_front("f")) 362 if (Style.empty()) 366 Style = Style.drop_front(); 367 if (Style.empty()) { [all …]
|
H A D | Chrono.h | 72 StringRef Style); 127 if (Style.consume_front("ns")) 129 if (Style.consume_front("us")) 131 if (Style.consume_front("ms")) 133 if (Style.consume_front("s")) 135 if (Style.consume_front("m")) 137 if (Style.consume_front("h")) 143 if (Style.empty()) 145 if (Style.consume_front("-")) 147 if (Style.consume_front("+")) [all …]
|
H A D | NativeFormatting.h | 24 size_t getDefaultPrecision(FloatStyle Style); 29 IntegerStyle Style); 30 void write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style); 32 IntegerStyle Style); 34 IntegerStyle Style); 36 IntegerStyle Style); 38 IntegerStyle Style); 40 void write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style, 42 void write_double(raw_ostream &S, double D, FloatStyle Style,
|
H A D | FormatAdapters.h | 37 void format(llvm::raw_ostream &Stream, StringRef Style) override { in format() argument 39 FmtAlign(Adapter, Where, Amount, Fill).format(Stream, Style); in format() 51 void format(llvm::raw_ostream &Stream, StringRef Style) override { in format() argument 54 Adapter.format(Stream, Style); in format() 66 void format(llvm::raw_ostream &Stream, StringRef Style) override { in format() argument 69 Adapter.format(Stream, Style); in format() 79 void format(llvm::raw_ostream &Stream, StringRef Style) override { in format() argument
|
/netbsd/external/apache2/llvm/dist/clang/lib/Format/ |
H A D | Format.cpp | 833 return Style; in expandPresets() 1343 return Style; in getWebKitStyle() 1358 return Style; in getGNUStyle() 1388 return Style; in getMicrosoftStyle() 1431 assert(Style); in parseConfiguration() 1511 return Style; in Get() 1522 (*Styles)[Style.Language] = std::move(Style); in Add() 2608 if (!Style.SortIncludes || Style.DisableFormat) in sortIncludes() 3000 return Style; in getStyle() 3007 if (!getPredefinedStyle(StyleName, Style.Language, &Style)) in getStyle() [all …]
|
H A D | ContinuationIndenter.cpp | 230 : Style(Style), Keywords(Keywords), SourceMgr(SourceMgr), in ContinuationIndenter() 233 CommentPragmasRegex(Style.CommentPragmas), RawStringFormats(Style) {} in ContinuationIndenter() 357 Style.isCpp() && in mustBreak() 380 Style.ColumnLimit > 0 && in mustBreak() 395 Style.ColumnLimit != 0)) in mustBreak() 497 (!Style.isCSharp() || in mustBreak() 991 Style.IndentWidth; in getNewLineColumn() 1606 Style.ColumnLimit) in moveStatePastScopeCloser() 1913 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp() || in createBreakableToken() 2380 if (Style.ColumnLimit != 0 && Style.BreakStringLiterals && in nextIsMultilineString() [all …]
|
H A D | UnwrappedLineFormatter.cpp | 43 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) { in LevelIndentTracker() 68 Indent = Line.Level * Style.IndentWidth + Style.ContinuationIndentWidth; in nextLine() 99 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) in getIndentOffset() 108 return Style.IndentAccessModifiers ? -Style.IndentWidth in getIndentOffset() 127 const FormatStyle &Style; member in clang::format::__anon5304a6e50111::LevelIndentTracker 173 : Style(Style), Keywords(Keywords), End(Lines.end()), Next(Lines.begin()), in LineJoiner() 218 if (Style.ColumnLimit > 0 && Indent > Style.ColumnLimit) in tryFitMultipleLinesInOne() 222 Style.ColumnLimit == 0 ? UINT_MAX : Style.ColumnLimit - Indent; in tryFitMultipleLinesInOne() 749 const FormatStyle &Style; member in clang::format::__anon5304a6e50111::LineJoiner 782 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), in LineFormatter() [all …]
|
H A D | UnwrappedLineParser.cpp | 231 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser() 1077 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) in parseStructuralElement() 1157 if (!Style.isCpp()) in parseStructuralElement() 1196 if (Style.isCpp() && in parseStructuralElement() 1303 if (!Style.isCpp()) { in parseStructuralElement() 1489 if (Style.isCSharp() && Style.BraceWrapping.AfterFunction == true) { in parseStructuralElement() 1529 if (!Style.isCSharp()) in tryToParsePropertyAccessor() 1618 if (!Style.isCpp()) { in tryToParseLambda() 1793 if (Style.isCSharp()) { in parseBracedList() 2178 if (Style.isCSharp()) { in parseNew() [all …]
|
H A D | TokenAnnotator.cpp | 75 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false), in AnnotatingParser() 154 !Style.isCSharp() && Style.Language != FormatStyle::LK_Proto && in parseAngle() 431 if (!Style.isCSharp()) in isCSharpAttributeSpecifier() 1567 if ((Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) && in determineTokenType() 1795 if (!Style.isCSharp() && !Style.isCpp() && in rParenEndsCast() 2071 : Style(Style), Keywords(Keywords), Current(Line.First) {} in ExpressionParser() 2483 (Style.Cpp11BracedListStyle && !Style.SpacesInParentheses) ? 0 : 1; in calculateFormattingInformation() 3007 return Style.Cpp11BracedListStyle ? Style.SpacesInParentheses : true; in spaceRequiredBetween() 3092 if (Style.isCpp()) { in spaceRequiredBefore() 3517 if (Style.isCSharp()) { in mustBreakBefore() [all …]
|
H A D | WhitespaceManager.cpp | 692 Style, in alignConsecutiveAssignments() 712 Style, in alignConsecutiveBitFields() 738 Style, in alignConsecutiveDeclarations() 769 Style, in alignChainedConditionals() 795 Style, in alignChainedConditionals() 825 if (Style.ColumnLimit == 0) in alignTrailingComments() 1013 switch (Style.UseTab) { in appendIndentText() 1018 if (Style.TabWidth) { in appendIndentText() 1020 Style.TabWidth - WhitespaceStartColumn % Style.TabWidth; in appendIndentText() 1067 if (Style.TabWidth) { in appendTabIndent() [all …]
|
H A D | FormatTokenLexer.cpp | 32 Style(Style), IdentTable(IdentTable), Keywords(IdentTable), 35 MacroBlockEndRegex(Style.MacroBlockEnd) { 51 Style.WhitespaceSensitiveMacros) { 56 Style.StatementAttributeLikeMacros) 73 if (Style.isCSharp()) in lex() 95 if (Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) { in tryMergePreviousTokens() 119 if (Style.isCSharp()) { in tryMergePreviousTokens() 609 Style.TabWidth, Encoding); in handleCSharpVerbatimAndInterpolatedStrings() 676 Style.TabWidth, Encoding); in handleTemplateStrings() 878 Style.TabWidth - (Style.TabWidth ? Column % Style.TabWidth : 0); in getNextToken() [all …]
|
H A D | BreakableToken.cpp | 49 if (Style.Language == FormatStyle::LK_TextProto) in getLineCommentIndentPrefix() 94 if (Style.Language == FormatStyle::LK_JavaScript) { in getCommentSplit() 113 if (Style.isCpp()) { in getCommentSplit() 130 if (Style.Language == FormatStyle::LK_JavaScript && in getCommentSplit() 313 Encoding, Style); in getSplit() 463 if (Style.Language == FormatStyle::LK_JavaScript || in BreakableBlockComment() 464 Style.Language == FormatStyle::LK_Java) { in BreakableBlockComment() 583 if (Style.Language != FormatStyle::LK_Java && in getContentIndent() 584 Style.Language != FormatStyle::LK_JavaScript) in getContentIndent() 597 return Style.ContinuationIndentWidth; in getContentIndent() [all …]
|
H A D | TokenAnalyzer.cpp | 51 TokenAnalyzer::TokenAnalyzer(const Environment &Env, const FormatStyle &Style) in TokenAnalyzer() argument 52 : Style(Style), Env(Env), in TokenAnalyzer() 61 LLVM_DEBUG(llvm::dbgs() << "Language: " << getLanguageName(Style.Language) in TokenAnalyzer() 68 IdentifierTable IdentTable(getFormattingLangOpts(Style)); in process() 70 Env.getFirstStartColumn(), Style, Encoding, Allocator, in process() 75 UnwrappedLineParser Parser(Style, Lex.getKeywords(), in process() 84 TokenAnnotator Annotator(Style, Lex.getKeywords()); in process()
|
H A D | BreakableToken.h | 235 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableToken() argument 237 Style(Style) {} in BreakableToken() 242 const FormatStyle &Style; variable 254 encoding::Encoding Encoding, const FormatStyle &Style); 294 const FormatStyle &Style); 362 const FormatStyle &Style, bool UseCRLF); 440 const FormatStyle &Style);
|
H A D | UnwrappedLineFormatter.h | 32 const FormatStyle &Style, in UnwrappedLineFormatter() argument 36 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), in UnwrappedLineFormatter() 67 const FormatStyle &Style; variable
|
H A D | FormatToken.cpp | 96 Style.ColumnLimit - State.Column + State.NextToken->Previous->ColumnWidth; in formatAfterToken() 162 if (Style.Cpp11BracedListStyle && !Style.BinPackArguments && in precomputeFormattingInfos() 173 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign) in precomputeFormattingInfos() 201 if (Style.Cpp11BracedListStyle && in precomputeFormattingInfos() 239 unsigned MaxItems = Style.ColumnLimit / 3; in precomputeFormattingInfos() 284 if (Format.TotalWidth > Style.ColumnLimit && Columns > 1) in precomputeFormattingInfos()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | NativeFormatting.cpp | 68 if (Style == IntegerStyle::Number) { in write_unsigned_impl() 104 write_unsigned(S, N, MinDigits, Style); in write_integer() 109 write_signed(S, N, MinDigits, Style); in write_integer() 119 write_signed(S, N, MinDigits, Style); in write_integer() 129 write_signed(S, N, MinDigits, Style); in write_integer() 142 (Style == HexPrintStyle::Upper || Style == HexPrintStyle::PrefixUpper); in write_hex() 175 if (Style == FloatStyle::Exponent) in write_double() 186 if (Style == FloatStyle::Exponent || Style == FloatStyle::ExponentUpper) { in write_double() 238 if (Style == FloatStyle::Percent) in write_double() 244 if (Style == FloatStyle::Percent) in write_double() [all …]
|
H A D | Path.cpp | 37 using llvm::sys::path::Style; 39 inline Style real_style(Style style) { in real_style() 41 return (style == Style::posix) ? Style::posix : Style::windows; in real_style() 43 return (style == Style::windows) ? Style::windows : Style::posix; in real_style() 48 if (real_style(style) == Style::windows) in separators() 54 if (real_style(style) == Style::windows) in preferred_separator() 479 Style style) { in replace_extension() 498 Style style = Style::native) { in starts_with() 607 StringRef get_separator(Style style) { in get_separator() 715 Style style) { in remove_dots() [all …]
|
H A D | Chrono.cpp | 54 StringRef Style) { in format() argument 60 if (Style.empty()) Style = "%Y-%m-%d %H:%M:%S.%N"; in format() 63 for (unsigned I = 0; I < Style.size(); ++I) { in format() 64 if (Style[I] == '%' && Style.size() > I + 1) switch (Style[I + 1]) { in format() 85 FStream << Style[I]; in format()
|
/netbsd/external/apache2/llvm/dist/llvm/tools/llvm-pdbutil/ |
H A D | FormatUtil.cpp | 216 Style, "1 byte align"); in formatSectionCharacteristics() 218 Style, "2 byte align"); in formatSectionCharacteristics() 220 Style, "4 byte align"); in formatSectionCharacteristics() 222 Style, "8 byte align"); in formatSectionCharacteristics() 224 Style, "16 byte align"); in formatSectionCharacteristics() 226 Style, "32 byte align"); in formatSectionCharacteristics() 228 Style, "64 byte align"); in formatSectionCharacteristics() 230 Style, "128 byte align"); in formatSectionCharacteristics() 232 Style, "256 byte align"); in formatSectionCharacteristics() 234 Style, "512 byte align"); in formatSectionCharacteristics() [all …]
|
/netbsd/external/apache2/llvm/dist/clang/lib/Tooling/Inclusions/ |
H A D | HeaderIncludes.cpp | 91 FileName, Code, Style, in getOffsetAfterHeaderGuardsAndComments() 161 FileName, Code, Style, in getMaxHeaderInsertionOffset() 192 : Style(Style), FileName(FileName) { in IncludeCategoryManager() 193 for (const auto &Category : Style.IncludeCategories) { in IncludeCategoryManager() 202 if (!Style.IncludeIsMainSourceRegex.empty()) { in IncludeCategoryManager() 213 Ret = Style.IncludeCategories[i].Priority; in getIncludePriority() 226 Ret = Style.IncludeCategories[i].SortPriority; in getSortIncludePriority() 228 Ret = Style.IncludeCategories[i].Priority; in getSortIncludePriority() 269 const IncludeStyle &Style) in HeaderIncludes() argument 276 Categories(Style, FileName), in HeaderIncludes() [all …]
|
/netbsd/external/apache2/llvm/dist/clang/include/clang/Format/ |
H A D | Format.h | 3407 void Add(FormatStyle Style); 3424 parseConfiguration(llvm::MemoryBufferRef Config, FormatStyle *Style, 3471 FormatStyle *Style); 3488 parseConfiguration(llvm::MemoryBufferRef Config, FormatStyle *Style, 3501 std::string configurationAsText(const FormatStyle &Style); 3515 const FormatStyle &Style); 3532 const FormatStyle &Style); 3557 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code, 3573 tooling::Replacements cleanup(const FormatStyle &Style, StringRef Code, 3581 tooling::Replacements fixNamespaceEndComments(const FormatStyle &Style, [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/tools/llvm-symbolizer/ |
H A D | llvm-symbolizer.cpp | 149 bool IsAddr2Line, OutputStyle Style, in symbolizeInput() argument 174 } else if (Style == OutputStyle::GNU) { in symbolizeInput() 318 auto Style = IsAddr2Line ? OutputStyle::GNU : OutputStyle::LLVM; in main() local 321 Style = OutputStyle::GNU; in main() 323 Style = OutputStyle::JSON; in main() 325 Style = OutputStyle::LLVM; in main() 330 if (Style == OutputStyle::GNU) in main() 332 else if (Style == OutputStyle::JSON) in main() 347 symbolizeInput(Args, AdjustVMA, IsAddr2Line, Style, StrippedInputString, in main() 354 symbolizeInput(Args, AdjustVMA, IsAddr2Line, Style, Address, Symbolizer, in main()
|
/netbsd/external/apache2/llvm/dist/clang/tools/clang-format/fuzzer/ |
H A D | ClangFormatFuzzer.cpp | 20 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp); in LLVMFuzzerTestOneInput() local 21 Style.ColumnLimit = 60; in LLVMFuzzerTestOneInput() 22 auto Replaces = reformat(Style, s, clang::tooling::Range(0, s.size())); in LLVMFuzzerTestOneInput()
|