HomeSort by relevance Sort by last modified time
    Searched refs:FormatStyle (Results 1 - 24 of 24) sorted by null

  /external/clang/lib/Format/
Format.cpp 37 using clang::format::FormatStyle;
40 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::format::FormatStyle::IncludeCategory)
44 template <> struct ScalarEnumerationTraits<FormatStyle::LanguageKind> {
45 static void enumeration(IO &IO, FormatStyle::LanguageKind &Value) {
46 IO.enumCase(Value, "Cpp", FormatStyle::LK_Cpp);
47 IO.enumCase(Value, "Java", FormatStyle::LK_Java);
48 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript);
49 IO.enumCase(Value, "Proto", FormatStyle::LK_Proto);
53 template <> struct ScalarEnumerationTraits<FormatStyle::LanguageStandard> {
54 static void enumeration(IO &IO, FormatStyle::LanguageStandard &Value)
    [all...]
UnwrappedLineFormatter.h 35 const FormatStyle &Style,
66 const FormatStyle &Style;
BreakableToken.h 28 struct FormatStyle;
77 const FormatStyle &Style)
85 const FormatStyle &Style;
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);
UnwrappedLineParser.h 63 UnwrappedLineParser(const FormatStyle &Style,
160 const FormatStyle &Style;
WhitespaceManager.h 40 WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style,
203 const FormatStyle &Style;
UnwrappedLineParser.cpp 155 const FormatStyle &Style, unsigned &LineLevel)
200 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style,
258 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript;
341 if (Style.Language == FormatStyle::LK_Proto) {
457 static bool ShouldBreakBeforeBrace(const FormatStyle &Style,
475 Style.Language == FormatStyle::LK_JavaScript && isGoogScope(*Line);
727 if (Style.Language == FormatStyle::LK_Java ||
728 Style.Language == FormatStyle::LK_JavaScript)
769 if (Style.Language == FormatStyle::LK_JavaScript) {
784 if (Style.Language == FormatStyle::LK_JavaScript &
    [all...]
TokenAnnotator.cpp 35 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,
61 if (Style.Language == FormatStyle::LK_Java &&
74 Style.Language == FormatStyle::LK_Java) {
264 Style.Language == FormatStyle::LK_Cpp &&
279 } else if (Style.Language == FormatStyle::LK_JavaScript && Parent &&
377 Style.Language != FormatStyle::LK_Cpp)) ||
378 Style.Language == FormatStyle::LK_Proto) &&
382 Style.Language == FormatStyle::LK_JavaScript)
444 if (Style.Language == FormatStyle::LK_JavaScript) {
573 if (Style.Language == FormatStyle::LK_JavaScript && Tok->Next &
    [all...]
UnwrappedLineFormatter.cpp 39 LevelIndentTracker(const FormatStyle &Style,
88 if (Style.Language == FormatStyle::LK_Java ||
89 Style.Language == FormatStyle::LK_JavaScript)
112 const FormatStyle &Style;
131 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords,
191 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_All ||
192 (Style.AllowShortFunctionsOnASingleLine >= FormatStyle::SFS_Empty &&
194 (Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Inline &&
326 if (Style.Language != FormatStyle::LK_Java &&
446 const FormatStyle &Style
    [all...]
ContinuationIndenter.h 39 ContinuationIndenter(const FormatStyle &Style,
138 FormatStyle Style;
TokenAnnotator.h 143 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords)
174 const FormatStyle &Style;
FormatToken.h 415 bool opensBlockOrBlockTypeList(const FormatStyle &Style) const {
423 bool closesBlockOrBlockTypeList(const FormatStyle &Style) const {
438 TokenRole(const FormatStyle &Style) : Style(Style) {}
469 const FormatStyle &Style;
474 CommaSeparatedList(const FormatStyle &Style)
ContinuationIndenter.cpp 49 const FormatStyle &Style) {
59 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style,
129 if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None)
165 ((Style.AllowShortFunctionsOnASingleLine != FormatStyle::SFS_All) ||
334 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak &&
340 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign &&
350 if (Current.is(TT_LambdaArrow) && Style.Language == FormatStyle::LK_Java)
447 if (Style.Language != FormatStyle::LK_JavaScript ||
517 Style.Language != FormatStyle::LK_Cpp &&
569 if (Style.Language == FormatStyle::LK_Java &
    [all...]
BreakableToken.cpp 147 encoding::Encoding Encoding, const FormatStyle &Style)
158 encoding::Encoding Encoding, const FormatStyle &Style)
202 bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style)
255 encoding::Encoding Encoding, const FormatStyle &Style)
WhitespaceManager.cpp 187 static void AlignTokens(const FormatStyle &Style, F &&Matches,
511 case FormatStyle::UT_Never:
514 case FormatStyle::UT_Always: {
526 case FormatStyle::UT_ForIndentation:
FormatToken.cpp 158 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign)
  /external/clang/unittests/Format/
FormatTest.cpp 21 FormatStyle getGoogleStyle() { return getGoogleStyle(FormatStyle::LK_Cpp); }
32 const FormatStyle &Style = getLLVMStyle(),
51 FormatStyle getLLVMStyleWithColumns(unsigned ColumnLimit) {
52 FormatStyle Style = getLLVMStyle();
57 FormatStyle getGoogleStyleWithColumns(unsigned ColumnLimit) {
58 FormatStyle Style = getGoogleStyle();
64 const FormatStyle &Style = getLLVMStyle()) {
69 const FormatStyle &Style = getLLVMStyle()) {
85 const FormatStyle &Style = getLLVMStyle())
    [all...]
FormatTestJava.cpp 23 unsigned Length, const FormatStyle &Style) {
36 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_Java)) {
40 static FormatStyle getStyleWithColumns(unsigned ColumnLimit) {
41 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Java);
48 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_Java)) {
62 FormatStyle Style = getStyleWithColumns(50);
66 Style.BreakBeforeBinaryOperators = FormatStyle::BOS_None
    [all...]
FormatTestJS.cpp 23 unsigned Length, const FormatStyle &Style) {
39 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) {
43 static FormatStyle getGoogleJSStyleWithColumns(unsigned ColumnLimit) {
44 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript);
51 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) {
228 getChromiumStyle(FormatStyle::LK_JavaScript));
403 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript)
    [all...]
FormatTestProto.cpp 23 unsigned Length, const FormatStyle &Style) {
35 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Proto);
FormatTestSelective.cpp 37 FormatStyle Style = getLLVMStyle();
439 Style.UseTab = FormatStyle::UT_Always;
SortIncludesTest.cpp 37 FormatStyle Style = getLLVMStyle();
142 Style = getGoogleStyle(FormatStyle::LK_Cpp);
  /external/clang/tools/clang-format/fuzzer/
ClangFormatFuzzer.cpp 21 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp);
  /external/clang/include/clang/Format/
Format.h 40 /// \brief The \c FormatStyle is used to configure the formatting to follow
42 struct FormatStyle {
589 bool operator==(const FormatStyle &R) const {
670 FormatStyle getLLVMStyle();
676 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language);
680 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language);
684 FormatStyle getMozillaStyle();
688 FormatStyle getWebKitStyle()
    [all...]
  /external/clang/tools/clang-format/
ClangFormat.cpp 254 FormatStyle FormatStyle = getStyle(Style, AssumedFileName, FallbackStyle);
256 FormatStyle.SortIncludes = SortIncludes;
258 Replacements Replaces = sortIncludes(FormatStyle, Code->getBuffer(), Ranges,
266 Replacements FormatChanges = reformat(FormatStyle, ChangedCode, Ranges,

Completed in 85 milliseconds