clang 19.0.0git
Classes | Namespaces | Functions
RefactoringActionRulesInternal.h File Reference
#include "clang/Basic/LLVM.h"
#include "clang/Tooling/Refactoring/RefactoringActionRule.h"
#include "clang/Tooling/Refactoring/RefactoringActionRuleRequirements.h"
#include "clang/Tooling/Refactoring/RefactoringResultConsumer.h"
#include "clang/Tooling/Refactoring/RefactoringRuleContext.h"
#include "llvm/Support/Error.h"
#include <type_traits>

Go to the source code of this file.

Classes

struct  clang::tooling::internal::HasBaseOf< Base, First, Rest >
 A type trait that returns true when the given type list has at least one type whose base is the given base type. More...
 
struct  clang::tooling::internal::HasBaseOf< Base, T >
 
struct  clang::tooling::internal::AreBaseOf< Base, First, Rest >
 A type trait that returns true when the given type list contains types that derive from Base. More...
 
struct  clang::tooling::internal::AreBaseOf< Base, T >
 

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::tooling
 
namespace  clang::tooling::internal
 

Functions

llvm::Error clang::tooling::internal::findError ()
 
void clang::tooling::internal::ignoreError ()
 
template<typename FirstT , typename... RestT>
void clang::tooling::internal::ignoreError (Expected< FirstT > &First, Expected< RestT > &... Rest)
 
template<typename FirstT , typename... RestT>
llvm::Error clang::tooling::internal::findError (Expected< FirstT > &First, Expected< RestT > &... Rest)
 Scans the tuple and returns a valid Error if any of the values are invalid.
 
template<typename RuleType , typename... RequirementTypes, size_t... Is>
void clang::tooling::internal::invokeRuleAfterValidatingRequirements (RefactoringResultConsumer &Consumer, RefactoringRuleContext &Context, const std::tuple< RequirementTypes... > &Requirements, std::index_sequence< Is... >)
 
void clang::tooling::internal::visitRefactoringOptionsImpl (RefactoringOptionVisitor &)
 
template<typename FirstT , typename... RestT>
void clang::tooling::internal::visitRefactoringOptionsImpl (RefactoringOptionVisitor &Visitor, const FirstT &First, const RestT &... Rest)
 Scans the list of requirements in a rule and visits all the refactoring options that are used by all the requirements.
 
template<typename... RequirementTypes, size_t... Is>
void clang::tooling::internal::visitRefactoringOptions (RefactoringOptionVisitor &Visitor, const std::tuple< RequirementTypes... > &Requirements, std::index_sequence< Is... >)
 
template<typename RuleType , typename... RequirementTypes>
std::unique_ptr< RefactoringActionRule > clang::tooling::createRefactoringActionRule (const RequirementTypes &... Requirements)
 Creates a new refactoring action rule that constructs and invokes the RuleType rule when all of the requirements are satisfied.