Searched refs:Style (Results 1 - 25 of 134) sorted by relevance

123456

/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DPath.h28 enum class Style { windows, posix, native }; class in namespace:llvm::sys::path
58 Style S = Style::native; ///< The path style to use.
61 friend const_iterator begin(StringRef path, Style style);
84 Style S = Style::native; ///< The path style to use.
86 friend reverse_iterator rbegin(StringRef path, Style style);
101 const_iterator begin(StringRef path, Style style = Style::native);
111 reverse_iterator rbegin(StringRef path, Style styl
[all...]
H A DFormatProviders.h77 static bool consumeHexStyle(StringRef &Str, HexPrintStyle &Style) {
82 Style = HexPrintStyle::Lower;
84 Style = HexPrintStyle::Upper;
86 Style = HexPrintStyle::PrefixLower;
88 Style = HexPrintStyle::PrefixUpper;
92 static size_t consumeNumHexDigits(StringRef &Str, HexPrintStyle Style,
95 if (isPrefixedHexStyle(Style))
131 static void format(const T &V, llvm::raw_ostream &Stream, StringRef Style) {
134 if (consumeHexStyle(Style, HS)) {
135 Digits = consumeNumHexDigits(Style, H
[all...]
H A DNativeFormatting.h24 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 DChrono.h72 StringRef Style);
124 static std::pair<InternalRep, StringRef> consumeUnit(StringRef &Style, argument
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"))
142 static bool consumeShowUnit(StringRef &Style) { argument
143 if (Style
154 format(const Dur &D, llvm::raw_ostream &Stream, StringRef Style) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/
H A DNativeFormatting.cpp51 IntegerStyle Style, bool IsNegative) {
63 if (Len < MinDigits && Style != IntegerStyle::Number) {
68 if (Style == IntegerStyle::Number) {
77 IntegerStyle Style, bool IsNegative = false) {
80 write_unsigned_impl(S, static_cast<uint32_t>(N), MinDigits, Style,
83 write_unsigned_impl(S, N, MinDigits, Style, IsNegative);
88 IntegerStyle Style) {
94 write_unsigned(S, static_cast<UnsignedT>(N), MinDigits, Style);
99 write_unsigned(S, UN, MinDigits, Style, true);
103 IntegerStyle Style) {
50 write_unsigned_impl(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative) argument
76 write_unsigned(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative = false) argument
87 write_signed(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style) argument
102 write_integer(raw_ostream &S, unsigned int N, size_t MinDigits, IntegerStyle Style) argument
107 write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style) argument
112 write_integer(raw_ostream &S, unsigned long N, size_t MinDigits, IntegerStyle Style) argument
117 write_integer(raw_ostream &S, long N, size_t MinDigits, IntegerStyle Style) argument
122 write_integer(raw_ostream &S, unsigned long long N, size_t MinDigits, IntegerStyle Style) argument
127 write_integer(raw_ostream &S, long long N, size_t MinDigits, IntegerStyle Style) argument
132 write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style, Optional<size_t> Width) argument
162 write_double(raw_ostream &S, double N, FloatStyle Style, Optional<size_t> Precision) argument
252 getDefaultPrecision(FloatStyle Style) argument
[all...]
H A DChrono.cpp54 StringRef Style) {
60 if (Style.empty()) Style = "%Y-%m-%d %H:%M:%S.%N";
63 for (unsigned I = 0; I < Style.size(); ++I) {
64 if (Style[I] == '%' && Style.size() > I + 1) switch (Style[I + 1]) {
85 FStream << Style[I]; local
53 format(const TimePoint< &T, raw_ostream &OS, StringRef Style) argument
H A DPath.cpp37 using llvm::sys::path::Style;
39 inline Style real_style(Style style) {
41 return (style == Style::posix) ? Style::posix : Style::windows;
43 return (style == Style::windows) ? Style::windows : Style::posix;
47 inline const char *separators(Style styl
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Format/
H A DFormat.cpp370 static void mapping(IO &IO, FormatStyle &Style) { argument
372 IO.mapOptional("Language", Style.Language);
381 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) &&
382 Style == PredefinedStyle) {
391 FormatStyle::LanguageKind OldLanguage = Style.Language;
394 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) {
398 Style.Language = OldLanguage;
404 IO.mapOptional("AlignEscapedNewlinesLeft", Style.AlignEscapedNewlines);
405 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment);
407 Style
702 expandPresets(const FormatStyle &Style) argument
1177 FormatStyle Style = getLLVMStyle(); local
1200 FormatStyle Style = getLLVMStyle(); local
1215 FormatStyle Style = getLLVMStyle(Language); local
1252 getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language, FormatStyle *Style) argument
1278 parseConfiguration(StringRef Text, FormatStyle *Style) argument
1337 configurationAsText(const FormatStyle &Style) argument
1360 Add(FormatStyle Style) argument
1382 JavaScriptRequoter(const Environment &Env, const FormatStyle &Style) argument
1469 Formatter(const Environment &Env, const FormatStyle &Style, FormattingAttemptStatus *Status) argument
1602 TrailingCommaInserter(const Environment &Env, const FormatStyle &Style) argument
1662 Cleaner(const Environment &Env, const FormatStyle &Style) argument
1887 ObjCHeaderStyleGuesser(const Environment &Env, const FormatStyle &Style) argument
2103 sortCppIncludes(const FormatStyle &Style, const SmallVectorImpl<IncludeDirective> &Includes, ArrayRef<tooling::Range> Ranges, StringRef FileName, StringRef Code, tooling::Replacements &Replaces, unsigned *Cursor) argument
[all...]
H A DSortJavaScriptImports.h27 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
H A DUnwrappedLineFormatter.cpp40 LevelIndentTracker(const FormatStyle &Style, argument
43 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) {
45 IndentForLevel.push_back(Style.IndentWidth * i + AdditionalIndent);
60 Indent = Line.Level * Style.IndentWidth + AdditionalIndent;
68 Indent = Line.Level * Style.IndentWidth + Style.ContinuationIndentWidth;
98 if (Style.Language == FormatStyle::LK_Java ||
99 Style.Language == FormatStyle::LK_JavaScript || Style
122 const FormatStyle &Style; member in class:clang::format::__anon1873::LevelIndentTracker
[all...]
H A DContinuationIndenter.cpp30 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style, argument
32 return Style.IndentWrappedFunctionNames || LineType == LT_ObjCMethodDecl;
121 const FormatStyle &Style) {
124 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma)
126 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName))
130 Style.BreakConstructorInitializers !=
133 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma));
137 const FormatStyle &Style) {
140 return Style.Language == FormatStyle::LK_TextProto ||
141 (Style
120 startsNextParameter(const FormatToken &Current, const FormatStyle &Style) argument
136 opensProtoMessageField(const FormatToken &LessTok, const FormatStyle &Style) argument
174 getCanonicalRawStringDelimiter(const FormatStyle &Style, FormatStyle::LanguageKind Language) argument
224 ContinuationIndenter(const FormatStyle &Style, const AdditionalKeywords &Keywords, const SourceManager &SourceMgr, WhitespaceManager &Whitespaces, encoding::Encoding Encoding, bool BinPackInconclusiveFunctions) argument
1145 hasNestedBlockInlined(const FormatToken *Previous, const FormatToken &Current, const FormatStyle &Style) argument
[all...]
H A DFormatInternal.h65 /// with \p Style.
73 reformat(const FormatStyle &Style, StringRef Code,
H A DUnwrappedLineFormatter.h32 const FormatStyle &Style,
36 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style),
67 const FormatStyle &Style; member in class:clang::format::UnwrappedLineFormatter
30 UnwrappedLineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, const AdditionalKeywords &Keywords, const SourceManager &SourceMgr, FormattingAttemptStatus *Status) argument
H A DUsingDeclarationsSorter.h25 UsingDeclarationsSorter(const Environment &Env, const FormatStyle &Style);
H A DUnwrappedLineParser.cpp175 const FormatStyle &Style, unsigned &LineLevel)
177 Style.BraceWrapping.AfterControlStatement,
178 Style.BraceWrapping.IndentBraces) {}
225 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style, argument
231 CurrentLines(&Lines), Style(Style), Keywords(Keywords),
232 CommentPragmasRegex(Style.CommentPragmas), Tokens(nullptr),
234 IncludeGuard(Style.IndentPPDirectives == FormatStyle::PPDIS_None
241 IncludeGuard = Style.IndentPPDirectives == FormatStyle::PPDIS_None
303 !Line->InPPDirective && Style
174 CompoundStatementIndenter(UnwrappedLineParser *Parser, const FormatStyle &Style, unsigned &LineLevel) argument
679 ShouldBreakBeforeBrace(const FormatStyle &Style, const FormatToken &InitialToken) argument
[all...]
H A DTokenAnalyzer.cpp51 TokenAnalyzer::TokenAnalyzer(const Environment &Env, const FormatStyle &Style) argument
52 : Style(Style), Env(Env),
61 LLVM_DEBUG(llvm::dbgs() << "Language: " << getLanguageName(Style.Language)
68 IdentifierTable IdentTable(getFormattingLangOpts(Style));
70 Env.getFirstStartColumn(), Style, Encoding, Allocator,
75 UnwrappedLineParser Parser(Style, Lex.getKeywords(),
84 TokenAnnotator Annotator(Style, Lex.getKeywords());
H A DNamespaceEndCommentsFixer.h35 NamespaceEndCommentsFixer(const Environment &Env, const FormatStyle &Style);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/
H A DDIPrinter.h38 OutputStyle Style; member in class:llvm::symbolize::DIPrinter
46 bool Verbose = false, OutputStyle Style = OutputStyle::LLVM)
49 Verbose(Verbose), Style(Style) {}
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DFormatUtil.cpp175 #define PUSH_CHARACTERISTIC_FLAG(Enum, TheOpt, Value, Style, Descriptive) \
177 ((Style == CharacteristicStyle::HeaderDefinition) ? #TheOpt \
180 #define PUSH_MASKED_CHARACTERISTIC_FLAG(Enum, Mask, TheOpt, Value, Style, \
183 ((Style == CharacteristicStyle::HeaderDefinition) \
191 CharacteristicStyle Style) {
198 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_TYPE_NOLOAD, C, Style, "noload");
199 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_TYPE_NO_PAD, C, Style, "no padding");
200 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_CNT_CODE, C, Style, "code");
201 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_CNT_INITIALIZED_DATA, C, Style,
203 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_CNT_UNINITIALIZED_DATA, C, Style,
187 formatSectionCharacteristics(uint32_t IndentLevel, uint32_t C, uint32_t FlagsPerLine, StringRef Separator, CharacteristicStyle Style) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/source/Utility/
H A DFileSpec.cpp37 static constexpr FileSpec::Style GetNativeStyle() {
39 return FileSpec::Style::windows;
41 return FileSpec::Style::posix;
45 bool PathStyleIsPosix(FileSpec::Style style) {
46 return (style == FileSpec::Style::posix ||
47 (style == FileSpec::Style::native &&
48 GetNativeStyle() == FileSpec::Style::posix));
51 const char *GetPathSeparators(FileSpec::Style style) {
55 char GetPreferredPathSeparator(FileSpec::Style style) {
59 void Denormalize(llvm::SmallVectorImpl<char> &path, FileSpec::Style styl
499 format(const FileSpec &F, raw_ostream &Stream, StringRef Style) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/include/lldb/Utility/
H A DFileSpec.h58 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; }
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)
416 /// Prevent ODR violations with traits for llvm::sys::path::Style
[all...]
H A DState.h70 StringRef Style) {
69 format(const lldb::StateType &state, raw_ostream &Stream, StringRef Style) argument
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DDIERef.cpp13 StringRef Style) {
12 format(const DIERef &ref, raw_ostream &OS, StringRef Style) argument
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DFormatters.h34 void format(raw_ostream &Stream, StringRef Style) override;
52 StringRef Style) {
65 StringRef Style) {
51 format(const codeview::TypeIndex &V, raw_ostream &Stream, StringRef Style) argument
64 format(const codeview::GUID &V, llvm::raw_ostream &Stream, StringRef Style) argument
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Inclusions/
H A DHeaderIncludes.h28 IncludeCategoryManager(const IncludeStyle &Style, StringRef FileName);
40 const IncludeStyle Style; member in class:clang::tooling::IncludeCategoryManager
53 const IncludeStyle &Style);

Completed in 120 milliseconds

123456