/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | Path.h | 29 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 …]
|
D | FormatProviders.h | 78 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 …]
|
D | Chrono.h | 65 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 …]
|
D | NativeFormatting.h | 26 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/ |
D | FormatProviders.h | 78 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 …]
|
D | NativeFormatting.h | 26 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/ |
D | Format.cpp | 201 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 …]
|
D | UnwrappedLineFormatter.cpp | 39 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::__anon6b20dbb10111::LevelIndentTracker 131 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords, in LineJoiner() argument [all …]
|
D | ContinuationIndenter.cpp | 55 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 …]
|
D | TokenAnnotator.cpp | 35 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/ |
D | NativeFormatting.cpp | 53 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/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | NativeFormatting.cpp | 53 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 …]
|
D | Path.cpp | 38 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 …]
|
D | Chrono.cpp | 55 StringRef Style) { in format() argument 61 if (Style.empty()) Style = "%Y-%m-%d %H:%M:%S.%N"; in format() 64 for (unsigned I = 0; I < Style.size(); ++I) { in format() 65 if (Style[I] == '%' && Style.size() > I + 1) switch (Style[I + 1]) { in format() 86 FStream << Style[I]; in format()
|
/external/clang/unittests/Format/ |
D | FormatTest.cpp | 37 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 …]
|
D | FormatTestJS.cpp | 23 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 …]
|
D | FormatTestJava.cpp | 23 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 …]
|
D | FormatTestSelective.cpp | 29 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat); in format() 37 FormatStyle Style = getLLVMStyle(); member in clang::format::__anon7e1b6d880111::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()
|
D | SortIncludesTest.cpp | 30 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::__anond944607a0111::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/tools/llvm-pdbutil/ |
D | FormatUtil.cpp | 176 #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/google-styleguide/ |
D | README.md | 1 Google Style Guides 9 “Style” 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
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | RelativeDateTimeFormatter.java | 89 public static enum Style { enum in RelativeDateTimeFormatter 509 … return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 519 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 542 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 558 Style style, in getInstance() 923 private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) { in getAbsoluteUnitString() 989 public Style getFormatStyle() { in getFormatStyle() 1014 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatter() argument 1015 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, in RelativeDateTimeFormatter() 1019 Style style, in RelativeDateTimeFormatter() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | RelativeDateTimeFormatter.java | 91 public static enum Style { enum in RelativeDateTimeFormatter 572 … return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 583 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 608 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 625 Style style, in getInstance() 999 private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) { in getAbsoluteUnitString() 1069 public Style getFormatStyle() { in getFormatStyle() 1094 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatter() argument 1095 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, in RelativeDateTimeFormatter() 1099 Style style, in RelativeDateTimeFormatter() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | TrieMapTest.java | 29 import android.icu.dev.test.util.TrieMap.Style; 134 checkGet(unicodeTestMap, TrieMap.Style.BYTES); in TestGet() 135 checkGet(unicodeTestMap, TrieMap.Style.CHARS); in TestGet() 138 private void checkGet(Map<String, Integer> testmap, TrieMap.Style style) { in checkGet() 162 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5); in TestTimeIteration() 163 timeIteration(unicodeTestMap, comparisonTime, Style.CHARS, 3); in TestTimeIteration() 167 …public long timeIteration(Map<String, Integer> testMap, long comparisonTime, Style style, double r… in timeIteration() 216 checkContents(unicodeTestMap, Style.BYTES); in TestContents() 217 checkContents(unicodeTestMap, Style.CHARS); in TestContents() 220 public void checkContents(Map<String, Integer> testMap, Style style) { in checkContents() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | TrieMapTest.java | 28 import com.ibm.icu.dev.test.util.TrieMap.Style; 131 checkGet(unicodeTestMap, TrieMap.Style.BYTES); in TestGet() 132 checkGet(unicodeTestMap, TrieMap.Style.CHARS); in TestGet() 135 private void checkGet(Map<String, Integer> testmap, TrieMap.Style style) { in checkGet() 159 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5); in TestTimeIteration() 160 timeIteration(unicodeTestMap, comparisonTime, Style.CHARS, 3); in TestTimeIteration() 164 …public long timeIteration(Map<String, Integer> testMap, long comparisonTime, Style style, double r… in timeIteration() 213 checkContents(unicodeTestMap, Style.BYTES); in TestContents() 214 checkContents(unicodeTestMap, Style.CHARS); in TestContents() 217 public void checkContents(Map<String, Integer> testMap, Style style) { in checkContents() [all …]
|