9 #ifndef LLVM_CLANG_TOOLING_REFACTORING_REFACTORINGACTIONRULEREQUIREMENTS_H
10 #define LLVM_CLANG_TOOLING_REFACTORING_REFACTORINGACTIONRULEREQUIREMENTS_H
17 #include "llvm/Support/Error.h"
18 #include <type_traits>
49 if (Context.getSelectionRange().isValid())
50 return Context.getSelectionRange();
51 return Context.createDiagnosticError(diag::err_refactor_no_selection);
95 template <
typename OptionType>
107 return static_cast<OptionType *
>(Opt.get())->getValue();
116 std::shared_ptr<RefactoringOption> Opt;
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
The refactoring rule context stores all of the inputs that might be needed by a refactoring action ru...
The JSON file list parser is used to communicate input to InstallAPI.