llvm/clang/unittests/Format/FormatTestJS.cpp

//===- unittest/Format/FormatTestJS.cpp - Formatting unit tests for JS ----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "FormatTestUtils.h"
#include "clang/Format/Format.h"
#include "llvm/Support/Debug.h"
#include "gtest/gtest.h"

#define DEBUG_TYPE

namespace clang {
namespace format {

class FormatTestJS : public testing::Test {};

TEST_F(FormatTestJS, BlockComments) {}

TEST_F(FormatTestJS, JSDocComments) {}

TEST_F(FormatTestJS, UnderstandsJavaScriptOperators) {}

TEST_F(FormatTestJS, UnderstandsAmpAmp) {}

TEST_F(FormatTestJS, LiteralOperatorsCanBeKeywords) {}

TEST_F(FormatTestJS, ReservedWords) {}

TEST_F(FormatTestJS, ReservedWordsMethods) {}

TEST_F(FormatTestJS, ReservedWordsParenthesized) {}

TEST_F(FormatTestJS, ES6DestructuringAssignment) {}

TEST_F(FormatTestJS, ContainerLiterals) {}

TEST_F(FormatTestJS, MethodsInObjectLiterals) {}

TEST_F(FormatTestJS, GettersSettersVisibilityKeywords) {}

TEST_F(FormatTestJS, SpacesInContainerLiterals) {}

TEST_F(FormatTestJS, SingleQuotedStrings) {}

TEST_F(FormatTestJS, GoogScopes) {}

TEST_F(FormatTestJS, ClassExtends) {}

TEST_F(FormatTestJS, IIFEs) {}

TEST_F(FormatTestJS, GoogModules) {}

TEST_F(FormatTestJS, FormatsNamespaces) {}

TEST_F(FormatTestJS, NamespacesMayNotWrap) {}

TEST_F(FormatTestJS, AmbientDeclarations) {}

TEST_F(FormatTestJS, FormatsFreestandingFunctions) {}

TEST_F(FormatTestJS, FormatsDecorators) {}

TEST_F(FormatTestJS, GeneratorFunctions) {}

TEST_F(FormatTestJS, AsyncFunctions) {}

TEST_F(FormatTestJS, OverriddenMembers) {}

TEST_F(FormatTestJS, FunctionParametersTrailingComma) {}

TEST_F(FormatTestJS, ArrayLiterals) {}

TEST_F(FormatTestJS, ColumnLayoutForArrayLiterals) {}

TEST_F(FormatTestJS, TrailingCommaInsertion) {}

TEST_F(FormatTestJS, FunctionLiterals) {}

TEST_F(FormatTestJS, DontWrapEmptyLiterals) {}

TEST_F(FormatTestJS, InliningFunctionLiterals) {}

TEST_F(FormatTestJS, MultipleFunctionLiterals) {}

TEST_F(FormatTestJS, ArrowFunctions) {}

TEST_F(FormatTestJS, ArrowFunctionStyle) {}

TEST_F(FormatTestJS, ReturnStatements) {}

TEST_F(FormatTestJS, ForLoops) {}

TEST_F(FormatTestJS, WrapRespectsAutomaticSemicolonInsertion) {}

TEST_F(FormatTestJS, AddsIsTheDictKeyOnNewline) {}

TEST_F(FormatTestJS, AutomaticSemicolonInsertionHeuristic) {}

TEST_F(FormatTestJS, ImportExportASI) {}

TEST_F(FormatTestJS, ImportExportType) {}

TEST_F(FormatTestJS, ClosureStyleCasts) {}

TEST_F(FormatTestJS, TryCatch) {}

TEST_F(FormatTestJS, StringLiteralConcatenation) {}

TEST_F(FormatTestJS, RegexLiteralClassification) {}

TEST_F(FormatTestJS, RegexLiteralSpecialCharacters) {}

TEST_F(FormatTestJS, RegexLiteralModifiers) {}

TEST_F(FormatTestJS, RegexLiteralLength) {}

TEST_F(FormatTestJS, RegexLiteralExamples) {}

TEST_F(FormatTestJS, IgnoresMpegTS) {}

TEST_F(FormatTestJS, TypeAnnotations) {}

TEST_F(FormatTestJS, UnionIntersectionTypes) {}

TEST_F(FormatTestJS, UnionIntersectionTypesInObjectType) {}

TEST_F(FormatTestJS, ClassDeclarations) {}

TEST_F(FormatTestJS, StrictPropInitWrap) {}

TEST_F(FormatTestJS, InterfaceDeclarations) {}

TEST_F(FormatTestJS, ObjectTypesInExtendsImplements) {}

TEST_F(FormatTestJS, EnumDeclarations) {}

TEST_F(FormatTestJS, Decorators) {}

TEST_F(FormatTestJS, TypeAliases) {}

TEST_F(FormatTestJS, TypeInterfaceLineWrapping) {}

TEST_F(FormatTestJS, RemoveEmptyLinesInArrowFunctions) {}

TEST_F(FormatTestJS, Modules) {}

TEST_F(FormatTestJS, ImportWrapping) {}

TEST_F(FormatTestJS, TemplateStrings) {}

TEST_F(FormatTestJS, TemplateStringMultiLineExpression) {}

TEST_F(FormatTestJS, TemplateStringASI) {}

TEST_F(FormatTestJS, NestedTemplateStrings) {}

TEST_F(FormatTestJS, TaggedTemplateStrings) {}

TEST_F(FormatTestJS, CastSyntax) {}

TEST_F(FormatTestJS, TypeArguments) {}

TEST_F(FormatTestJS, UserDefinedTypeGuards) {}

TEST_F(FormatTestJS, OptionalTypes) {}

TEST_F(FormatTestJS, IndexSignature) {}

TEST_F(FormatTestJS, WrapAfterParen) {}

TEST_F(FormatTestJS, JSDocAnnotations) {}

TEST_F(FormatTestJS, TslintComments) {}

TEST_F(FormatTestJS, TscComments) {}

TEST_F(FormatTestJS, RequoteStringsSingle) {}

TEST_F(FormatTestJS, RequoteAndIndent) {}

TEST_F(FormatTestJS, RequoteStringsDouble) {}

TEST_F(FormatTestJS, RequoteStringsLeave) {}

TEST_F(FormatTestJS, SupportShebangLines) {}

TEST_F(FormatTestJS, NonNullAssertionOperator) {}

TEST_F(FormatTestJS, CppKeywords) {}

TEST_F(FormatTestJS, NullPropagatingOperator) {}

TEST_F(FormatTestJS, NullishCoalescingOperator) {}

TEST_F(FormatTestJS, AssignmentOperators) {}

TEST_F(FormatTestJS, Conditional) {}

TEST_F(FormatTestJS, ImportComments) {}

TEST_F(FormatTestJS, Exponentiation) {}

TEST_F(FormatTestJS, NestedLiterals) {}

TEST_F(FormatTestJS, BackslashesInComments) {}

TEST_F(FormatTestJS, AddsLastLinePenaltyIfEndingIsBroken) {}

TEST_F(FormatTestJS, ParameterNamingComment) {}

TEST_F(FormatTestJS, ConditionalTypes) {}

TEST_F(FormatTestJS, SupportPrivateFieldsAndMethods) {}

TEST_F(FormatTestJS, DeclaredFields) {}

TEST_F(FormatTestJS, NoBreakAfterAsserts) {}

TEST_F(FormatTestJS, NumericSeparators) {}

TEST_F(FormatTestJS, AlignConsecutiveDeclarations) {}

TEST_F(FormatTestJS, AlignConsecutiveAssignments) {}

TEST_F(FormatTestJS, AlignConsecutiveAssignmentsAndDeclarations) {}

TEST_F(FormatTestJS, DontBreakFieldsAsGoToLabels) {}

TEST_F(FormatTestJS, BreakAfterOpenBracket) {}

} // namespace format
} // end namespace clang