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

123456

/freebsd-11-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.h25 size_t getDefaultPrecision(FloatStyle Style);
30 IntegerStyle Style);
31 void write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style);
33 IntegerStyle Style);
35 IntegerStyle Style);
37 IntegerStyle Style);
39 IntegerStyle Style);
41 void write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style,
43 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-11-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-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DNativeFormatting.cpp52 IntegerStyle Style, bool IsNegative) {
64 if (Len < MinDigits && Style != IntegerStyle::Number) {
69 if (Style == IntegerStyle::Number) {
78 IntegerStyle Style, bool IsNegative = false) {
81 write_unsigned_impl(S, static_cast<uint32_t>(N), MinDigits, Style,
84 write_unsigned_impl(S, N, MinDigits, Style, IsNegative);
89 IntegerStyle Style) {
95 write_unsigned(S, static_cast<UnsignedT>(N), MinDigits, Style);
100 write_unsigned(S, UN, MinDigits, Style, true);
104 IntegerStyle Style) {
51 write_unsigned_impl(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative) argument
77 write_unsigned(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative = false) argument
88 write_signed(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style) argument
103 write_integer(raw_ostream &S, unsigned int N, size_t MinDigits, IntegerStyle Style) argument
108 write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style) argument
113 write_integer(raw_ostream &S, unsigned long N, size_t MinDigits, IntegerStyle Style) argument
118 write_integer(raw_ostream &S, long N, size_t MinDigits, IntegerStyle Style) argument
123 write_integer(raw_ostream &S, unsigned long long N, size_t MinDigits, IntegerStyle Style) argument
128 write_integer(raw_ostream &S, long long N, size_t MinDigits, IntegerStyle Style) argument
133 write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style, Optional<size_t> Width) argument
163 write_double(raw_ostream &S, double N, FloatStyle Style, Optional<size_t> Precision) argument
253 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-11-stable/contrib/llvm-project/clang/lib/Format/
H A DFormat.cpp333 static void mapping(IO &IO, FormatStyle &Style) { argument
335 IO.mapOptional("Language", Style.Language);
344 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) &&
345 Style == PredefinedStyle) {
354 FormatStyle::LanguageKind OldLanguage = Style.Language;
357 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) {
361 Style.Language = OldLanguage;
367 IO.mapOptional("AlignEscapedNewlinesLeft", Style.AlignEscapedNewlines);
368 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment);
370 Style
650 expandPresets(const FormatStyle &Style) argument
1061 FormatStyle Style = getLLVMStyle(); local
1084 FormatStyle Style = getLLVMStyle(); local
1099 FormatStyle Style = getLLVMStyle(Language); local
1133 getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language, FormatStyle *Style) argument
1159 parseConfiguration(StringRef Text, FormatStyle *Style) argument
1213 configurationAsText(const FormatStyle &Style) argument
1236 Add(FormatStyle Style) argument
1258 JavaScriptRequoter(const Environment &Env, const FormatStyle &Style) argument
1345 Formatter(const Environment &Env, const FormatStyle &Style, FormattingAttemptStatus *Status) argument
1469 Cleaner(const Environment &Env, const FormatStyle &Style) argument
1694 ObjCHeaderStyleGuesser(const Environment &Env, const FormatStyle &Style) argument
1910 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;
96 if (Style.Language == FormatStyle::LK_Java ||
97 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp())
103 return Style.AccessModifierOffset;
117 return getIndent(IndentForLevel, Level - 1) + Style
120 const FormatStyle &Style; member in class:clang::format::__anon491::LevelIndentTracker
[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 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
[all...]
H A DNamespaceEndCommentsFixer.h35 NamespaceEndCommentsFixer(const Environment &Env, const FormatStyle &Style);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/
H A DDIPrinter.h38 OutputStyle Style; member in class:llvm::symbolize::DIPrinter
47 OutputStyle Style = OutputStyle::LLVM)
50 Verbose(Verbose), Basenames(Basenames), Style(Style) {}
/freebsd-11-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-11-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-11-stable/contrib/llvm-project/lldb/include/lldb/Utility/
H A DFileSpec.h57 using Style = llvm::sys::path::Style;
74 explicit FileSpec(llvm::StringRef path, Style style = Style::native);
197 static llvm::Optional<Style> GuessPathStyle(llvm::StringRef absolute_path);
204 bool IsCaseSensitive() const { return m_style != Style::windows; }
216 Style GetPathStyle() const;
351 void SetFile(llvm::StringRef path, Style style);
407 Style m_style; ///< The syntax that this path uses (e.g. Windows / Posix)
437 StringRef Style);
[all...]
H A DState.h70 StringRef Style) {
69 format(const lldb::StateType &state, raw_ostream &Stream, StringRef Style) argument
/freebsd-11-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-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DGsymCreator.h178 /// \param Style The path style for the "Path" parameter.
181 sys::path::Style Style = sys::path::Style::native);
/freebsd-11-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);
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp39 StringRef FileName, StringRef Code, const IncludeStyle &Style,
81 const IncludeStyle &Style) {
89 FileName, Code, Style,
156 const IncludeStyle &Style) {
158 FileName, Code, Style,
177 IncludeCategoryManager::IncludeCategoryManager(const IncludeStyle &Style,
179 : Style(Style), FileName(FileName) {
181 for (const auto &Category : Style.IncludeCategories)
187 if (!Style
38 getOffsetAfterTokenSequence( StringRef FileName, StringRef Code, const IncludeStyle &Style, llvm::function_ref<unsigned(const SourceManager &, Lexer &, Token &)> GetOffsetAfterSequence) argument
79 getOffsetAfterHeaderGuardsAndComments(StringRef FileName, StringRef Code, const IncludeStyle &Style) argument
155 getMaxHeaderInsertionOffset(StringRef FileName, StringRef Code, const IncludeStyle &Style) argument
[all...]

Completed in 166 milliseconds

123456