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

1234567

/external/clang/tools/clang-format/fuzzer/
H A DClangFormatFuzzer.cpp21 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp); local
22 Style.ColumnLimit = 60;
24 Style, s, {clang::tooling::Range(0, s.size())}));
/external/clang/lib/Format/
H A DFormat.cpp201 static void mapping(IO &IO, FormatStyle &Style) { argument
203 IO.mapOptional("Language", Style.Language);
212 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) &&
213 Style == PredefinedStyle) {
222 FormatStyle::LanguageKind OldLanguage = Style.Language;
225 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) {
229 Style.Language = OldLanguage;
235 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment);
237 Style.IndentWrappedFunctionNames);
238 IO.mapOptional("PointerBindsToType", Style
439 expandPresets(const FormatStyle &Style) argument
671 FormatStyle Style = getLLVMStyle(); local
691 FormatStyle Style = getLLVMStyle(); local
711 getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language, FormatStyle *Style) argument
735 parseConfiguration(StringRef Text, FormatStyle *Style) argument
781 configurationAsText(const FormatStyle &Style) argument
796 Formatter(const Environment &Env, const FormatStyle &Style, bool *IncompleteFormat) argument
986 Cleaner(const Environment &Env, const FormatStyle &Style) argument
1216 sortCppIncludes(const FormatStyle &Style, const SmallVectorImpl<IncludeDirective> &Includes, ArrayRef<tooling::Range> Ranges, StringRef FileName, tooling::Replacements &Replaces, unsigned *Cursor) argument
1270 IncludeCategoryManager(const FormatStyle &Style, StringRef FileName) argument
1311 const FormatStyle &Style; member in class:clang::format::__anon1304::IncludeCategoryManager
[all...]
H A DSortJavaScriptImports.h28 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
H A DUnwrappedLineFormatter.h35 const FormatStyle &Style,
38 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style),
66 const FormatStyle &Style; member in class:clang::format::UnwrappedLineFormatter
33 UnwrappedLineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, const AdditionalKeywords &Keywords, bool *IncompleteFormat) argument
H A DUnwrappedLineFormatter.cpp39 LevelIndentTracker(const FormatStyle &Style, argument
42 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) {
44 IndentForLevel.push_back(Style.IndentWidth * i + AdditionalIndent);
59 Indent = Line.Level * Style.IndentWidth + AdditionalIndent;
88 if (Style.Language == FormatStyle::LK_Java ||
89 Style.Language == FormatStyle::LK_JavaScript)
95 return Style.AccessModifierOffset;
109 return getIndent(IndentForLevel, Level - 1) + Style.IndentWidth;
112 const FormatStyle &Style; member in class:clang::format::__anon1306::LevelIndentTracker
131 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords, const SmallVectorImpl<AnnotatedLine *> &Lines) argument
446 const FormatStyle &Style; member in class:clang::format::__anon1306::LineJoiner
475 LineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, UnwrappedLineFormatter *BlockFormatter) argument
567 const FormatStyle &Style; member in class:clang::format::__anon1306::LineFormatter
574 NoColumnLimitLineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, UnwrappedLineFormatter *BlockFormatter) argument
602 NoLineBreakFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, UnwrappedLineFormatter *BlockFormatter) argument
623 OptimizingLineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, UnwrappedLineFormatter *BlockFormatter) argument
[all...]
H A DContinuationIndenter.cpp55 const FormatStyle &Style) {
58 Style.BreakConstructorInitializersBeforeComma)
62 !Style.BreakConstructorInitializersBeforeComma);
65 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style, argument
71 : Style(Style), Keywords(Keywords), SourceMgr(SourceMgr),
74 CommentPragmasRegex(Style.CommentPragmas) {}
104 Current.closesBlockOrBlockTypeList(Style)))
135 if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None)
148 Current.closesBlockOrBlockTypeList(Style))
54 startsNextParameter(const FormatToken &Current, const FormatStyle &Style) argument
[all...]
H A DBreakableToken.h77 const FormatStyle &Style)
79 Encoding(Encoding), Style(Style) {}
85 const FormatStyle &Style; member in class:clang::format::BreakableToken
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);
75 BreakableToken(const FormatToken &Tok, unsigned IndentLevel, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style) argument
H A DWhitespaceManager.h40 WhitespaceManager(const SourceManager &SourceMgr, const FormatStyle &Style, argument
42 : SourceMgr(SourceMgr), Style(Style), UseCRLF(UseCRLF) {}
208 const FormatStyle &Style; member in class:clang::format::WhitespaceManager
H A DTokenAnalyzer.cpp77 TokenAnalyzer::TokenAnalyzer(const Environment &Env, const FormatStyle &Style) argument
78 : Style(Style), Env(Env),
87 DEBUG(llvm::dbgs() << "Language: " << getLanguageName(Style.Language)
93 FormatTokenLexer Tokens(Env.getSourceManager(), Env.getFileID(), Style,
96 UnwrappedLineParser Parser(Style, Tokens.getKeywords(), Tokens.lex(), *this);
103 TokenAnnotator Annotator(Style, Tokens.getKeywords());
H A DUnwrappedLineParser.cpp155 const FormatStyle &Style, unsigned &LineLevel)
157 if (Style.BraceWrapping.AfterControlStatement)
159 if (Style.BraceWrapping.IndentBraces)
200 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style, argument
205 CurrentLines(&Lines), Style(Style), Keywords(Keywords), Tokens(nullptr),
258 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript;
299 (Style.IndentCaseLabels || (Line->InPPDirective && Line->Level == 1)))
335 if (Style.Language == FormatStyle::LK_JavaScript && PrevTok &&
349 if (Style
154 CompoundStatementIndenter(UnwrappedLineParser *Parser, const FormatStyle &Style, unsigned &LineLevel) argument
471 ShouldBreakBeforeBrace(const FormatStyle &Style, const FormatToken &InitialToken) argument
[all...]
/external/clang/unittests/Format/
H A DFormatTestSelective.cpp29 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat);
37 FormatStyle Style = getLLVMStyle(); member in class:clang::format::__anon3335::FormatTestSelective
57 Style.ColumnLimit = 12;
102 Style.AllowShortIfStatementsOnASingleLine = true;
322 Style.AlignEscapedNewlinesLeft = true;
451 Style.ColumnLimit = 11;
462 Style.IndentWidth = 8;
463 Style.UseTab = FormatStyle::UT_Always;
464 Style.AlignEscapedNewlinesLeft = true;
516 Style
[all...]
H A DFormatTestJS.cpp23 unsigned Length, const FormatStyle &Style) {
29 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat);
39 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) {
40 return format(Code, 0, Code.size(), Style);
44 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); local
45 Style.ColumnLimit = ColumnLimit;
46 return Style;
51 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) {
52 std::string Result = format(test::messUp(Code), Style);
59 const FormatStyle &Style
22 format(llvm::StringRef Code, unsigned Offset, unsigned Length, const FormatStyle &Style) argument
104 FormatStyle Style = getGoogleJSStyleWithColumns(80); local
516 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); local
1102 FormatStyle Style = getGoogleJSStyleWithColumns(80); local
[all...]
H A DFormatTest.cpp37 const FormatStyle &Style = getLLVMStyle(),
44 reformat(Style, Code, Ranges, "<stdin>", &IncompleteFormat);
57 FormatStyle Style = getLLVMStyle(); local
58 Style.ColumnLimit = ColumnLimit;
59 return Style;
63 FormatStyle Style = getGoogleStyle(); local
64 Style.ColumnLimit = ColumnLimit;
65 return Style;
69 const FormatStyle &Style = getLLVMStyle()) {
70 EXPECT_EQ(Code.str(), format(test::messUp(Code), Style));
764 FormatStyle Style = getLLVMStyle(); local
1238 FormatStyle Style = getLLVMStyleWithColumns(20); local
2256 FormatStyle Style = getLLVMStyle(); local
2395 FormatStyle Style = getLLVMStyle(); local
2475 FormatStyle Style = getLLVMStyle(); local
3270 FormatStyle Style = getGoogleStyle(); local
3312 FormatStyle Style = getLLVMStyle(); local
3484 FormatStyle Style = getLLVMStyle(); local
3552 FormatStyle Style = getLLVMStyle(); local
3584 FormatStyle Style = getLLVMStyle(); local
3885 FormatStyle Style = getLLVMStyle(); local
3917 FormatStyle Style = getGoogleStyle(); local
4204 FormatStyle Style = getLLVMStyleWithColumns(15); local
4450 FormatStyle Style = getLLVMStyle(); local
4520 FormatStyle Style = getLLVMStyleWithColumns(40); local
4673 FormatStyle Style = getLLVMStyle(); local
4788 FormatStyle Style = getGoogleStyle(); local
4867 FormatStyle Style = getLLVMStyle(); local
5519 FormatStyle Style = getLLVMStyle(); local
6290 FormatStyle Style = getLLVMStyle(); local
7213 FormatStyle Style = getLLVMStyle(); local
8070 FormatStyle Style = getLLVMStyleWithColumns(12); local
8128 FormatStyle Style = getGoogleStyleWithColumns(15); local
8138 FormatStyle Style = getLLVMStyleWithColumns(20); local
8245 FormatStyle Style = getLLVMStyle(); local
10149 FormatStyle Style = {}; local
10205 FormatStyle Style = {}; local
10387 FormatStyle Style = {}; local
10489 FormatStyle Style = {}; local
10510 FormatStyle Style = getLLVMStyle(); local
10643 FormatStyle Style = getLLVMStyle(); local
10677 FormatStyle Style = getLLVMStyle(); local
10759 FormatStyle Style = getWebKitStyle(); local
11481 FormatStyle Style = getLLVMStyle(); local
11554 format::FormatStyle Style = format::getLLVMStyle(); local
11583 format::FormatStyle Style = format::getLLVMStyle(); local
[all...]
H A DSortIncludesTest.cpp30 applyAllReplacements(Code, sortIncludes(Style, Code, Ranges, FileName));
33 *Sorted, reformat(Style, *Sorted, Ranges, FileName));
39 sortIncludes(Style, Code, GetCodeRange(Code), "input.cpp", &Cursor);
43 FormatStyle Style = getLLVMStyle(); member in class:clang::format::__anon3337::SortIncludesTest
64 EXPECT_TRUE(sortIncludes(Style, Code, GetCodeRange(Code), "a.cc").empty());
87 Style.SortIncludes = false;
159 Style = getGoogleStyle(FormatStyle::LK_Cpp);
181 Style.IncludeIsMainRegex = "([-_](test|unittest))?$";
257 Style.IncludeCategories = {{".*important_os_header.*", -1}, {".*", 1}};
H A DFormatTestJava.cpp23 unsigned Length, const FormatStyle &Style) {
27 tooling::Replacements Replaces = reformat(Style, Code, Ranges);
36 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_Java)) {
37 return format(Code, 0, Code.size(), Style);
41 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Java); local
42 Style.ColumnLimit = ColumnLimit;
43 return Style;
48 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_Java)) {
49 EXPECT_EQ(Code.str(), format(test::messUp(Code), Style));
62 FormatStyle Style local
22 format(llvm::StringRef Code, unsigned Offset, unsigned Length, const FormatStyle &Style) argument
236 FormatStyle Style = getStyleWithColumns(65); local
[all...]
H A DFormatTestProto.cpp23 unsigned Length, const FormatStyle &Style) {
27 tooling::Replacements Replaces = reformat(Style, Code, Ranges);
35 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Proto); local
36 Style.ColumnLimit = 60; // To make writing tests easier.
37 return format(Code, 0, Code.size(), Style);
22 format(llvm::StringRef Code, unsigned Offset, unsigned Length, const FormatStyle &Style) argument
/external/icu/icu4c/source/i18n/unicode/
H A Dscientificnumberformatter.h145 class U_I18N_API Style : public UObject { class in class:ScientificNumberFormatter
147 virtual Style *clone() const = 0;
160 class U_I18N_API SuperscriptStyle : public Style {
162 virtual Style *clone() const;
173 class U_I18N_API MarkupStyle : public Style {
178 : Style(),
181 virtual Style *clone() const;
197 Style *styleToAdopt,
208 Style *styleToAdopt,
213 Style *fStyl
[all...]
/external/skia/include/core/
H A DSkStrokeRec.h23 SkStrokeRec(const SkPaint&, SkPaint::Style, SkScalar resScale = 1);
26 enum Style { enum in class:SkStrokeRec
36 Style getStyle() const;
80 Style style = this->getStyle();
115 static SkScalar GetInflationRadius(const SkPaint&, SkPaint::Style);
134 void init(const SkPaint&, SkPaint::Style, SkScalar resScale);
/external/skia/include/effects/
H A DSk1DPathEffect.h44 enum Style { enum in class:SkPath1DPathEffect
59 static sk_sp<SkPathEffect> Make(const SkPath& path, SkScalar advance, SkScalar phase, Style);
68 SkPath1DPathEffect(const SkPath& path, SkScalar advance, SkScalar phase, Style);
79 Style fStyle; // copied from constructor
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/xy/
H A DBarFormatter.java45 fillPaint.setStyle(Paint.Style.FILL);
48 borderPaint.setStyle(Paint.Style.STROKE);
/external/llvm/include/llvm/MC/
H A DMCInstPrinter.h30 enum Style { enum in namespace:llvm::HexStyle
55 HexStyle::Style PrintHexStyle;
92 HexStyle::Style getPrintHexStyle() const { return PrintHexStyle; }
93 void setPrintHexStyle(HexStyle::Style Value) { PrintHexStyle = Value; }
/external/icu/android_icu4j/src/main/java/android/icu/text/
H A DRelativeDateTimeFormatter.java79 public static enum Style { enum in class:RelativeDateTimeFormatter
361 return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE);
371 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE);
394 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE);
410 Style style,
636 private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) {
697 public Style getFormatStyle() {
716 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap,
717 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap,
721 Style styl
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DRelativeDateTimeFormatter.java81 public static enum Style { enum in class:RelativeDateTimeFormatter
411 return getInstance(ULocale.getDefault(), null, Style.LONG, DisplayContext.CAPITALIZATION_NONE);
422 return getInstance(locale, null, Style.LONG, DisplayContext.CAPITALIZATION_NONE);
447 return getInstance(locale, nf, Style.LONG, DisplayContext.CAPITALIZATION_NONE);
464 Style style,
695 private String getAbsoluteUnitString(Style style, AbsoluteUnit unit, Direction direction) {
760 public Style getFormatStyle() {
779 EnumMap<Style, EnumMap<AbsoluteUnit, EnumMap<Direction, String>>> qualitativeUnitMap,
780 EnumMap<Style, EnumMap<RelativeUnit, String[][]>> patternMap,
784 Style styl
[all...]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
H A DTrieMapTest.java27 import android.icu.dev.test.util.TrieMap.Style;
129 checkGet(unicodeTestMap, TrieMap.Style.BYTES);
130 checkGet(unicodeTestMap, TrieMap.Style.CHARS);
133 private void checkGet(Map<String, Integer> testmap, TrieMap.Style style) {
157 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5);
158 timeIteration(unicodeTestMap, comparisonTime, Style.CHARS, 3);
162 public long timeIteration(Map<String, Integer> testMap, long comparisonTime, Style style, double ratioToMap) {
209 checkContents(unicodeTestMap, Style.BYTES);
210 checkContents(unicodeTestMap, Style.CHARS);
213 public void checkContents(Map<String, Integer> testMap, Style styl
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DTrieMapTest.java26 import com.ibm.icu.dev.test.util.TrieMap.Style;
128 checkGet(unicodeTestMap, TrieMap.Style.BYTES);
129 checkGet(unicodeTestMap, TrieMap.Style.CHARS);
132 private void checkGet(Map<String, Integer> testmap, TrieMap.Style style) {
156 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5);
157 timeIteration(unicodeTestMap, comparisonTime, Style.CHARS, 3);
161 public long timeIteration(Map<String, Integer> testMap, long comparisonTime, Style style, double ratioToMap) {
208 checkContents(unicodeTestMap, Style.BYTES);
209 checkContents(unicodeTestMap, Style.CHARS);
212 public void checkContents(Map<String, Integer> testMap, Style styl
[all...]

Completed in 349 milliseconds

1234567