Go to the documentation of this file.
9 #ifndef LLVM_CLANG_TOOLING_REFACTORING_REFACTORINGOPTION_H
10 #define LLVM_CLANG_TOOLING_REFACTORING_REFACTORINGOPTION_H
14 #include <type_traits>
19 class RefactoringOptionVisitor;
33 virtual StringRef
getName()
const = 0;
53 template <
typename OptionType>
55 static_assert(std::is_base_of<RefactoringOption, OptionType>::value,
56 "invalid option type");
57 return std::make_shared<OptionType>();
63 #endif // LLVM_CLANG_TOOLING_REFACTORING_REFACTORINGOPTION_H