Home
last modified time | relevance | path

Searched refs:LK_JavaScript (Results 1 – 9 of 9) sorted by relevance

/external/clang/unittests/Format/
DFormatTestJS.cpp36 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in format()
41 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in getGoogleJSStyleWithColumns()
48 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in verifyFormat()
186 getChromiumStyle(FormatStyle::LK_JavaScript)); in TEST_F()
313 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
DFormatTest.cpp8817 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
8819 getPredefinedStyle("Google", FormatStyle::LK_JavaScript, &Styles[1])); in TEST_F()
8821 getPredefinedStyle("gOOgle", FormatStyle::LK_JavaScript, &Styles[2])); in TEST_F()
8857 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
8859 Styles[1].Language = FormatStyle::LK_JavaScript; in TEST_F()
8863 Styles[2].Language = FormatStyle::LK_JavaScript; in TEST_F()
8869 Styles[3].Language = FormatStyle::LK_JavaScript; in TEST_F()
8875 Styles[4].Language = FormatStyle::LK_JavaScript; in TEST_F()
9078 Style.Language = FormatStyle::LK_JavaScript; in TEST_F()
9089 EXPECT_EQ(FormatStyle::LK_JavaScript, Style.Language); in TEST_F()
[all …]
/external/clang/lib/Format/
DUnwrappedLineParser.cpp459 Style.Language == FormatStyle::LK_JavaScript && isGoogScope(*Line); in parseChildBlock()
700 Style.Language == FormatStyle::LK_JavaScript) in parseStructuralElement()
741 if (Style.Language == FormatStyle::LK_JavaScript) { in parseStructuralElement()
751 if (Style.Language == FormatStyle::LK_JavaScript && in parseStructuralElement()
839 if (Style.Language == FormatStyle::LK_JavaScript && Text == "function" && in parseStructuralElement()
848 Style.Language != FormatStyle::LK_JavaScript) { in parseStructuralElement()
1021 if (Style.Language == FormatStyle::LK_JavaScript && in parseBracedList()
1045 if (Style.Language == FormatStyle::LK_JavaScript) { in parseBracedList()
1103 if (Style.Language == FormatStyle::LK_JavaScript && in parseParens()
1241 Style.Language == FormatStyle::LK_JavaScript) && in parseTryCatch()
[all …]
DTokenAnnotator.cpp354 Style.Language == FormatStyle::LK_JavaScript) in parseBrace()
367 (Style.Language == FormatStyle::LK_JavaScript && in updateParameterCount()
420 if (Style.Language == FormatStyle::LK_JavaScript) { in consumeToken()
531 if (Style.Language == FormatStyle::LK_JavaScript && Tok->Next && in consumeToken()
692 return Style.Language == FormatStyle::LK_JavaScript && in IsImportStatement()
901 Style.Language == FormatStyle::LK_JavaScript) && in determineTokenType()
974 if (Style.Language == FormatStyle::LK_JavaScript && in rParenEndsCast()
1034 if (Style.Language == FormatStyle::LK_JavaScript) in determineStarAmpUsage()
1527 } else if (Style.Language == FormatStyle::LK_JavaScript) { in splitPenalty()
1785 } else if (Style.Language == FormatStyle::LK_JavaScript) { in spaceRequiredBefore()
[all …]
DUnwrappedLineFormatter.h81 Style.Language == FormatStyle::LK_JavaScript) in getIndentOffset()
DFormat.cpp46 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript); in enumeration()
428 } else if (Language == FormatStyle::LK_JavaScript) { in getGoogleStyle()
637 if (Style.Language == FormatStyle::LK_JavaScript) { in tryMergePreviousTokens()
1143 } else if (Style.Language == FormatStyle::LK_JavaScript && in readRawToken()
1177 case FormatStyle::LK_JavaScript: in getLanguageName()
1549 return FormatStyle::LK_JavaScript; in getLanguageByFileName()
DContinuationIndenter.cpp938 Style.Language == FormatStyle::LK_JavaScript) in breakProtrudingToken()
/external/clang/include/clang/Format/
DFormat.h54 LK_JavaScript, enumerator
/external/clang/docs/
DClangFormatStyleOptions.rst367 * ``LK_JavaScript`` (in configuration: ``JavaScript``)