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

  /external/clang/lib/Format/
Format.cpp 36 using clang::format::FormatStyle;
42 template <> struct ScalarEnumerationTraits<FormatStyle::LanguageKind> {
43 static void enumeration(IO &IO, FormatStyle::LanguageKind &Value) {
44 IO.enumCase(Value, "Cpp", FormatStyle::LK_Cpp);
45 IO.enumCase(Value, "Java", FormatStyle::LK_Java);
46 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript);
47 IO.enumCase(Value, "Proto", FormatStyle::LK_Proto);
51 template <> struct ScalarEnumerationTraits<FormatStyle::LanguageStandard> {
52 static void enumeration(IO &IO, FormatStyle::LanguageStandard &Value) {
53 IO.enumCase(Value, "Cpp03", FormatStyle::LS_Cpp03)
    [all...]
UnwrappedLineFormatter.h 35 const FormatStyle &Style,
80 if (Style.Language == FormatStyle::LK_Java ||
81 Style.Language == FormatStyle::LK_JavaScript)
159 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.cpp 159 const FormatStyle &Style, unsigned &LineLevel)
161 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman) {
163 } else if (Style.BreakBeforeBraces == FormatStyle::BS_GNU) {
206 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style,
339 if (Style.Language == FormatStyle::LK_Proto) {
441 static bool ShouldBreakBeforeBrace(const FormatStyle &Style,
444 case FormatStyle::BS_Linux:
446 case FormatStyle::BS_Allman:
447 case FormatStyle::BS_GNU:
459 Style.Language == FormatStyle::LK_JavaScript && isGoogScope(*Line)
    [all...]
UnwrappedLineParser.h 63 UnwrappedLineParser(const FormatStyle &Style,
165 const FormatStyle &Style;
WhitespaceManager.h 40 WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style,
196 const FormatStyle &Style;
TokenAnnotator.cpp 34 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,
54 if (Style.Language == FormatStyle::LK_Java &&
67 Style.Language == FormatStyle::LK_Java) {
312 Style.Language != FormatStyle::LK_Proto &&
350 Style.Language == FormatStyle::LK_Proto) &&
354 Style.Language == FormatStyle::LK_JavaScript)
367 (Style.Language == FormatStyle::LK_JavaScript &&
420 if (Style.Language == FormatStyle::LK_JavaScript) {
531 if (Style.Language == FormatStyle::LK_JavaScript && Tok->Next &&
645 if ((Style.Language == FormatStyle::LK_Java &
    [all...]
TokenAnnotator.h 116 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords)
145 const FormatStyle &Style;
FormatToken.h 397 bool opensBlockTypeList(const FormatStyle &Style) const {
405 bool closesBlockTypeList(const FormatStyle &Style) const {
435 TokenRole(const FormatStyle &Style) : Style(Style) {}
466 const FormatStyle &Style;
471 CommaSeparatedList(const FormatStyle &Style)
ContinuationIndenter.h 39 ContinuationIndenter(const FormatStyle &Style,
138 FormatStyle Style;
UnwrappedLineFormatter.cpp 30 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords)
65 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_All ||
66 (Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Empty &&
68 (Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Inline &&
76 return Style.BreakBeforeBraces == FormatStyle::BS_Attach
81 Style.BreakBeforeBraces != FormatStyle::BS_Attach) {
141 if ((Style.BreakBeforeBraces == FormatStyle::BS_Allman ||
142 Style.BreakBeforeBraces == FormatStyle::BS_GNU) &&
200 if (Style.Language != FormatStyle::LK_Java &&
300 const FormatStyle &Style
    [all...]
WhitespaceManager.cpp 325 case FormatStyle::UT_Never:
328 case FormatStyle::UT_Always: {
340 case FormatStyle::UT_ForIndentation:
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)
254 encoding::Encoding Encoding, const FormatStyle &Style)
ContinuationIndenter.cpp 49 const FormatStyle &Style) {
59 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style,
166 ((Style.AllowShortFunctionsOnASingleLine != FormatStyle::SFS_All) ||
172 if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None) {
524 if (Style.Language == FormatStyle::LK_Java &&
740 (Style.Language != FormatStyle::LK_Java && *I > 0)) &
    [all...]
  /external/clang/include/clang/Format/
Format.h 40 /// \brief The \c FormatStyle is used to configure the formatting to follow
42 struct FormatStyle {
411 bool operator==(const FormatStyle &R) const {
482 FormatStyle getLLVMStyle();
488 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language);
492 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language);
496 FormatStyle getMozillaStyle();
500 FormatStyle getWebKitStyle()
    [all...]
  /external/clang/unittests/Format/
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) {
36 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) {
40 static FormatStyle getGoogleJSStyleWithColumns(unsigned ColumnLimit) {
41 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript);
48 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) {
186 getChromiumStyle(FormatStyle::LK_JavaScript));
313 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript)
    [all...]
FormatTest.cpp 20 FormatStyle getGoogleStyle() {
21 return getGoogleStyle(FormatStyle::LK_Cpp);
27 const FormatStyle &Style) {
40 format(llvm::StringRef Code, const FormatStyle &Style = getLLVMStyle()) {
44 FormatStyle getLLVMStyleWithColumns(unsigned ColumnLimit) {
45 FormatStyle Style = getLLVMStyle();
50 FormatStyle getGoogleStyleWithColumns(unsigned ColumnLimit) {
51 FormatStyle Style = getGoogleStyle();
57 const FormatStyle &Style = getLLVMStyle()) {
72 const FormatStyle &Style = getLLVMStyle())
    [all...]
FormatTestProto.cpp 23 unsigned Length, const FormatStyle &Style) {
35 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Proto);
  /external/clang/tools/clang-format/fuzzer/
ClangFormatFuzzer.cpp 21 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp);
  /external/clang/tools/clang-format/
ClangFormat.cpp 226 FormatStyle FormatStyle = getStyle(
228 tooling::Replacements Replaces = reformat(FormatStyle, Sources, ID, Ranges);

Completed in 270 milliseconds