#include "../clang-tidy/utils/DeclRefExprUtils.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"
namespace clang {
namespace tidy {
namespace {
usingnamespaceclang::ast_matchers;
template <int Indirections>
class ConstReferenceDeclRefExprsTransform : public ClangTidyCheck { … };
}
namespace test {
template <int Indirections> void RunTest(StringRef Snippet) { … }
TEST(ConstReferenceDeclRefExprsTest, ConstValueVar) { … }
TEST(ConstReferenceDeclRefExprsTest, ConstRefVar) { … }
TEST(ConstReferenceDeclRefExprsTest, DEBUGREMOVEME) { … }
TEST(ConstReferenceDeclRefExprsTest, ValueVar) { … }
TEST(ConstReferenceDeclRefExprsTest, RefVar) { … }
TEST(ConstReferenceDeclRefExprsTest, PtrVar) { … }
TEST(ConstReferenceDeclRefExprsTest, ConstPtrVar) { … }
TEST(ConstReferenceDeclRefExprsTest, ConstPtrPtrVar) { … }
TEST(ConstReferenceDeclRefExprsTest, ConstPtrConstPtrVar) { … }
}
}
}