#include "ReplacementTest.h"
#include "RewriterTestContext.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/Refactoring/Extract/Extract.h"
#include "clang/Tooling/Refactoring/RefactoringAction.h"
#include "clang/Tooling/Refactoring/RefactoringDiagnostic.h"
#include "clang/Tooling/Refactoring/Rename/SymbolName.h"
#include "clang/Tooling/Tooling.h"
#include "llvm/Support/Errc.h"
#include "gtest/gtest.h"
#include <optional>
usingnamespaceclang;
usingnamespacetooling;
namespace {
class RefactoringActionRulesTest : public ::testing::Test { … };
Expected<AtomicChanges>
createReplacements(const std::unique_ptr<RefactoringActionRule> &Rule,
RefactoringRuleContext &Context) { … }
TEST_F(RefactoringActionRulesTest, MyFirstRefactoringRule) { … }
TEST_F(RefactoringActionRulesTest, ReturnError) { … }
std::optional<SymbolOccurrences>
findOccurrences(RefactoringActionRule &Rule, RefactoringRuleContext &Context) { … }
TEST_F(RefactoringActionRulesTest, ReturnSymbolOccurrences) { … }
TEST_F(RefactoringActionRulesTest, EditorCommandBinding) { … }
}