#include "../clang-tidy/utils/FixItHintUtils.h"
#include "ClangTidyDiagnosticConsumer.h"
#include "ClangTidyTest.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Tooling/Tooling.h"
#include "gtest/gtest.h"
#include <optional>
namespace clang {
namespace tidy {
namespace {
usingnamespaceclang::ast_matchers;
usingnamespaceutils::fixit;
template <QualifierTarget CT, QualifierPolicy CP>
class ConstTransform : public ClangTidyCheck { … };
}
namespace test {
PointeeLTransform;
PointeeRTransform;
ValueLTransform;
ValueRTransform;
TEST(Values, Builtin) { … }
TEST(Values, TypedefBuiltin) { … }
TEST(Values, TypedefBuiltinPointer) { … }
TEST(Values, UsingBuiltin) { … }
TEST(Values, UsingBuiltinPointer) { … }
TEST(Values, AutoValue) { … }
TEST(Values, AutoPointer) { … }
TEST(Values, AutoReference) { … }
TEST(Values, DeclTypeValue) { … }
TEST(Values, DeclTypePointer) { … }
TEST(Values, DeclTypeReference) { … }
TEST(Values, Parens) { … }
TEST(Arrays, Builtin) { … }
TEST(Arrays, BuiltinParens) { … }
TEST(Arrays, Pointers) { … }
TEST(Arrays, PointerPointers) { … }
TEST(Arrays, PointersParens) { … }
TEST(Reference, LValueBuiltin) { … }
TEST(Reference, RValueBuiltin) { … }
TEST(Reference, LValueToPointer) { … }
TEST(Reference, LValueParens) { … }
TEST(Reference, ToArray) { … }
TEST(Reference, Auto) { … }
TEST(Pointers, SingleBuiltin) { … }
TEST(Pointers, MultiBuiltin) { … }
TEST(Pointers, ToArray) { … }
TEST(Pointers, Parens) { … }
TEST(Pointers, Auto) { … }
TEST(Pointers, AutoParens) { … }
TEST(Pointers, FunctionPointer) { … }
TEST(Pointers, MemberFunctionPointer) { … }
TEST(Pointers, MemberDataPointer) { … }
TEST(TagTypes, Struct) { … }
TEST(TagTypes, Class) { … }
TEST(TagTypes, Enum) { … }
TEST(TagTypes, Union) { … }
TEST(Macro, AllInMacro) { … }
TEST(Macro, MacroParameter) { … }
TEST(Macro, MacroTypeValue) { … }
TEST(Macro, MacroTypePointer) { … }
TEST(Macro, MacroTypeReference) { … }
TEST(Macro, Variable) { … }
TEST(Macro, RangeLoop) { … }
TEST(Template, TemplateVariable) { … }
TEST(Template, FunctionValue) { … }
TEST(Template, FunctionPointer) { … }
TEST(Template, FunctionReference) { … }
TEST(Template, MultiInstantiationsFunction) { … }
TEST(Template, StructValue) { … }
TEST(Template, StructPointer) { … }
TEST(Template, StructReference) { … }
TEST(Template, DependentReturnFunction) { … }
TEST(Template, DependentReturnPointerFunction) { … }
TEST(Template, DependentReturnReferenceFunction) { … }
TEST(Template, VectorLikeType) { … }
TEST(Template, SpecializedTemplate) { … }
TEST(ObjC, SimplePointers) { … }
TEST(ObjC, ClassPointer) { … }
TEST(ObjC, InterfacePointer) { … }
}
}
}