Home
last modified time | relevance | path

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

12

/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/llvm-project/clang/unittests/Format/
DFormatTestJS.cpp38 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in format()
43 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in getGoogleJSStyleWithColumns()
50 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in verifyFormat()
58 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) { in verifyFormat()
551 getChromiumStyle(FormatStyle::LK_JavaScript)); in TEST_F()
861 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
900 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
1013 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
1070 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
1177 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
[all …]
DSortImportsTestJS.cpp44 FormatStyle Style = getGoogleStyle(FormatStyle::LK_JavaScript);
DFormatTestSelective.cpp588 Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
DFormatTest.cpp13990 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
13992 getPredefinedStyle("Google", FormatStyle::LK_JavaScript, &Styles[1])); in TEST_F()
13994 getPredefinedStyle("gOOgle", FormatStyle::LK_JavaScript, &Styles[2])); in TEST_F()
14030 Styles[0] = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
14032 Styles[1].Language = FormatStyle::LK_JavaScript; in TEST_F()
14036 Styles[2].Language = FormatStyle::LK_JavaScript; in TEST_F()
14043 Styles[3].Language = FormatStyle::LK_JavaScript; in TEST_F()
14050 Styles[4].Language = FormatStyle::LK_JavaScript; in TEST_F()
14590 BinPackedTCS.Language = FormatStyle::LK_JavaScript; in TEST_F()
14599 Style.Language = FormatStyle::LK_JavaScript; in TEST_F()
[all …]
DCleanupTest.cpp201 const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
DFormatTestComments.cpp3252 FormatStyle JSStyle20 = getGoogleStyle(FormatStyle::LK_JavaScript); in TEST_F()
/external/llvm-project/clang/lib/Format/
DUnwrappedLineParser.cpp303 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript; in parseFile()
414 if (Style.Language == FormatStyle::LK_JavaScript && in parseLevel()
464 if (Style.Language == FormatStyle::LK_JavaScript && PrevTok) { in calculateBraceTypes()
506 (Style.Language == FormatStyle::LK_JavaScript && in calculateBraceTypes()
704 bool SkipIndent = (Style.Language == FormatStyle::LK_JavaScript && in parseChildBlock()
1065 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) in parseStructuralElement()
1071 if (Style.Language == FormatStyle::LK_JavaScript && Line->MustBeDeclaration) in parseStructuralElement()
1078 if (Style.Language == FormatStyle::LK_JavaScript && Line->MustBeDeclaration) in parseStructuralElement()
1084 if (Style.Language == FormatStyle::LK_JavaScript && Line->MustBeDeclaration) in parseStructuralElement()
1090 if (Style.Language == FormatStyle::LK_JavaScript && Line->MustBeDeclaration) in parseStructuralElement()
[all …]
DTokenAnnotator.cpp226 } else if (Style.Language == FormatStyle::LK_JavaScript && in parseParens()
240 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseParens()
246 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseParens()
561 } else if (Style.Language == FormatStyle::LK_JavaScript && Parent && in parseSquare()
625 if (Style.Language == FormatStyle::LK_JavaScript && Parent && in parseSquare()
738 if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseBrace()
766 Style.Language == FormatStyle::LK_JavaScript) in parseBrace()
770 Style.Language == FormatStyle::LK_JavaScript) in parseBrace()
834 if (Style.Language == FormatStyle::LK_JavaScript) { in consumeToken()
925 if (Style.Language == FormatStyle::LK_JavaScript && in consumeToken()
[all …]
DFormatTokenLexer.cpp62 if (Style.Language == FormatStyle::LK_JavaScript) { in lex()
110 if (Style.Language == FormatStyle::LK_JavaScript) { in tryMergePreviousTokens()
922 if ((Style.Language == FormatStyle::LK_JavaScript || in getNextToken()
984 } else if (Style.Language == FormatStyle::LK_JavaScript && in getNextToken()
1055 } else if (Style.Language == FormatStyle::LK_JavaScript && in readRawToken()
1061 if ((Style.Language == FormatStyle::LK_JavaScript || in readRawToken()
DBreakableToken.cpp92 if (Style.Language == FormatStyle::LK_JavaScript) { in getCommentSplit()
128 if (Style.Language == FormatStyle::LK_JavaScript && in getCommentSplit()
461 if (Style.Language == FormatStyle::LK_JavaScript || in BreakableBlockComment()
582 Style.Language != FormatStyle::LK_JavaScript) in getContentIndent()
DFormat.cpp60 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript); in enumeration()
1091 } else if (Language == FormatStyle::LK_JavaScript) { in getGoogleStyle()
1184 } else if (Language == FormatStyle::LK_JavaScript) { in getChromiumStyle()
2485 if (Style.Language == FormatStyle::LanguageKind::LK_JavaScript && in sortIncludes()
2488 if (Style.Language == FormatStyle::LanguageKind::LK_JavaScript) in sortIncludes()
2653 if (Expanded.Language == FormatStyle::LK_JavaScript && isMpegTS(Code)) in reformat()
2673 if (Style.Language == FormatStyle::LK_JavaScript && in reformat()
2683 if (Style.Language == FormatStyle::LK_JavaScript && in reformat()
2806 return FormatStyle::LK_JavaScript; // (module) JavaScript or TypeScript. in getLanguageByFileName()
DContinuationIndenter.cpp424 Style.Language == FormatStyle::LK_JavaScript) && in mustBreak()
815 (Style.Language != FormatStyle::LK_JavaScript || in addTokenOnNewLine()
1506 (Style.Language == FormatStyle::LK_JavaScript && EndsInComma) || in moveStatePastScopeOpener()
1535 if (Style.Language == FormatStyle::LK_JavaScript && EndsInComma) in moveStatePastScopeOpener()
1913 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp() || in createBreakableToken()
DUnwrappedLineFormatter.cpp99 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) in getIndentOffset()
1124 (Style.Language != FormatStyle::LK_JavaScript || in format()
/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/llvm-project/clang/include/clang/Format/
DFormat.h1748 LK_JavaScript, enumerator
2819 case FormatStyle::LK_JavaScript: in getLanguageName()

12