#include "ClangTidyTest.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "gtest/gtest.h"
namespace clang {
namespace tidy {
namespace test {
namespace {
const char BoundDecl[] = …;
const char BoundIf[] = …;
class UseCharCheck : public ClangTidyCheck { … };
class IfFalseCheck : public ClangTidyCheck { … };
class RefactorCheck : public ClangTidyCheck { … };
class StartsWithPotaCheck : public RefactorCheck { … };
class EndsWithTatoCheck : public RefactorCheck { … };
}
TEST(OverlappingReplacementsTest, UseCharCheckTest) { … }
TEST(OverlappingReplacementsTest, IfFalseCheckTest) { … }
TEST(OverlappingReplacementsTest, StartsWithCheckTest) { … }
TEST(OverlappingReplacementsTest, EndsWithCheckTest) { … }
TEST(OverlappingReplacementTest, ReplacementsDoNotOverlap) { … }
TEST(OverlappingReplacementsTest, ReplacementInsideOtherReplacement) { … }
TEST(OverlappingReplacements, TwoReplacementsInsideOne) { … }
TEST(OverlappingReplacementsTest,
ApplyAtMostOneOfTheChangesWhenPartialOverlapping) { … }
TEST(OverlappingReplacementsTest, TwoErrorsHavePerfectOverlapping) { … }
}
}
}