#include "RewriterTestContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Tooling/RefactoringCallbacks.h"
#include "gtest/gtest.h"
namespace clang {
namespace tooling {
usingnamespaceast_matchers;
template <typename T>
void expectRewritten(const std::string &Code, const std::string &Expected,
const T &AMatcher, RefactoringCallback &Callback) { … }
TEST(RefactoringCallbacksTest, ReplacesStmtsWithString) { … }
TEST(RefactoringCallbacksTest, ReplacesStmtsInCalledMacros) { … }
TEST(RefactoringCallbacksTest, IgnoresStmtsInUncalledMacros) { … }
TEST(RefactoringCallbacksTest, ReplacesInteger) { … }
TEST(RefactoringCallbacksTest, ReplacesStmtWithStmt) { … }
TEST(RefactoringCallbacksTest, ReplacesIfStmt) { … }
TEST(RefactoringCallbacksTest, RemovesEntireIfOnEmptyElse) { … }
TEST(RefactoringCallbacksTest, TemplateJustText) { … }
TEST(RefactoringCallbacksTest, TemplateSimpleSubst) { … }
TEST(RefactoringCallbacksTest, TemplateLiteral) { … }
static void ExpectStringError(const std::string &Expected,
llvm::Error E) { … }
TEST(RefactoringCallbacksTest, TemplateUnterminated) { … }
TEST(RefactoringCallbacksTest, TemplateUnknownDollar) { … }
}
}