| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | Path.h | 102 const_iterator begin(StringRef path, Style style = Style::native); 148 Style style = Style::native); 165 Style style = Style::native); 197 const_iterator end, Style style = Style::native); 210 Style style = Style::native); 300 StringRef filename(StringRef path, Style style = Style::native); 318 StringRef stem(StringRef path, Style style = Style::native); 340 bool is_separator(char value, Style style = Style::native); 345 StringRef get_separator(Style style = Style::native); 418 bool has_stem(const Twine &path, Style style = Style::native); [all …]
|
| H A D | FormatProviders.h | 142 if (Style.consume_front("N") || Style.consume_front("n")) 144 else if (Style.consume_front("D") || Style.consume_front("d")) 183 consumeHexStyle(Style, HS); 205 if (!Style.empty() && Style.getAsInteger(10, N)) { 238 if (Style.empty()) 305 if (Style.consume_front("P") || Style.consume_front("p")) 307 else if (Style.consume_front("F") || Style.consume_front("f")) 363 if (Style.empty()) 367 Style = Style.drop_front(); 368 if (Style.empty()) { [all …]
|
| H A D | Chrono.h | 73 StringRef Style); 128 if (Style.consume_front("ns")) 130 if (Style.consume_front("us")) 132 if (Style.consume_front("ms")) 134 if (Style.consume_front("s")) 136 if (Style.consume_front("m")) 138 if (Style.consume_front("h")) 144 if (Style.empty()) 146 if (Style.consume_front("-")) 148 if (Style.consume_front("+")) [all …]
|
| H A D | NativeFormatting.h | 26 size_t getDefaultPrecision(FloatStyle Style); 31 IntegerStyle Style); 32 void write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style); 34 IntegerStyle Style); 36 IntegerStyle Style); 38 IntegerStyle Style); 40 IntegerStyle Style); 42 void write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style, 44 void write_double(raw_ostream &S, double D, FloatStyle Style,
|
| H A D | FormatAdapters.h | 39 void format(llvm::raw_ostream &Stream, StringRef Style) { in format() argument 41 FmtAlign(Adapter, Where, Amount, Fill).format(Stream, Style); in format() 53 void format(llvm::raw_ostream &Stream, StringRef Style) { in format() argument 56 Adapter.format(Stream, Style); in format() 68 void format(llvm::raw_ostream &Stream, StringRef Style) { in format() argument 71 Adapter.format(Stream, Style); in format() 81 void format(llvm::raw_ostream &Stream, StringRef Style) { Stream << Item; } in format() argument
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Format/ |
| H A D | Format.cpp | 571 return Style; in expandPresets() 925 return Style; in getWebKitStyle() 940 return Style; in getGNUStyle() 976 assert(Style); in parseConfiguration() 1049 return Style; in Get() 1060 (*Styles)[Style.Language] = std::move(Style); in Add() 2064 if (!Style.isCpp()) in fixCppIncludeInsertions() 2353 return Style; in getStyle() 2357 if (!getPredefinedStyle(StyleName, Style.Language, &Style)) in getStyle() 2359 return Style; in getStyle() [all …]
|
| H A D | ContinuationIndenter.cpp | 231 : Style(Style), Keywords(Keywords), SourceMgr(SourceMgr), in ContinuationIndenter() 234 CommentPragmasRegex(Style.CommentPragmas), RawStringFormats(Style) {} in ContinuationIndenter() 347 Style.isCpp() && in mustBreak() 364 Style.ColumnLimit > 0 && in mustBreak() 379 Style.ColumnLimit != 0)) in mustBreak() 1348 if (Style.ColumnLimit) { in moveStatePastScopeOpener() 1424 Style.ColumnLimit) in moveStatePastScopeCloser() 1766 if (!Style.ReflowComments || in createBreakableToken() 1779 if (!Style.ReflowComments || in createBreakableToken() 2183 if (Style.ColumnLimit != 0 && Style.BreakStringLiterals && in nextIsMultilineString() [all …]
|
| H A D | UnwrappedLineFormatter.cpp | 44 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) { in LevelIndentTracker() 121 const FormatStyle &Style; member in clang::format::__anon847ac5d30111::LevelIndentTracker 158 : Style(Style), Keywords(Keywords), End(Lines.end()), Next(Lines.begin()), in LineJoiner() 203 if (Style.ColumnLimit > 0 && Indent > Style.ColumnLimit) in tryFitMultipleLinesInOne() 207 Style.ColumnLimit == 0 ? UINT_MAX : Style.ColumnLimit - Indent; in tryFitMultipleLinesInOne() 252 if (Style.CompactNamespaces) { in tryFitMultipleLinesInOne() 654 const FormatStyle &Style; member in clang::format::__anon847ac5d30111::LineJoiner 687 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), in LineFormatter() 758 if (Style.ColumnLimit > 0 && in formatChildren() 778 const FormatStyle &Style; member in clang::format::__anon847ac5d30111::LineFormatter [all …]
|
| H A D | TokenAnnotator.cpp | 52 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false), in AnnotatingParser() 1476 if (!Style.isCpp() && Style.Language != FormatStyle::LK_Java) in rParenEndsCast() 1678 const FormatStyle &Style; member in clang::format::__anon963563180111::AnnotatingParser 1700 : Style(Style), Keywords(Keywords), Current(Line.First) {} in ExpressionParser() 1888 const FormatStyle &Style; member in clang::format::__anon963563180111::ExpressionParser 2387 return Style.PenaltyBreakAssignment; in splitPenalty() 2522 return !Style.Cpp11BracedListStyle; in spaceRequiredBetween() 2585 if (Style.isCpp()) { in spaceRequiredBefore() 2777 (Style.Standard != FormatStyle::LS_Cpp11 || Style.SpacesInAngles); in spaceRequiredBefore() 2802 return Style.SpacesInAngles; in spaceRequiredBefore() [all …]
|
| H A D | UnwrappedLineParser.cpp | 179 if (Style.BraceWrapping.IndentBraces) in CompoundStatementIndenter() 226 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser() 631 return Style.BraceWrapping.AfterClass; in ShouldBreakBeforeBrace() 633 return Style.BraceWrapping.AfterUnion; in ShouldBreakBeforeBrace() 1066 if (!Style.isCpp()) in parseStructuralElement() 1105 if (Style.isCpp() && in parseStructuralElement() 1200 if (!Style.isCpp()) { in parseStructuralElement() 1396 if (!Style.isCpp()) { in tryToParseLambda() 1708 if (Style.BraceWrapping.BeforeElse) in parseIfThenElse() 1799 if (Style.BraceWrapping.BeforeCatch) in parseTryCatch() [all …]
|
| H A D | FormatTokenLexer.cpp | 31 Style(Style), IdentTable(getFormattingLangOpts(Style)), 34 MacroBlockEndRegex(Style.MacroBlockEnd) { 36 getFormattingLangOpts(Style))); 54 if (Style.Language == FormatStyle::LK_TextProto) in lex() 73 if (Style.Language == FormatStyle::LK_JavaScript) { in tryMergePreviousTokens() 101 if (Style.Language == FormatStyle::LK_Java) { in tryMergePreviousTokens() 327 Style.TabWidth, Encoding); in handleTemplateStrings() 528 Column += Style.TabWidth - Column % Style.TabWidth; in getNextToken() 557 Style.Language == FormatStyle::LK_Java) && in getNextToken() 613 if (Style.Language == FormatStyle::LK_Java && in getNextToken() [all …]
|
| H A D | WhitespaceManager.cpp | 433 if (!Style.AlignConsecutiveAssignments) in alignConsecutiveAssignments() 436 AlignTokens(Style, in alignConsecutiveAssignments() 452 if (!Style.AlignConsecutiveDeclarations) in alignConsecutiveDeclarations() 461 AlignTokens(Style, in alignConsecutiveDeclarations() 488 if (Style.ColumnLimit == 0) in alignTrailingComments() 676 switch (Style.UseTab) { in appendIndentText() 682 Style.TabWidth - WhitespaceStartColumn % Style.TabWidth; in appendIndentText() 689 Text.append(Spaces % Style.TabWidth, ' '); in appendIndentText() 701 Spaces -= Tabs * Style.TabWidth; in appendIndentText() 707 unsigned Tabs = Spaces / Style.TabWidth; in appendIndentText() [all …]
|
| H A D | BreakableToken.cpp | 50 if (Style.Language == FormatStyle::LK_TextProto) in getLineCommentIndentPrefix() 102 else if (Style.Language == FormatStyle::LK_JavaScript && in getCommentSplit() 236 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableStringLiteral() argument 237 : BreakableToken(Tok, InPPDirective, Encoding, Style), in BreakableStringLiteral() 279 Encoding, Style); in getSplit() 335 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableBlockComment() argument 428 if (Style.Language == FormatStyle::LK_JavaScript || in BreakableBlockComment() 429 Style.Language == FormatStyle::LK_Java) { in BreakableBlockComment() 537 if (Style.Language != FormatStyle::LK_Java && in getContentIndent() 538 Style.Language != FormatStyle::LK_JavaScript) in getContentIndent() [all …]
|
| H A D | TokenAnalyzer.cpp | 52 TokenAnalyzer::TokenAnalyzer(const Environment &Env, const FormatStyle &Style) in TokenAnalyzer() argument 53 : Style(Style), Env(Env), in TokenAnalyzer() 62 LLVM_DEBUG(llvm::dbgs() << "Language: " << getLanguageName(Style.Language) in TokenAnalyzer() 69 Env.getFirstStartColumn(), Style, Encoding); in process() 71 UnwrappedLineParser Parser(Style, Tokens.getKeywords(), in process() 80 TokenAnnotator Annotator(Style, Tokens.getKeywords()); in process()
|
| H A D | UnwrappedLineFormatter.h | 33 const FormatStyle &Style, in UnwrappedLineFormatter() argument 37 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), in UnwrappedLineFormatter() 70 const FormatStyle &Style; variable
|
| H A D | BreakableToken.h | 240 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableToken() argument 242 Style(Style) {} in BreakableToken() 247 const FormatStyle &Style; variable 259 encoding::Encoding Encoding, const FormatStyle &Style); 299 const FormatStyle &Style); 367 const FormatStyle &Style); 443 const FormatStyle &Style);
|
| H A D | FormatToken.h | 490 bool opensBlockOrBlockTypeList(const FormatStyle &Style) const { in opensBlockOrBlockTypeList() 497 (!Style.Cpp11BracedListStyle && NestingLevel == 0))) || in opensBlockOrBlockTypeList() 498 (is(tok::less) && (Style.Language == FormatStyle::LK_Proto || in opensBlockOrBlockTypeList() 499 Style.Language == FormatStyle::LK_TextProto)); in opensBlockOrBlockTypeList() 504 bool isCppStructuredBinding(const FormatStyle &Style) const { in isCppStructuredBinding() 505 if (!Style.isCpp() || isNot(tok::l_square)) in isCppStructuredBinding() 516 bool closesBlockOrBlockTypeList(const FormatStyle &Style) const { in closesBlockOrBlockTypeList() 572 TokenRole(const FormatStyle &Style) : Style(Style) {} in TokenRole() argument 605 const FormatStyle &Style; 610 CommaSeparatedList(const FormatStyle &Style) in CommaSeparatedList() argument [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | NativeFormatting.cpp | 70 if (Style == IntegerStyle::Number) { in write_unsigned_impl() 106 write_unsigned(S, N, MinDigits, Style); in write_integer() 111 write_signed(S, N, MinDigits, Style); in write_integer() 121 write_signed(S, N, MinDigits, Style); in write_integer() 131 write_signed(S, N, MinDigits, Style); in write_integer() 144 (Style == HexPrintStyle::Upper || Style == HexPrintStyle::PrefixUpper); in write_hex() 177 if (Style == FloatStyle::Exponent) in write_double() 188 if (Style == FloatStyle::Exponent || Style == FloatStyle::ExponentUpper) { in write_double() 240 if (Style == FloatStyle::Percent) in write_double() 246 if (Style == FloatStyle::Percent) in write_double() [all …]
|
| H A D | Path.cpp | 38 using llvm::sys::path::Style; 40 inline Style real_style(Style style) { in real_style() 42 return (style == Style::posix) ? Style::posix : Style::windows; in real_style() 44 return (style == Style::windows) ? Style::windows : Style::posix; in real_style() 49 if (real_style(style) == Style::windows) in separators() 55 if (real_style(style) == Style::windows) in preferred_separator() 506 Style style) { in replace_extension() 526 Style style) { in replace_path_prefix() 626 StringRef get_separator(Style style) { in get_separator() 742 Style style) { in remove_dots() [all …]
|
| H A D | Chrono.cpp | 55 StringRef Style) { in format() argument 61 if (Style.empty()) Style = "%Y-%m-%d %H:%M:%S.%N"; in format() 64 for (unsigned I = 0; I < Style.size(); ++I) { in format() 65 if (Style[I] == '%' && Style.size() > I + 1) switch (Style[I + 1]) { in format() 86 FStream << Style[I]; in format()
|
| /freebsd-12.1/contrib/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 …]
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Utility/ |
| H A D | FileSpec.cpp | 40 return FileSpec::Style::windows; in GetNativeStyle() 42 return FileSpec::Style::posix; in GetNativeStyle() 46 bool PathStyleIsPosix(FileSpec::Style style) { in PathStyleIsPosix() 47 return (style == FileSpec::Style::posix || in PathStyleIsPosix() 48 (style == FileSpec::Style::native && in PathStyleIsPosix() 79 : FileSpec{path, Triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec() 231 if (m_style == Style::windows) in SetFile() 254 return SetFile(path, Triple.isOSWindows() ? Style::windows : Style::posix); in SetFile() 564 (Style.empty() || Style.equals_lower("F") || Style.equals_lower("D")) && in format() 575 if (Style.equals_lower("F")) { in format() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Utility/ |
| H A D | FileSpec.h | 60 using Style = llvm::sys::path::Style; 79 explicit FileSpec(llvm::StringRef path, Style style = Style::native); 253 bool IsCaseSensitive() const { return m_style != Style::windows; } in IsCaseSensitive() 267 Style GetPathStyle() const; 434 void SetFile(llvm::StringRef path, Style style); 487 Style m_style; ///< The syntax that this path uses (e.g. Windows / Posix) 519 StringRef Style);
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Inclusions/ |
| H A D | HeaderIncludes.cpp | 39 StringRef FileName, StringRef Code, const IncludeStyle &Style, in getOffsetAfterTokenSequence() argument 79 FileName, Code, Style, in getOffsetAfterHeaderGuardsAndComments() 131 const IncludeStyle &Style) { in getMaxHeaderInsertionOffset() argument 133 FileName, Code, Style, in getMaxHeaderInsertionOffset() 154 : Style(Style), FileName(FileName) { in IncludeCategoryManager() 156 for (const auto &Category : Style.IncludeCategories) in IncludeCategoryManager() 169 Ret = Style.IncludeCategories[i].Priority; in getIncludePriority() 193 const IncludeStyle &Style) in HeaderIncludes() argument 196 getOffsetAfterHeaderGuardsAndComments(FileName, Code, Style)), in HeaderIncludes() 200 Categories(Style, FileName), in HeaderIncludes() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Format/ |
| H A D | Format.h | 1832 void Add(FormatStyle Style); 1887 FormatStyle *Style); 1898 std::error_code parseConfiguration(StringRef Text, FormatStyle *Style); 1901 std::string configurationAsText(const FormatStyle &Style); 1915 const FormatStyle &Style); 1932 const FormatStyle &Style); 1957 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code, 1965 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code, 1974 tooling::Replacements cleanup(const FormatStyle &Style, StringRef Code, 1982 tooling::Replacements fixNamespaceEndComments(const FormatStyle &Style, [all …]
|