9 #ifndef LLVM_CLANG_TOOLING_REFACTOR_REFACTORING_ACTION_RULE_REQUIREMENTS_H 10 #define LLVM_CLANG_TOOLING_REFACTOR_REFACTORING_ACTION_RULE_REQUIREMENTS_H 17 #include "llvm/Support/Error.h" 18 #include <type_traits> 88 getRefactoringOptions()
const = 0;
95 template <
typename OptionType>
107 return static_cast<OptionType *
>(Opt.get())->
getValue();
116 std::shared_ptr<RefactoringOption> Opt;
122 #endif // LLVM_CLANG_TOOLING_REFACTOR_REFACTORING_ACTION_RULE_REQUIREMENTS_H SourceRange getSelectionRange() const
Returns the current source selection range as set by the refactoring engine.
llvm::Error createDiagnosticError(SourceLocation Loc, unsigned DiagID)
Creates an llvm::Error value that contains a diagnostic.
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...
static SVal getValue(SVal val, SValBuilder &svalBuilder)
Dataflow Directional Tag Classes.