Home
last modified time | relevance | path

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

/external/clang/unittests/Format/
DFormatTestJS.cpp39 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in format()
44 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in getGoogleJSStyleWithColumns()
51 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in verifyFormat()
59 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in verifyFormat()
278 getChromiumStyle(FormatStyle::LK_JavaScript)); in TEST_F()
516 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
1322 FormatStyle DoubleQuotes = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
1330 FormatStyle LeaveQuotes = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
DSortImportsTestJS.cpp45 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript);
DFormatTestSelective.cpp516 Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
DFormatTest.cpp10048 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
10050 getPredefinedStyle("Google", FormatStyle::LK_JavaScript, &Styles[1])); in TEST_F()
10052 getPredefinedStyle("gOOgle", FormatStyle::LK_JavaScript, &Styles[2])); in TEST_F()
10088 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
10090 Styles[1].Language = FormatStyle::LK_JavaScript; in TEST_F()
10094 Styles[2].Language = FormatStyle::LK_JavaScript; in TEST_F()
10101 Styles[3].Language = FormatStyle::LK_JavaScript; in TEST_F()
10108 Styles[4].Language = FormatStyle::LK_JavaScript; in TEST_F()
10400 Style.Language = FormatStyle::LK_JavaScript; in TEST_F()
10411 EXPECT_EQ(FormatStyle::LK_JavaScript, Style.Language); in TEST_F()
[all …]
/external/clang/lib/Format/
DUnwrappedLineParser.cpp258 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript; in parseFile()
335 if (Style.Language == FormatStyle::LK_JavaScript && PrevTok && in calculateBraceTypes()
366 (Style.Language == FormatStyle::LK_JavaScript && in calculateBraceTypes()
489 Style.Language == FormatStyle::LK_JavaScript && isGoogScope(*Line); in parseChildBlock()
829 Style.Language == FormatStyle::LK_JavaScript) in parseStructuralElement()
870 if (Style.Language == FormatStyle::LK_JavaScript) { in parseStructuralElement()
886 if (Style.Language == FormatStyle::LK_JavaScript) { in parseStructuralElement()
956 Style.Language == FormatStyle::LK_JavaScript) { in parseStructuralElement()
969 if (Style.Language == FormatStyle::LK_JavaScript && FormatTok && in parseStructuralElement()
1028 if (Style.Language == FormatStyle::LK_JavaScript && in parseStructuralElement()
[all …]
DTokenAnnotator.cpp137 } else if (Style.Language == FormatStyle::LK_JavaScript && in parseParens()
148 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseParens()
154 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseParens()
324 } else if (Style.Language == FormatStyle::LK_JavaScript && Parent && in parseSquare()
431 Style.Language == FormatStyle::LK_JavaScript) in parseBrace()
493 if (Style.Language == FormatStyle::LK_JavaScript) { in consumeToken()
540 if (Style.Language == FormatStyle::LK_JavaScript && in consumeToken()
553 if (Style.Language == FormatStyle::LK_JavaScript && Tok->Previous && in consumeToken()
630 if (Style.Language == FormatStyle::LK_JavaScript && Tok->Next && in consumeToken()
643 Style.Language == FormatStyle::LK_JavaScript) in consumeToken()
[all …]
DFormatTokenLexer.cpp50 if (Style.Language == FormatStyle::LK_JavaScript) { in lex()
69 if (Style.Language == FormatStyle::LK_JavaScript) { in tryMergePreviousTokens()
494 } else if (Style.Language == FormatStyle::LK_JavaScript && in getNextToken()
563 } else if (Style.Language == FormatStyle::LK_JavaScript && in readRawToken()
569 if (Style.Language == FormatStyle::LK_JavaScript && in readRawToken()
DFormat.cpp55 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript); in enumeration()
609 } else if (Language == FormatStyle::LK_JavaScript) { in getGoogleStyle()
808 if (Style.Language == FormatStyle::LK_JavaScript && in analyze()
1389 if (Style.Language == FormatStyle::LanguageKind::LK_JavaScript) in sortIncludes()
1686 return FormatStyle::LK_JavaScript; // JavaScript or TypeScript. in getLanguageByFileName()
DUnwrappedLineFormatter.cpp89 Style.Language == FormatStyle::LK_JavaScript) in getIndentOffset()
851 (Style.Language != FormatStyle::LK_JavaScript || in format()
DContinuationIndenter.cpp482 (Style.Language != FormatStyle::LK_JavaScript || in addTokenOnNewLine()
1092 Style.Language == FormatStyle::LK_JavaScript || in breakProtrudingToken()
/external/clang/include/clang/Format/
DFormat.h467 LK_JavaScript, enumerator
870 case FormatStyle::LK_JavaScript: in getLanguageName()
/external/clang/docs/
DClangFormatStyleOptions.rst581 * ``LK_JavaScript`` (in configuration: ``JavaScript``)