/external/clang/unittests/Format/ |
D | FormatTest.cpp | 32 const FormatStyle &Style = getLLVMStyle(), in format() argument 39 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat); in format() 52 FormatStyle Style = getLLVMStyle(); in getLLVMStyleWithColumns() local 53 Style.ColumnLimit = ColumnLimit; in getLLVMStyleWithColumns() 54 return Style; in getLLVMStyleWithColumns() 58 FormatStyle Style = getGoogleStyle(); in getGoogleStyleWithColumns() local 59 Style.ColumnLimit = ColumnLimit; in getGoogleStyleWithColumns() 60 return Style; in getGoogleStyleWithColumns() 64 const FormatStyle &Style = getLLVMStyle()) { in verifyFormat() argument 65 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() 403 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F() local [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::__anone08eefbe0111::FormatTestSelective 57 Style.ColumnLimit = 12; in TEST_F() 102 Style.AllowShortIfStatementsOnASingleLine = true; in TEST_F() 298 Style.AlignEscapedNewlinesLeft = true; in TEST_F() 427 Style.ColumnLimit = 11; in TEST_F() 438 Style.IndentWidth = 8; in TEST_F() 439 Style.UseTab = FormatStyle::UT_Always; in TEST_F() 440 Style.AlignEscapedNewlinesLeft = true; in TEST_F()
|
D | SortIncludesTest.cpp | 26 applyAllReplacements(Code, sortIncludes(Style, Code, Ranges, FileName)); in sort() 28 reformat(Style, Sorted, Ranges, FileName)); in sort() 33 sortIncludes(Style, Code, Ranges, "input.cpp", &Cursor); in newCursor() 37 FormatStyle Style = getLLVMStyle(); member in clang::format::__anond02e1e700111::SortIncludesTest 70 Style.SortIncludes = false; in TEST_F() 142 Style = getGoogleStyle(FormatStyle::LK_Cpp); in TEST_F() 221 Style.IncludeCategories = {{".*important_os_header.*", -1}, {".*", 1}}; in TEST_F()
|
D | FormatTestProto.cpp | 23 unsigned Length, const FormatStyle &Style) { in format() argument 27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format() 35 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Proto); in format() local 36 Style.ColumnLimit = 60; // To make writing tests easier. in format() 37 return format(Code, 0, Code.size(), Style); in format()
|
/external/clang/lib/Format/ |
D | Format.cpp | 183 static void mapping(IO &IO, FormatStyle &Style) { in mapping() 185 IO.mapOptional("Language", Style.Language); in mapping() 194 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) && in mapping() 195 Style == PredefinedStyle) { in mapping() 204 FormatStyle::LanguageKind OldLanguage = Style.Language; in mapping() 207 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) { in mapping() 211 Style.Language = OldLanguage; in mapping() 217 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment); in mapping() 219 Style.IndentWrappedFunctionNames); in mapping() 220 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::__anon620a99a70111::LevelIndentTracker 131 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords, in LineJoiner() argument [all …]
|
D | ContinuationIndenter.cpp | 49 const FormatStyle &Style) { in startsNextParameter() argument 52 Style.BreakConstructorInitializersBeforeComma) in startsNextParameter() 56 !Style.BreakConstructorInitializersBeforeComma); in startsNextParameter() 59 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style, in ContinuationIndenter() argument 65 : Style(Style), Keywords(Keywords), SourceMgr(SourceMgr), in ContinuationIndenter() 68 CommentPragmasRegex(Style.CommentPragmas) {} in ContinuationIndenter() 98 Current.closesBlockOrBlockTypeList(Style))) in canBreak() 129 if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None) in canBreak() 142 Current.closesBlockOrBlockTypeList(Style)) in mustBreak() 146 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() 61 if (Style.Language == FormatStyle::LK_Java && in parseAngle() 74 Style.Language == FormatStyle::LK_Java) { in parseAngle() 264 Style.Language == FormatStyle::LK_Cpp && in parseSquare() 279 } else if (Style.Language == FormatStyle::LK_JavaScript && Parent && in parseSquare() 377 Style.Language != FormatStyle::LK_Cpp)) || in parseBrace() 378 Style.Language == FormatStyle::LK_Proto) && in parseBrace() 382 Style.Language == FormatStyle::LK_JavaScript) in parseBrace() 398 Left->Role.reset(new CommaSeparatedList(Style)); in updateParameterCount() [all …]
|
D | UnwrappedLineParser.cpp | 155 const FormatStyle &Style, unsigned &LineLevel) in CompoundStatementIndenter() argument 157 if (Style.BraceWrapping.AfterControlStatement) in CompoundStatementIndenter() 159 if (Style.BraceWrapping.IndentBraces) in CompoundStatementIndenter() 200 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style, in UnwrappedLineParser() argument 205 CurrentLines(&Lines), Style(Style), Keywords(Keywords), Tokens(nullptr), in UnwrappedLineParser() 258 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript; in parseFile() 299 (Style.IndentCaseLabels || (Line->InPPDirective && Line->Level == 1))) in parseLevel() 341 if (Style.Language == FormatStyle::LK_Proto) { in calculateBraceTypes() 457 static bool ShouldBreakBeforeBrace(const FormatStyle &Style, in ShouldBreakBeforeBrace() argument 460 return Style.BraceWrapping.AfterNamespace; in ShouldBreakBeforeBrace() [all …]
|
D | WhitespaceManager.cpp | 187 static void AlignTokens(const FormatStyle &Style, F &&Matches, in AlignTokens() argument 279 unsigned ChangeMaxColumn = Style.ColumnLimit - LineLengthAfter; in AlignTokens() 297 if (!Style.AlignConsecutiveAssignments) in alignConsecutiveAssignments() 300 AlignTokens(Style, in alignConsecutiveAssignments() 316 if (!Style.AlignConsecutiveDeclarations) in alignConsecutiveDeclarations() 326 AlignTokens(Style, [](Change const &C) { return C.IsStartOfDeclName; }, in alignConsecutiveDeclarations() 344 unsigned ChangeMaxColumn = Style.ColumnLimit - Changes[i].TokenLength; in alignTrailingComments() 364 CommentColumn == NextColumn + Style.IndentWidth; in alignTrailingComments() 369 if (!Style.AlignTrailingComments || FollowsRBraceInColumn0) { in alignTrailingComments() 421 Style.AlignEscapedNewlinesLeft ? 0 : Style.ColumnLimit; in alignEscapedNewlines() [all …]
|
D | BreakableToken.h | 77 const FormatStyle &Style) in BreakableToken() argument 79 Encoding(Encoding), Style(Style) {} in BreakableToken() 85 const FormatStyle &Style; variable 102 const FormatStyle &Style); 123 encoding::Encoding Encoding, const FormatStyle &Style); 141 encoding::Encoding Encoding, const FormatStyle &Style); 168 encoding::Encoding Encoding, const FormatStyle &Style);
|
D | UnwrappedLineFormatter.h | 35 const FormatStyle &Style, in UnwrappedLineFormatter() argument 38 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), in UnwrappedLineFormatter() 66 const FormatStyle &Style; variable
|
D | BreakableToken.cpp | 141 Style.TabWidth, Encoding); in getLineLengthAfterSplit() 147 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableSingleLineToken() argument 148 : BreakableToken(Tok, IndentLevel, InPPDirective, Encoding, Style), in BreakableSingleLineToken() 158 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableStringLiteral() argument 160 InPPDirective, Encoding, Style) {} in BreakableStringLiteral() 167 ColumnLimit, Style.TabWidth, Encoding); in getSplit() 202 bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) in BreakableLineComment() argument 205 InPPDirective, Encoding, Style) { in BreakableLineComment() 222 ColumnLimit, Style.TabWidth, Encoding); in getSplit() 255 encoding::Encoding Encoding, const FormatStyle &Style) in BreakableBlockComment() argument [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | RelativeDateTimeFormatter.java | 77 public static enum Style { enum in RelativeDateTimeFormatter 261 … return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 271 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 294 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 310 Style style, in getInstance() 420 private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) { in getAbsoluteUnitString() 479 public Style getFormatStyle() { in getFormatStyle() 498 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatter() argument 499 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, in RelativeDateTimeFormatter() 503 Style style, in RelativeDateTimeFormatter() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | RelativeDateTimeFormatter.java | 79 public static enum Style { enum in RelativeDateTimeFormatter 295 … return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 306 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 331 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE); in getInstance() 348 Style style, in getInstance() 461 private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) { in getAbsoluteUnitString() 526 public Style getFormatStyle() { in getFormatStyle() 545 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap, in RelativeDateTimeFormatter() argument 546 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap, in RelativeDateTimeFormatter() 550 Style style, in RelativeDateTimeFormatter() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | scientificnumberformatter.h | 144 class U_I18N_API Style : public UObject { 146 virtual Style *clone() const = 0; 159 class U_I18N_API SuperscriptStyle : public Style { 161 virtual Style *clone() const; 172 class U_I18N_API MarkupStyle : public Style { 177 : Style(), in MarkupStyle() 180 virtual Style *clone() const; 196 Style *styleToAdopt, 207 Style *styleToAdopt, 212 Style *fStyle;
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | TimeZoneFormatTest.java | 33 import android.icu.text.TimeZoneFormat.Style; 546 {"Z", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse() 549 {"Z", 0, "en_US", Style.SPECIFIC_LONG, in TestParse() 552 {"Zambia time", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse() 555 {"Zambia time", 0, "en_US", Style.GENERIC_LOCATION, in TestParse() 558 {"Zambia time", 0, "en_US", Style.ISO_BASIC_LOCAL_FULL, in TestParse() 561 {"+00:00", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse() 564 {"-01:30:45", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse() 567 {"-7", 0, "en_US", Style.ISO_BASIC_LOCAL_FULL, in TestParse() 570 {"-2222", 0, "en_US", Style.ISO_BASIC_LOCAL_FULL, in TestParse() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | TimeZoneFormatTest.java | 32 import com.ibm.icu.text.TimeZoneFormat.Style; 542 {"Z", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse() 545 {"Z", 0, "en_US", Style.SPECIFIC_LONG, in TestParse() 548 {"Zambia time", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse() 551 {"Zambia time", 0, "en_US", Style.GENERIC_LOCATION, in TestParse() 554 {"Zambia time", 0, "en_US", Style.ISO_BASIC_LOCAL_FULL, in TestParse() 557 {"+00:00", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse() 560 {"-01:30:45", 0, "en_US", Style.ISO_EXTENDED_FULL, in TestParse() 563 {"-7", 0, "en_US", Style.ISO_BASIC_LOCAL_FULL, in TestParse() 566 {"-2222", 0, "en_US", Style.ISO_BASIC_LOCAL_FULL, in TestParse() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | TrieMapTest.java | 20 import com.ibm.icu.dev.test.util.TrieMap.Style; 123 checkGet(unicodeTestMap, TrieMap.Style.BYTES); in TestGet() 124 checkGet(unicodeTestMap, TrieMap.Style.CHARS); in TestGet() 127 private void checkGet(Map<String, Integer> testmap, TrieMap.Style style) { in checkGet() 149 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5); in TestTimeIteration() 150 timeIteration(unicodeTestMap, comparisonTime, Style.CHARS, 3); in TestTimeIteration() 154 …public long timeIteration(Map<String, Integer> testMap, long comparisonTime, Style style, double r… in timeIteration() 199 checkContents(unicodeTestMap, Style.BYTES); in TestContents() 200 checkContents(unicodeTestMap, Style.CHARS); in TestContents() 203 public void checkContents(Map<String, Integer> testMap, Style style) { in checkContents() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | TrieMapTest.java | 21 import android.icu.dev.test.util.TrieMap.Style; 127 checkGet(unicodeTestMap, TrieMap.Style.BYTES); in TestGet() 128 checkGet(unicodeTestMap, TrieMap.Style.CHARS); in TestGet() 131 private void checkGet(Map<String, Integer> testmap, TrieMap.Style style) { in checkGet() 153 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5); in TestTimeIteration() 154 timeIteration(unicodeTestMap, comparisonTime, Style.CHARS, 3); in TestTimeIteration() 158 …public long timeIteration(Map<String, Integer> testMap, long comparisonTime, Style style, double r… in timeIteration() 203 checkContents(unicodeTestMap, Style.BYTES); in TestContents() 204 checkContents(unicodeTestMap, Style.CHARS); in TestContents() 207 public void checkContents(Map<String, Integer> testMap, Style style) { in checkContents() [all …]
|
/external/skia/include/core/ |
D | SkStrokeRec.h | 23 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1); 26 enum Style { enum 36 Style getStyle() const; 80 Style style = this->getStyle(); in needToApply() 118 void init(const SkPaint&, SkPaint::Style, SkScalar resScale);
|
D | SkTypeface.h | 46 enum Style { enum 63 Style style() const { in style() 64 return static_cast<Style>( in style() 100 static SkTypeface* RefDefault(Style style = SkTypeface::kNormal); 111 static SkTypeface* CreateFromName(const char familyName[], Style style); 123 static SkTypeface* CreateFromTypeface(const SkTypeface* family, Style s); 337 static SkTypeface* GetDefaultTypeface(Style style = SkTypeface::kNormal);
|
/external/skia/include/effects/ |
D | Sk1DPathEffect.h | 44 enum Style { enum 59 static SkPathEffect* Create(const SkPath& path, SkScalar advance, SkScalar phase, Style); 68 SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, Style); 79 Style fStyle; // copied from constructor
|