Home
last modified time | relevance | path

Searched refs:Style (Results 1 – 25 of 474) sorted by relevance

12345678910>>...19

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DPath.h29 enum class Style { windows, posix, native }; enum
59 Style S; ///< The path style to use.
62 friend const_iterator begin(StringRef path, Style style);
85 Style S; ///< The path style to use.
87 friend reverse_iterator rbegin(StringRef path, Style style);
102 const_iterator begin(StringRef path, Style style = Style::native);
112 reverse_iterator rbegin(StringRef path, Style style = Style::native);
133 void remove_filename(SmallVectorImpl<char> &path, Style style = Style::native);
148 Style style = Style::native);
165 Style style = Style::native);
[all …]
DFormatProviders.h78 static bool consumeHexStyle(StringRef &Str, HexPrintStyle &Style) { in consumeHexStyle() argument
83 Style = HexPrintStyle::Lower; in consumeHexStyle()
85 Style = HexPrintStyle::Upper; in consumeHexStyle()
87 Style = HexPrintStyle::PrefixLower; in consumeHexStyle()
89 Style = HexPrintStyle::PrefixUpper; in consumeHexStyle()
93 static size_t consumeNumHexDigits(StringRef &Str, HexPrintStyle Style, in consumeNumHexDigits() argument
96 if (isPrefixedHexStyle(Style)) in consumeNumHexDigits()
132 static void format(const T &V, llvm::raw_ostream &Stream, StringRef Style) {
135 if (consumeHexStyle(Style, HS)) {
136 Digits = consumeNumHexDigits(Style, HS, 0);
[all …]
DChrono.h65 StringRef Style);
117 static std::pair<InternalRep, StringRef> consumeUnit(StringRef &Style,
120 if (Style.consume_front("ns"))
122 if (Style.consume_front("us"))
124 if (Style.consume_front("ms"))
126 if (Style.consume_front("s"))
128 if (Style.consume_front("m"))
130 if (Style.consume_front("h"))
135 static bool consumeShowUnit(StringRef &Style) {
136 if (Style.empty())
[all …]
DNativeFormatting.h26 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,
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DFormatProviders.h78 static bool consumeHexStyle(StringRef &Str, HexPrintStyle &Style) { in consumeHexStyle() argument
83 Style = HexPrintStyle::Lower; in consumeHexStyle()
85 Style = HexPrintStyle::Upper; in consumeHexStyle()
87 Style = HexPrintStyle::PrefixLower; in consumeHexStyle()
89 Style = HexPrintStyle::PrefixUpper; in consumeHexStyle()
93 static size_t consumeNumHexDigits(StringRef &Str, HexPrintStyle Style, in consumeNumHexDigits() argument
96 if (isPrefixedHexStyle(Style)) in consumeNumHexDigits()
132 static void format(const T &V, llvm::raw_ostream &Stream, StringRef Style) {
135 if (consumeHexStyle(Style, HS)) {
136 Digits = consumeNumHexDigits(Style, HS, 0);
[all …]
DNativeFormatting.h26 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,
/external/clang/lib/Format/
DFormat.cpp201 static void mapping(IO &IO, FormatStyle &Style) { in mapping()
203 IO.mapOptional("Language", Style.Language); in mapping()
212 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) && in mapping()
213 Style == PredefinedStyle) { in mapping()
222 FormatStyle::LanguageKind OldLanguage = Style.Language; in mapping()
225 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) { in mapping()
229 Style.Language = OldLanguage; in mapping()
235 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment); in mapping()
237 Style.IndentWrappedFunctionNames); in mapping()
238 IO.mapOptional("PointerBindsToType", Style.PointerAlignment); in mapping()
[all …]
DUnwrappedLineFormatter.cpp39 LevelIndentTracker(const FormatStyle &Style, in LevelIndentTracker() argument
42 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) { in LevelIndentTracker()
44 IndentForLevel.push_back(Style.IndentWidth * i + AdditionalIndent); in LevelIndentTracker()
59 Indent = Line.Level * Style.IndentWidth + AdditionalIndent; in nextLine()
88 if (Style.Language == FormatStyle::LK_Java || in getIndentOffset()
89 Style.Language == FormatStyle::LK_JavaScript) in getIndentOffset()
95 return Style.AccessModifierOffset; in getIndentOffset()
109 return getIndent(IndentForLevel, Level - 1) + Style.IndentWidth; in getIndent()
112 const FormatStyle &Style; member in clang::format::__anonf162ad6f0111::LevelIndentTracker
131 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords, in LineJoiner() argument
[all …]
DContinuationIndenter.cpp55 const FormatStyle &Style) { in startsNextParameter() argument
58 Style.BreakConstructorInitializersBeforeComma) in startsNextParameter()
62 !Style.BreakConstructorInitializersBeforeComma); in startsNextParameter()
65 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style, in ContinuationIndenter() argument
71 : Style(Style), Keywords(Keywords), SourceMgr(SourceMgr), in ContinuationIndenter()
74 CommentPragmasRegex(Style.CommentPragmas) {} in ContinuationIndenter()
104 Current.closesBlockOrBlockTypeList(Style))) in canBreak()
135 if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None) in canBreak()
148 Current.closesBlockOrBlockTypeList(Style)) in mustBreak()
152 if ((startsNextParameter(Current, Style) || Previous.is(tok::semi) || in mustBreak()
[all …]
DTokenAnnotator.cpp35 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser() argument
37 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false), in AnnotatingParser()
74 if (Style.Language == FormatStyle::LK_Java && in parseAngle()
87 Style.Language == FormatStyle::LK_Java) { in parseAngle()
137 } else if (Style.Language == FormatStyle::LK_JavaScript && in parseParens()
148 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseParens()
154 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseParens()
309 Style.Language == FormatStyle::LK_Cpp && in parseSquare()
324 } else if (Style.Language == FormatStyle::LK_JavaScript && Parent && in parseSquare()
328 } else if (Style.Language == FormatStyle::LK_Proto || in parseSquare()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DNativeFormatting.cpp53 IntegerStyle Style, bool IsNegative) { in write_unsigned_impl() argument
65 if (Len < MinDigits && Style != IntegerStyle::Number) { in write_unsigned_impl()
70 if (Style == IntegerStyle::Number) { in write_unsigned_impl()
79 IntegerStyle Style, bool IsNegative = false) { in write_unsigned() argument
82 write_unsigned_impl(S, static_cast<uint32_t>(N), MinDigits, Style, in write_unsigned()
85 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); in write_unsigned()
90 IntegerStyle Style) { in write_signed() argument
96 write_unsigned(S, static_cast<UnsignedT>(N), MinDigits, Style); in write_signed()
101 write_unsigned(S, UN, MinDigits, Style, true); in write_signed()
105 IntegerStyle Style) { in write_integer() argument
[all …]
/external/clang/unittests/Format/
DFormatTest.cpp37 const FormatStyle &Style = getLLVMStyle(), in format() argument
44 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat); in format()
57 FormatStyle Style = getLLVMStyle(); in getLLVMStyleWithColumns() local
58 Style.ColumnLimit = ColumnLimit; in getLLVMStyleWithColumns()
59 return Style; in getLLVMStyleWithColumns()
63 FormatStyle Style = getGoogleStyle(); in getGoogleStyleWithColumns() local
64 Style.ColumnLimit = ColumnLimit; in getGoogleStyleWithColumns()
65 return Style; in getGoogleStyleWithColumns()
69 const FormatStyle &Style = getLLVMStyle()) { in verifyFormat() argument
70 EXPECT_EQ(Code.str(), format(test::messUp(Code), Style)); in verifyFormat()
[all …]
DFormatTestJS.cpp23 unsigned Length, const FormatStyle &Style) { in format() argument
29 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat); in format()
39 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in format() argument
40 return format(Code, 0, Code.size(), Style); in format()
44 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in getGoogleJSStyleWithColumns() local
45 Style.ColumnLimit = ColumnLimit; in getGoogleJSStyleWithColumns()
46 return Style; in getGoogleJSStyleWithColumns()
51 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in verifyFormat() argument
52 std::string Result = format(test::messUp(Code), Style); in verifyFormat()
59 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in verifyFormat() argument
[all …]
DFormatTestJava.cpp23 unsigned Length, const FormatStyle &Style) { in format() argument
27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format()
36 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_Java)) { in format() argument
37 return format(Code, 0, Code.size(), Style); in format()
41 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Java); in getStyleWithColumns() local
42 Style.ColumnLimit = ColumnLimit; in getStyleWithColumns()
43 return Style; in getStyleWithColumns()
48 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_Java)) { in verifyFormat() argument
49 EXPECT_EQ(Code.str(), format(test::messUp(Code), Style)); in verifyFormat()
62 FormatStyle Style = getStyleWithColumns(50); in TEST_F() local
[all …]
DFormatTestSelective.cpp29 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat); in format()
37 FormatStyle Style = getLLVMStyle(); member in clang::format::__anon5bbfce860111::FormatTestSelective
57 Style.ColumnLimit = 12; in TEST_F()
102 Style.AllowShortIfStatementsOnASingleLine = true; in TEST_F()
322 Style.AlignEscapedNewlinesLeft = true; in TEST_F()
451 Style.ColumnLimit = 11; in TEST_F()
462 Style.IndentWidth = 8; in TEST_F()
463 Style.UseTab = FormatStyle::UT_Always; in TEST_F()
464 Style.AlignEscapedNewlinesLeft = true; in TEST_F()
516 Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
DSortIncludesTest.cpp30 applyAllReplacements(Code, sortIncludes(Style, Code, Ranges, FileName)); in sort()
33 *Sorted, reformat(Style, *Sorted, Ranges, FileName)); in sort()
39 sortIncludes(Style, Code, GetCodeRange(Code), "input.cpp", &Cursor); in newCursor()
43 FormatStyle Style = getLLVMStyle(); member in clang::format::__anon5f8632380111::SortIncludesTest
64 EXPECT_TRUE(sortIncludes(Style, Code, GetCodeRange(Code), "a.cc").empty()); in TEST_F()
87 Style.SortIncludes = false; in TEST_F()
159 Style = getGoogleStyle(FormatStyle::LK_Cpp); in TEST_F()
181 Style.IncludeIsMainRegex = "([-_](test|unittest))?$"; in TEST_F()
257 Style.IncludeCategories = {{".*important_os_header.*", -1}, {".*", 1}}; in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DNativeFormatting.cpp53 IntegerStyle Style, bool IsNegative) { in write_unsigned_impl() argument
65 if (Len < MinDigits && Style != IntegerStyle::Number) { in write_unsigned_impl()
70 if (Style == IntegerStyle::Number) { in write_unsigned_impl()
79 IntegerStyle Style, bool IsNegative = false) { in write_unsigned() argument
82 write_unsigned_impl(S, static_cast<uint32_t>(N), MinDigits, Style, in write_unsigned()
85 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); in write_unsigned()
90 IntegerStyle Style) { in write_signed() argument
96 write_unsigned(S, static_cast<UnsignedT>(N), MinDigits, Style); in write_signed()
101 write_unsigned(S, UN, MinDigits, Style, true); in write_signed()
105 IntegerStyle Style) { in write_integer() argument
[all …]
DPath.cpp38 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()
48 inline const char *separators(Style style) { in separators()
49 if (real_style(style) == Style::windows) in separators()
54 inline char preferred_separator(Style style) { in preferred_separator()
55 if (real_style(style) == Style::windows) in preferred_separator()
60 StringRef find_first_component(StringRef path, Style style) { in find_first_component()
70 if (real_style(style) == Style::windows) { in find_first_component()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/
DFormatUtil.cpp176 #define PUSH_CHARACTERISTIC_FLAG(Enum, TheOpt, Value, Style, Descriptive) \ argument
178 ((Style == CharacteristicStyle::HeaderDefinition) ? #TheOpt \
181 #define PUSH_MASKED_CHARACTERISTIC_FLAG(Enum, Mask, TheOpt, Value, Style, \ argument
184 ((Style == CharacteristicStyle::HeaderDefinition) \
192 CharacteristicStyle Style) { in formatSectionCharacteristics() argument
199 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_TYPE_NOLOAD, C, Style, "noload"); in formatSectionCharacteristics()
200 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_TYPE_NO_PAD, C, Style, "no padding"); in formatSectionCharacteristics()
201 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_CNT_CODE, C, Style, "code"); in formatSectionCharacteristics()
202 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_CNT_INITIALIZED_DATA, C, Style, in formatSectionCharacteristics()
204 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_CNT_UNINITIALIZED_DATA, C, Style, in formatSectionCharacteristics()
[all …]
/external/v8/src/objects/
Djs-relative-time-format.cc29 JSRelativeTimeFormat::Style style) { in getIcuStyle()
31 case JSRelativeTimeFormat::Style::LONG: in getIcuStyle()
33 case JSRelativeTimeFormat::Style::SHORT: in getIcuStyle()
35 case JSRelativeTimeFormat::Style::NARROW: in getIcuStyle()
37 case JSRelativeTimeFormat::Style::COUNT: in getIcuStyle()
43 JSRelativeTimeFormat::Style JSRelativeTimeFormat::getStyle(const char* str) { in getStyle()
44 if (strcmp(str, "long") == 0) return JSRelativeTimeFormat::Style::LONG; in getStyle()
45 if (strcmp(str, "short") == 0) return JSRelativeTimeFormat::Style::SHORT; in getStyle()
46 if (strcmp(str, "narrow") == 0) return JSRelativeTimeFormat::Style::NARROW; in getStyle()
103 Style style_enum = Style::LONG; in InitializeRelativeTimeFormat()
[all …]
Djs-list-format.cc35 const char* GetIcuStyleString(JSListFormat::Style style, in GetIcuStyleString()
40 case JSListFormat::Style::LONG: in GetIcuStyleString()
42 case JSListFormat::Style::SHORT: in GetIcuStyleString()
44 case JSListFormat::Style::NARROW: in GetIcuStyleString()
53 case JSListFormat::Style::COUNT: in GetIcuStyleString()
65 case JSListFormat::Style::LONG: in GetIcuStyleString()
66 case JSListFormat::Style::SHORT: in GetIcuStyleString()
67 case JSListFormat::Style::NARROW: in GetIcuStyleString()
69 case JSListFormat::Style::COUNT: in GetIcuStyleString()
74 case JSListFormat::Style::LONG: in GetIcuStyleString()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRelativeDateTimeFormatter.java80 public static enum Style { enum in RelativeDateTimeFormatter
346 … return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
356 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
379 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
395 Style style, in getInstance()
619 private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) { in getAbsoluteUnitString()
685 public Style getFormatStyle() { in getFormatStyle()
704 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatter() argument
705 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, in RelativeDateTimeFormatter()
709 Style style, in RelativeDateTimeFormatter()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRelativeDateTimeFormatter.java82 public static enum Style { enum in RelativeDateTimeFormatter
396 … return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
407 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
432 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance()
449 Style style, in getInstance()
678 private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) { in getAbsoluteUnitString()
748 public Style getFormatStyle() { in getFormatStyle()
767 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatter() argument
768 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, in RelativeDateTimeFormatter()
772 Style style, in RelativeDateTimeFormatter()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dscientificnumberformatter.h144 class U_I18N_API Style : public UObject {
146 virtual Style *clone() const = 0;
158 class U_I18N_API SuperscriptStyle : public Style {
160 virtual Style *clone() const;
170 class U_I18N_API MarkupStyle : public Style {
175 : Style(), in MarkupStyle()
178 virtual Style *clone() const;
193 Style *styleToAdopt,
204 Style *styleToAdopt,
209 Style *fStyle;
/external/google-styleguide/
DREADME.md1 Google Style Guides
9Style” covers a lot of ground, from “use camelCase for variable names” to
16 This project holds the [C++ Style Guide][cpp], [Objective-C Style Guide][objc],
17 [Java Style Guide][java], [Python Style Guide][py], [R Style Guide][r],
18 [Shell Style Guide][sh], [HTML/CSS Style Guide][htmlcss],
19 [JavaScript Style Guide][js], [AngularJS Style Guide][angular],
20 [Common Lisp Style Guide][cl], and [Vimscript Style Guide][vim]. This project
25 Document Format Style Guide][xml] may be helpful. In addition to actual style

12345678910>>...19