| /freebsd-13.1/contrib/llvm-project/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
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Format/ |
| H A D | Format.cpp | 872 return Style; in expandPresets() 1390 return Style; in getWebKitStyle() 1405 return Style; in getGNUStyle() 1435 return Style; in getMicrosoftStyle() 1478 assert(Style); in parseConfiguration() 1558 return Style; in Get() 1569 (*Styles)[Style.Language] = std::move(Style); in Add() 2657 if (!Style.SortIncludes || Style.DisableFormat) in sortIncludes() 3071 return Style; in getStyle() 3078 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() 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() 1914 Style.isJson() || !Style.BreakStringLiterals || !AllowBreak) 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() 61 (Style.PPIndentWidth >= 0) ? Style.PPIndentWidth : Style.IndentWidth; in nextLine() 70 Indent = Line.Level * Style.IndentWidth + Style.ContinuationIndentWidth; in nextLine() 101 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) in getIndentOffset() 110 return Style.IndentAccessModifiers ? -Style.IndentWidth in getIndentOffset() 129 const FormatStyle &Style; member in clang::format::__anonb93c45f80111::LevelIndentTracker 175 : Style(Style), Keywords(Keywords), End(Lines.end()), Next(Lines.begin()), in LineJoiner() 220 if (Style.ColumnLimit > 0 && Indent > Style.ColumnLimit) in tryFitMultipleLinesInOne() 224 Style.ColumnLimit == 0 ? UINT_MAX : Style.ColumnLimit - Indent; in tryFitMultipleLinesInOne() 751 const FormatStyle &Style; member in clang::format::__anonb93c45f80111::LineJoiner [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() 447 if (!Style.isCSharp()) in isCSharpAttributeSpecifier() 1623 if ((Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) && in determineTokenType() 1851 if (!Style.isCSharp() && !Style.isCpp() && in rParenEndsCast() 2127 : Style(Style), Keywords(Keywords), Current(Line.First) {} in ExpressionParser() 2560 (Style.Cpp11BracedListStyle && !Style.SpacesInParentheses) ? 0 : 1; in calculateFormattingInformation() 3127 return Style.Cpp11BracedListStyle ? Style.SpacesInParentheses : true; in spaceRequiredBetween() 3216 if (Style.isCpp()) { in spaceRequiredBefore() 3613 if (Style.isCSharp()) { in mustBreakBefore() [all …]
|
| H A D | UnwrappedLineParser.cpp | 231 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser() 1124 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) in parseStructuralElement() 1204 if (!Style.isCpp()) in parseStructuralElement() 1243 if (Style.isCpp() && in parseStructuralElement() 1350 if (!Style.isCpp()) { in parseStructuralElement() 1547 if (Style.isCSharp() && Style.BraceWrapping.AfterFunction == true) { in parseStructuralElement() 1587 if (!Style.isCSharp()) in tryToParsePropertyAccessor() 1676 if (!Style.isCpp()) { in tryToParseLambda() 1859 if (Style.isCSharp() && Style.BraceWrapping.AfterFunction == true) { in parseBracedList() 2256 if (Style.isCSharp()) { in parseNew() [all …]
|
| H A D | FormatTokenLexer.cpp | 32 Style(Style), IdentTable(IdentTable), Keywords(IdentTable), 35 MacroBlockEndRegex(Style.MacroBlockEnd) { 53 Style.WhitespaceSensitiveMacros) { 58 Style.StatementAttributeLikeMacros) 75 if (Style.isCSharp()) in lex() 97 if (Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) { in tryMergePreviousTokens() 121 if (Style.isCSharp()) { in tryMergePreviousTokens() 611 Style.TabWidth, Encoding); in handleCSharpVerbatimAndInterpolatedStrings() 678 Style.TabWidth, Encoding); in handleTemplateStrings() 880 Style.TabWidth - (Style.TabWidth ? Column % Style.TabWidth : 0); in getNextToken() [all …]
|
| H A D | WhitespaceManager.cpp | 713 Style, in alignConsecutiveAssignments() 733 Style, in alignConsecutiveBitFields() 753 Style, in alignConsecutiveDeclarations() 784 Style, in alignChainedConditionals() 810 Style, in alignChainedConditionals() 840 if (Style.ColumnLimit == 0) in alignTrailingComments() 1324 switch (Style.UseTab) { in appendIndentText() 1329 if (Style.TabWidth) { in appendIndentText() 1331 Style.TabWidth - WhitespaceStartColumn % Style.TabWidth; in appendIndentText() 1378 if (Style.TabWidth) { in appendTabIndent() [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 | UnwrappedLineFormatter.h | 32 const FormatStyle &Style, in UnwrappedLineFormatter() argument 36 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), in UnwrappedLineFormatter() 68 const FormatStyle &Style; variable
|
| 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);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | NativeFormatting.cpp | 69 if (Style == IntegerStyle::Number) { in write_unsigned_impl() 105 write_unsigned(S, N, MinDigits, Style); in write_integer() 110 write_signed(S, N, MinDigits, Style); in write_integer() 120 write_signed(S, N, MinDigits, Style); in write_integer() 130 write_signed(S, N, MinDigits, Style); in write_integer() 143 (Style == HexPrintStyle::Upper || Style == HexPrintStyle::PrefixUpper); in write_hex() 176 if (Style == FloatStyle::Exponent) in write_double() 187 if (Style == FloatStyle::Exponent || Style == FloatStyle::ExponentUpper) { in write_double() 239 if (Style == FloatStyle::Percent) in write_double() 245 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()
|
| /freebsd-13.1/contrib/llvm-project/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-13.1/contrib/llvm-project/lldb/source/Utility/ |
| H A D | FileSpec.cpp | 39 return FileSpec::Style::windows; in GetNativeStyle() 41 return FileSpec::Style::posix; in GetNativeStyle() 76 : FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec() 190 if (m_style == Style::windows) in SetFile() 213 return SetFile(path, triple.isOSWindows() ? Style::windows : Style::posix); in SetFile() 312 return Style::posix; in GuessPathStyle() 314 return Style::windows; in GuessPathStyle() 317 return Style::windows; in GuessPathStyle() 502 assert((Style.empty() || Style.equals_insensitive("F") || in format() 514 if (Style.equals_insensitive("F")) { in format() [all …]
|
| /freebsd-13.1/contrib/llvm-project/lldb/include/lldb/Utility/ |
| H A D | FileSpec.h | 58 using Style = llvm::sys::path::Style; 75 explicit FileSpec(llvm::StringRef path, Style style = Style::native); 198 static llvm::Optional<Style> GuessPathStyle(llvm::StringRef absolute_path); 205 bool IsCaseSensitive() const { return m_style != Style::windows; } in IsCaseSensitive() 217 Style GetPathStyle() const; 352 void SetFile(llvm::StringRef path, Style style); 410 Style m_style; ///< The syntax that this path uses (e.g. Windows / Posix) 417 LLVM_YAML_STRONG_TYPEDEF(FileSpec::Style, FileSpecStyle) 442 StringRef Style);
|
| /freebsd-13.1/contrib/llvm-project/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 …]
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Format/ |
| H A D | Format.h | 3544 void Add(FormatStyle Style); 3561 parseConfiguration(llvm::MemoryBufferRef Config, FormatStyle *Style, 3608 FormatStyle *Style); 3625 parseConfiguration(llvm::MemoryBufferRef Config, FormatStyle *Style, 3638 std::string configurationAsText(const FormatStyle &Style); 3652 const FormatStyle &Style); 3669 const FormatStyle &Style); 3694 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code, 3710 tooling::Replacements cleanup(const FormatStyle &Style, StringRef Code, 3718 tooling::Replacements fixNamespaceEndComments(const FormatStyle &Style, [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-symbolizer/ |
| H A D | llvm-symbolizer.cpp | 151 bool IsAddr2Line, OutputStyle Style, in symbolizeInput() argument 176 } else if (Style == OutputStyle::GNU) { in symbolizeInput() 319 auto Style = IsAddr2Line ? OutputStyle::GNU : OutputStyle::LLVM; in main() local 322 Style = OutputStyle::GNU; in main() 324 Style = OutputStyle::JSON; in main() 326 Style = OutputStyle::LLVM; in main() 331 if (Style == OutputStyle::GNU) in main() 333 else if (Style == OutputStyle::JSON) in main() 348 symbolizeInput(Args, AdjustVMA, IsAddr2Line, Style, StrippedInputString, in main() 355 symbolizeInput(Args, AdjustVMA, IsAddr2Line, Style, Address, Symbolizer, in main()
|