llvm/clang/unittests/Format/TokenAnnotatorTest.cpp

//===- unittest/Format/TokenAnnotatorTest.cpp - Formatting unit tests -----===//
//
// 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 "clang/Format/Format.h"

#include "FormatTestUtils.h"
#include "TestLexer.h"
#include "gtest/gtest.h"

namespace clang {
namespace format {

// Not really the equality, but everything we need.
static bool operator==(const FormatToken &LHS,
                       const FormatToken &RHS) noexcept {}

namespace {

class TokenAnnotatorTest : public testing::Test {};

#define EXPECT_TOKEN_KIND(FormatTok, Kind)
#define EXPECT_TOKEN_TYPE(FormatTok, Type)
#define EXPECT_TOKEN_PRECEDENCE(FormatTok, Prec)
#define EXPECT_BRACE_KIND(FormatTok, Kind)
#define EXPECT_SPLIT_PENALTY(FormatTok, Penalty)
#define EXPECT_TOKEN(FormatTok, Kind, Type)

TEST_F(TokenAnnotatorTest, UnderstandsUsesOfStarAndAmp) {}

TEST_F(TokenAnnotatorTest, UnderstandsUsesOfPlusAndMinus) {}

TEST_F(TokenAnnotatorTest, UnderstandsClasses) {}

TEST_F(TokenAnnotatorTest, UnderstandsStructs) {}

TEST_F(TokenAnnotatorTest, UnderstandsUnions) {}

TEST_F(TokenAnnotatorTest, UnderstandsEnums) {}

TEST_F(TokenAnnotatorTest, UnderstandsDefaultedAndDeletedFunctions) {}

TEST_F(TokenAnnotatorTest, UnderstandsVariables) {}

TEST_F(TokenAnnotatorTest, UnderstandsVariableTemplates) {}

TEST_F(TokenAnnotatorTest, UnderstandsTemplatesInMacros) {}

TEST_F(TokenAnnotatorTest, UnderstandsGreaterAfterTemplateCloser) {}

TEST_F(TokenAnnotatorTest, UnderstandsTernaryInTemplate) {}

TEST_F(TokenAnnotatorTest, UnderstandsNonTemplateAngleBrackets) {}

TEST_F(TokenAnnotatorTest, UnderstandsTemplateTemplateParameters) {}

TEST_F(TokenAnnotatorTest, UnderstandsWhitespaceSensitiveMacros) {}

TEST_F(TokenAnnotatorTest, UnderstandsDelete) {}

TEST_F(TokenAnnotatorTest, UnderstandsCasts) {}

TEST_F(TokenAnnotatorTest, UnderstandsDynamicExceptionSpecifier) {}

TEST_F(TokenAnnotatorTest, UnderstandsFunctionRefQualifiers) {}

TEST_F(TokenAnnotatorTest, UnderstandsOverloadedOperators) {}

TEST_F(TokenAnnotatorTest, OverloadedOperatorInTemplate) {}

TEST_F(TokenAnnotatorTest, UnderstandsRequiresClausesAndConcepts) {}

TEST_F(TokenAnnotatorTest, UnderstandsRequiresExpressions) {}

TEST_F(TokenAnnotatorTest, UnderstandsPragmaRegion) {}

TEST_F(TokenAnnotatorTest, RequiresDoesNotChangeParsingOfTheRest) {}

TEST_F(TokenAnnotatorTest, UnderstandsAsm) {}

TEST_F(TokenAnnotatorTest, UnderstandsObjCBlock) {}

TEST_F(TokenAnnotatorTest, UnderstandsObjCMethodExpr) {}

TEST_F(TokenAnnotatorTest, UnderstandsLambdas) {}

TEST_F(TokenAnnotatorTest, UnderstandsFunctionAnnotations) {}

TEST_F(TokenAnnotatorTest, UnderstandsFunctionDeclarationNames) {}

TEST_F(TokenAnnotatorTest, UnderstandsCtorAndDtorDeclNames) {}

TEST_F(TokenAnnotatorTest, UnderstandsC11GenericSelection) {}

TEST_F(TokenAnnotatorTest, UnderstandsTrailingReturnArrow) {}

TEST_F(TokenAnnotatorTest, UnderstandHashInMacro) {}

TEST_F(TokenAnnotatorTest, UnderstandsAttributeMacros) {}

TEST_F(TokenAnnotatorTest, UnderstandsAttributeMacrosOnObjCDecl) {}

TEST_F(TokenAnnotatorTest, UnderstandsAttributeMacrosOnObjCMethodDecl) {}

TEST_F(TokenAnnotatorTest, UnderstandsAttributeMacrosOnObjCProperty) {}

TEST_F(TokenAnnotatorTest, UnderstandsVerilogOperators) {}

TEST_F(TokenAnnotatorTest, UnderstandTableGenTokens) {}

TEST_F(TokenAnnotatorTest, UnderstandConstructors) {}

TEST_F(TokenAnnotatorTest, UnderstandsConditionParens) {}

TEST_F(TokenAnnotatorTest, CSharpNullableTypes) {}

TEST_F(TokenAnnotatorTest, UnderstandsLabels) {}

TEST_F(TokenAnnotatorTest, UnderstandsNestedBlocks) {}

TEST_F(TokenAnnotatorTest, UnderstandDesignatedInitializers) {}

TEST_F(TokenAnnotatorTest, UnderstandsJavaScript) {}

TEST_F(TokenAnnotatorTest, UnderstandsAttributes) {}

TEST_F(TokenAnnotatorTest, UnderstandsControlStatements) {}

TEST_F(TokenAnnotatorTest, UnderstandsDoWhile) {}

TEST_F(TokenAnnotatorTest, StartOfName) {}

TEST_F(TokenAnnotatorTest, BraceKind) {}

TEST_F(TokenAnnotatorTest, UnderstandsElaboratedTypeSpecifier) {}

TEST_F(TokenAnnotatorTest, BlockLBrace) {}

TEST_F(TokenAnnotatorTest, SwitchExpression) {}

TEST_F(TokenAnnotatorTest, CppAltOperatorKeywords) {}

TEST_F(TokenAnnotatorTest, FunctionTryBlock) {}

TEST_F(TokenAnnotatorTest, TypenameMacro) {}

TEST_F(TokenAnnotatorTest, GNULanguageStandard) {}

TEST_F(TokenAnnotatorTest, SplitPenalty) {}

} // namespace
} // namespace format
} // namespace clang