| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Path.h | 27 enum class Style { enum 79 Style S = Style::native; ///< The path style to use. 105 Style S = Style::native; ///< The path style to use. 170 Style style = Style::native); 196 Style style = Style::native); 211 Style style = Style::native); 243 const_iterator end, Style style = Style::native); 256 Style style = Style::native); 270 Style style = Style::native) { 397 bool is_separator(char value, 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")) 362 if (Style.empty()) 366 Style = Style.drop_front(); 367 if (Style.empty()) { [all …]
|
| H A D | Chrono.h | 94 StringRef Style); 154 if (Style.consume_front("ns")) 156 if (Style.consume_front("us")) 158 if (Style.consume_front("ms")) 160 if (Style.consume_front("s")) 162 if (Style.consume_front("m")) 164 if (Style.consume_front("h")) 170 if (Style.empty()) 172 if (Style.consume_front("-")) 174 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-14.2/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | FormatUtil.cpp | 171 Style, "1 byte align"); in formatSectionCharacteristics() 173 Style, "2 byte align"); in formatSectionCharacteristics() 175 Style, "4 byte align"); in formatSectionCharacteristics() 177 Style, "8 byte align"); in formatSectionCharacteristics() 179 Style, "16 byte align"); in formatSectionCharacteristics() 181 Style, "32 byte align"); in formatSectionCharacteristics() 183 Style, "64 byte align"); in formatSectionCharacteristics() 185 Style, "128 byte align"); in formatSectionCharacteristics() 187 Style, "256 byte align"); in formatSectionCharacteristics() 189 Style, "512 byte align"); in formatSectionCharacteristics() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Format/ |
| H A D | Format.cpp | 1860 return Style; in getWebKitStyle() 1875 return Style; in getGNUStyle() 1904 return Style; in getMicrosoftStyle() 1914 return Style; in getClangFormatStyle() 1990 assert(Style); in parseConfiguration() 2076 return Style; in Get() 2087 (*Styles)[Style.Language] = std::move(Style); in Add() 3415 if (!Style.SortIncludes || Style.DisableFormat) in sortIncludes() 3956 return Style; in getStyle() 3981 return Style; in getStyle() [all …]
|
| H A D | ContinuationIndenter.cpp | 241 : Style(Style), Keywords(Keywords), SourceMgr(SourceMgr), in ContinuationIndenter() 244 CommentPragmasRegex(Style.CommentPragmas), RawStringFormats(Style) {} in ContinuationIndenter() 426 Style.ColumnLimit > 0 && in mustBreak() 589 (!Style.isCSharp() || in mustBreak() 1236 Style.IndentWidth; in getNewLineColumn() 1817 Style.isProto() || !Style.BinPackArguments || in moveStatePastScopeOpener() 1869 if (Style.ColumnLimit) { in moveStatePastScopeOpener() 2274 if (Style.isJson() || Style.isJavaScript() || !Style.BreakStringLiterals || in createBreakableToken() 2313 if (Style.isVerilog() || Style.Language == FormatStyle::LK_Java || in createBreakableToken() 2314 Style.isJavaScript() || Style.isCSharp()) { in createBreakableToken() [all …]
|
| H A D | UnwrappedLineFormatter.cpp | 49 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) { in LevelIndentTracker() 70 (Style.PPIndentWidth >= 0) ? Style.PPIndentWidth : Style.IndentWidth; in nextLine() 89 Indent = Line.Level * Style.IndentWidth + Style.ContinuationIndentWidth; in nextLine() 115 if (Style.Language == FormatStyle::LK_Java || Style.isJavaScript() || in getIndentOffset() 147 return Style.IndentAccessModifiers ? -Style.IndentWidth in getIndentOffset() 216 : Style(Style), Keywords(Keywords), End(Lines.end()), Next(Lines.begin()), in LineJoiner() 264 if (Style.ColumnLimit > 0 && Indent > Style.ColumnLimit) in tryFitMultipleLinesInOne() 268 Style.ColumnLimit == 0 ? UINT_MAX : Style.ColumnLimit - Indent; in tryFitMultipleLinesInOne() 444 return (Style.ColumnLimit == 0 || TheLine->Level * Style.IndentWidth + in tryFitMultipleLinesInOne() 989 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), in LineFormatter() [all …]
|
| H A D | UnwrappedLineParser.cpp | 156 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser() 163 Macros(Style.Macros, SourceMgr, Style, Allocator, IdentTable) {} in UnwrappedLineParser() 440 if (Style.Language == FormatStyle::LK_Proto || Style.isVerilog() || in parseLevel() 1428 if (Style.isCpp()) { in parseStructuralElement() 1485 if (Style.Language == FormatStyle::LK_Java || Style.isJavaScript() || in parseStructuralElement() 1671 if (!Style.isJavaScript() && !Style.isVerilog() && !Style.isTableGen() && in parseStructuralElement() 1780 if (!Style.isCpp() && !Style.isVerilog()) { in parseStructuralElement() 2031 if ((Style.isJavaScript() || Style.isCSharp()) && in parseStructuralElement() 2211 if (!Style.isCpp()) { in tryToParseLambda() 2408 assert(Style.isJavaScript() || Style.isCSharp()); in tryToParseChildBlock() [all …]
|
| H A D | TokenAnnotator.cpp | 128 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false), in AnnotatingParser() 234 !Style.isCSharp() && !Style.isProto())) { in parseAngle() 1984 if ((Style.isJavaScript() || Style.isCSharp()) && in determineTokenType() 2290 if (!Style.isCpp()) in lParenStartsCppCast() 2311 if (!Style.isCSharp() && !Style.isCpp() && in rParenEndsCast() 2790 if ((Style.isCSharp() || Style.isJavaScript() || in parse() 3259 if (Style.isCpp()) { in annotate() 4204 (Style.isProto() && !Style.Cpp11BracedListStyle && in spaceRequiredBetween() 4418 if (Style.isCpp()) { in spaceRequiredBefore() 5095 (Style.isCpp() || Style.isProto() || in mustBreakBefore() [all …]
|
| H A D | WhitespaceManager.cpp | 667 if (Style.ColumnLimit != 0 && 823 Style, in alignConsecutiveAssignments() 856 Style, in alignConsecutiveBitFields() 980 Style, in alignConsecutiveDeclarations() 1017 Style, in alignChainedConditionals() 1042 Style, in alignChainedConditionals() 1086 if (RestoredLineLength >= Style.ColumnLimit && Style.ColumnLimit > 0) in alignTrailingComments() 1698 switch (Style.UseTab) { in appendIndentText() 1703 if (Style.TabWidth) { in appendIndentText() 1705 Style.TabWidth - WhitespaceStartColumn % Style.TabWidth; in appendIndentText() [all …]
|
| H A D | BreakableToken.cpp | 49 if (Style.Language == FormatStyle::LK_TextProto) in getLineCommentIndentPrefix() 94 if (Style.isJavaScript()) { in getCommentSplit() 113 if (Style.isCpp()) { in getCommentSplit() 270 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableStringLiteral() argument 271 : BreakableToken(Tok, InPPDirective, Encoding, Style), in BreakableStringLiteral() 315 !Style.isJavaScript() && in BreakableStringLiteralUsingOperators() 318 if (Style.isVerilog()) { in BreakableStringLiteralUsingOperators() 427 Encoding, Style); in getSplit() 579 if (Style.isJavaScript() || Style.Language == FormatStyle::LK_Java) { in BreakableBlockComment() 697 if (Style.Language != FormatStyle::LK_Java && !Style.isJavaScript()) in getContentIndent() [all …]
|
| H A D | FormatTokenLexer.cpp | 33 Style(Style), IdentTable(IdentTable), Keywords(IdentTable), 91 if (Style.isCSharp()) { in lex() 96 if (Style.isTableGen()) { in lex() 120 if (Style.isJavaScript() || Style.isCSharp()) { in tryMergePreviousTokens() 143 if (Style.isCSharp()) { in tryMergePreviousTokens() 206 if (Style.isVerilog()) { in tryMergePreviousTokens() 1157 Style.TabWidth - (Style.TabWidth ? Column % Style.TabWidth : 0); in getNextToken() 1193 if ((Style.isJavaScript() || Style.Language == FormatStyle::LK_Java) && in getNextToken() 1206 if (Style.isVerilog()) { in getNextToken() 1313 if (Style.isCpp()) { in getNextToken() [all …]
|
| H A D | FormatToken.cpp | 78 bool FormatToken::isBlockIndentedInitRBrace(const FormatStyle &Style) const { in isBlockIndentedInitRBrace() 80 if (!Style.Cpp11BracedListStyle || in isBlockIndentedInitRBrace() 81 Style.AlignAfterOpenBracket != FormatStyle::BAS_BlockIndent) { in isBlockIndentedInitRBrace() 93 bool FormatToken::opensBlockOrBlockTypeList(const FormatStyle &Style) const { in opensBlockOrBlockTypeList() 102 (!Style.Cpp11BracedListStyle && NestingLevel == 0))) || in opensBlockOrBlockTypeList() 103 (is(tok::less) && Style.isProto()); in opensBlockOrBlockTypeList() 198 if (Style.Cpp11BracedListStyle && !Style.BinPackArguments && in precomputeFormattingInfos() 210 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign) in precomputeFormattingInfos() 242 if (Style.Cpp11BracedListStyle && in precomputeFormattingInfos() 281 unsigned MaxItems = Style.ColumnLimit / 3; in precomputeFormattingInfos() [all …]
|
| H A D | TokenAnalyzer.cpp | 86 TokenAnalyzer::TokenAnalyzer(const Environment &Env, const FormatStyle &Style) in TokenAnalyzer() argument 87 : Style(Style), Env(Env), in TokenAnalyzer() 96 LLVM_DEBUG(llvm::dbgs() << "Language: " << getLanguageName(Style.Language) in TokenAnalyzer() 104 IdentifierTable IdentTable(getFormattingLangOpts(Style)); in process() 106 Env.getFirstStartColumn(), Style, Encoding, Allocator, in process() 110 UnwrappedLineParser Parser(Env.getSourceManager(), Style, Lex.getKeywords(), in process() 122 TokenAnnotator Annotator(Style, Lex.getKeywords()); in process()
|
| H A D | DefinitionBlockSeparator.cpp | 25 assert(Style.SeparateDefinitionBlocks != FormatStyle::SDS_Leave); in analyze() 36 Style.SeparateDefinitionBlocks == FormatStyle::SDS_Never; in separateBlocks() 57 (Style.isJavaScript() && in separateBlocks() 69 (Style.SeparateDefinitionBlocks == FormatStyle::SDS_Always ? 1 : 0) + 1; in separateBlocks() 71 Env.getSourceManager(), Style, in separateBlocks() 72 Style.LineEnding > FormatStyle::LE_CRLF in separateBlocks() 75 Style.LineEnding == FormatStyle::LE_DeriveCRLF) in separateBlocks() 76 : Style.LineEnding == FormatStyle::LE_CRLF); in separateBlocks() 169 if (Style.isCSharp() && OperateLine->First->is(TT_AttributeSquare)) in separateBlocks()
|
| 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
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | NativeFormatting.cpp | 71 if (Style == IntegerStyle::Number) { in write_unsigned_impl() 107 write_unsigned(S, N, MinDigits, Style); in write_integer() 112 write_signed(S, N, MinDigits, Style); in write_integer() 122 write_signed(S, N, MinDigits, Style); in write_integer() 132 write_signed(S, N, MinDigits, Style); in write_integer() 145 (Style == HexPrintStyle::Upper || Style == HexPrintStyle::PrefixUpper); in write_hex() 178 if (Style == FloatStyle::Exponent) in write_double() 189 if (Style == FloatStyle::Exponent || Style == FloatStyle::ExponentUpper) { in write_double() 241 if (Style == FloatStyle::Percent) in write_double() 247 if (Style == FloatStyle::Percent) in write_double() [all …]
|
| H A D | Chrono.cpp | 73 StringRef Style) { in format() argument 76 if (Style.empty()) Style = "%Y-%m-%d %H:%M:%S.%N"; in format() 79 for (unsigned I = 0; I < Style.size(); ++I) { in format() 80 if (Style[I] == '%' && Style.size() > I + 1) switch (Style[I + 1]) { in format() 101 FStream << Style[I]; in format() 110 const UtcTime<std::chrono::seconds> &T, raw_ostream &OS, StringRef Style) { in format() argument 116 llvm::format(Fractional, LT, OS, Style); in format() 120 StringRef Style) { in format() argument 125 llvm::format(Fractional, LT, OS, Style); in format()
|
| H A D | Path.cpp | 40 using llvm::sys::path::Style; 42 inline Style real_style(Style style) { in real_style() 43 if (style != Style::native) in real_style() 46 return Style::posix; in real_style() 51 inline const char *separators(Style style) { in separators() 58 if (real_style(style) == Style::windows) in preferred_separator() 460 append(path, Style::native, a, b, c, d); in append() 483 Style style) { in replace_extension() 502 Style style = Style::native) { in starts_with() 611 StringRef get_separator(Style style) { in get_separator() [all …]
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Utility/ |
| H A D | FileSpec.cpp | 41 return FileSpec::Style::windows; in GetNativeStyle() 43 return FileSpec::Style::posix; in GetNativeStyle() 76 : FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec() 188 if (m_style == Style::windows) in SetFile() 211 return SetFile(path, triple.isOSWindows() ? Style::windows : Style::posix); in SetFile() 309 std::optional<FileSpec::Style> 312 return Style::posix; in GuessPathStyle() 314 return Style::windows; in GuessPathStyle() 318 return Style::windows; in GuessPathStyle() 538 assert((Style.empty() || Style.equals_insensitive("F") || in format() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Inclusions/ |
| H A D | HeaderIncludes.cpp | 92 FileName, Code, Style, in getOffsetAfterHeaderGuardsAndComments() 162 FileName, Code, Style, in getMaxHeaderInsertionOffset() 193 : Style(Style), FileName(FileName) { in IncludeCategoryManager() 194 for (const auto &Category : Style.IncludeCategories) { in IncludeCategoryManager() 203 if (!Style.IncludeIsMainSourceRegex.empty()) { in IncludeCategoryManager() 214 Ret = Style.IncludeCategories[i].Priority; in getIncludePriority() 227 Ret = Style.IncludeCategories[i].SortPriority; in getSortIncludePriority() 229 Ret = Style.IncludeCategories[i].Priority; in getSortIncludePriority() 272 const IncludeStyle &Style) in HeaderIncludes() argument 280 Categories(Style, FileName) { in HeaderIncludes() [all …]
|
| /freebsd-14.2/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 std::optional<Style> GuessPathStyle(llvm::StringRef absolute_path); 217 Style GetPathStyle() const; 365 void SetFile(llvm::StringRef path, Style style); 432 Style m_style; 461 StringRef Style);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86Subtarget.h | 44 enum class Style { enum 63 PICStyles::Style PICStyle; 189 PICStyles::Style getPICStyle() const { return PICStyle; } in getPICStyle() 190 void setPICStyle(PICStyles::Style Style) { PICStyle = Style; } in setPICStyle() argument 342 bool isPICStyleGOT() const { return PICStyle == PICStyles::Style::GOT; } in isPICStyleGOT() 343 bool isPICStyleRIPRel() const { return PICStyle == PICStyles::Style::RIPRel; } in isPICStyleRIPRel() 346 return PICStyle == PICStyles::Style::StubPIC; in isPICStyleStubPIC()
|