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

  /external/clang/include/clang/Format/
Format.h 39 /// \brief The \c FormatStyle is used to configure the formatting to follow
41 struct FormatStyle {
359 bool operator==(const FormatStyle &R) const {
422 FormatStyle getLLVMStyle();
428 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language);
432 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language);
436 FormatStyle getMozillaStyle();
440 FormatStyle getWebKitStyle()
    [all...]
  /external/clang/unittests/Format/
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()) {
293 FormatStyle AllowsMergedIf = getLLVMStyle()
    [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)) {
126 getChromiumStyle(FormatStyle::LK_JavaScript));
FormatTestProto.cpp 23 unsigned Length, const FormatStyle &Style) {
35 FormatStyle Style = getGoogleStyle(FormatStyle::LK_Proto);
  /external/clang/lib/Format/
Format.cpp 35 using clang::format::FormatStyle;
41 template <> struct ScalarEnumerationTraits<FormatStyle::LanguageKind> {
42 static void enumeration(IO &IO, FormatStyle::LanguageKind &Value) {
43 IO.enumCase(Value, "Cpp", FormatStyle::LK_Cpp);
44 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript);
45 IO.enumCase(Value, "Proto", FormatStyle::LK_Proto);
49 template <> struct ScalarEnumerationTraits<FormatStyle::LanguageStandard> {
50 static void enumeration(IO &IO, FormatStyle::LanguageStandard &Value) {
51 IO.enumCase(Value, "Cpp03", FormatStyle::LS_Cpp03);
52 IO.enumCase(Value, "C++03", FormatStyle::LS_Cpp03)
    [all...]
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 62 UnwrappedLineParser(const FormatStyle &Style, ArrayRef<FormatToken *> Tokens,
159 const FormatStyle &Style;
WhitespaceManager.h 40 WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style,
196 const FormatStyle &Style;
UnwrappedLineParser.cpp 158 const FormatStyle &Style, unsigned &LineLevel)
160 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman) {
162 } else if (Style.BreakBeforeBraces == FormatStyle::BS_GNU) {
205 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style,
338 if (Style.Language == FormatStyle::LK_Proto) {
443 Style.Language == FormatStyle::LK_JavaScript && IsGoogScope(*Line);
757 if (Style.BreakBeforeBraces != FormatStyle::BS_Attach)
775 if (Style.Language == FormatStyle::LK_JavaScript && Text == "function" &&
949 if (Style.Language == FormatStyle::LK_JavaScript &&
1070 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman |
    [all...]
TokenAnnotator.h 111 TokenAnnotator(const FormatStyle &Style, IdentifierInfo &Ident_in)
140 const FormatStyle &Style;
FormatToken.h 378 bool opensBlockTypeList(const FormatStyle &Style) const {
386 bool closesBlockTypeList(const FormatStyle &Style) const {
416 TokenRole(const FormatStyle &Style) : Style(Style) {}
447 const FormatStyle &Style;
452 CommaSeparatedList(const FormatStyle &Style)
ContinuationIndenter.h 38 ContinuationIndenter(const FormatStyle &Style, SourceManager &SourceMgr,
136 FormatStyle Style;
TokenAnnotator.cpp 34 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,
283 Style.Language != FormatStyle::LK_Proto &&
319 Style.Language != FormatStyle::LK_Proto) {
334 (Style.Language == FormatStyle::LK_JavaScript &&
    [all...]
WhitespaceManager.cpp 316 case FormatStyle::UT_Never:
319 case FormatStyle::UT_Always: {
331 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,
118 if (Style.Language == FormatStyle::LK_JavaScript &&
158 ((Style.AllowShortFunctionsOnASingleLine != FormatStyle::SFS_All) ||
433 bool JavaScriptFormat = Style.Language == FormatStyle::LK_JavaScript &&
630 if (Style.Language == FormatStyle::LK_JavaScript) {
    [all...]
  /external/clang/tools/clang-format/
ClangFormat.cpp 226 FormatStyle FormatStyle = getStyle(
229 getFormattingLangOpts(FormatStyle.Standard));
230 tooling::Replacements Replaces = reformat(FormatStyle, Lex, Sources, Ranges);

Completed in 2021 milliseconds