clang  6.0.0svn
Classes | Functions
clang::tooling::internal Namespace Reference

Classes

struct  AreBaseOf
 A type trait that returns true when the given type list contains types that derive from Base. More...
 
struct  AreBaseOf< Base, T >
 
struct  HasBaseOf
 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  HasBaseOf< Base, T >
 

Functions

llvm::Expected< std::unique_ptr< ToolExecutor > > createExecutorFromCommandLineArgsImpl (int &argc, const char **argv, llvm::cl::OptionCategory &Category, const char *Overview=nullptr)
 
llvm::Error findError ()
 
void ignoreError ()
 
template<typename FirstT , typename... RestT>
void ignoreError (Expected< FirstT > &First, Expected< RestT > &... Rest)
 
template<typename FirstT , typename... RestT>
llvm::Error findError (Expected< FirstT > &First, Expected< RestT > &... Rest)
 Scans the tuple and returns a valid Error if any of the values are invalid. More...
 
template<typename RuleType , typename... RequirementTypes, size_t... Is>
void invokeRuleAfterValidatingRequirements (RefactoringResultConsumer &Consumer, RefactoringRuleContext &Context, const std::tuple< RequirementTypes... > &Requirements, llvm::index_sequence< Is... >)
 
void visitRefactoringOptionsImpl (RefactoringOptionVisitor &)
 
template<typename FirstT , typename... RestT>
void 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. More...
 
template<typename... RequirementTypes, size_t... Is>
void visitRefactoringOptions (RefactoringOptionVisitor &Visitor, const std::tuple< RequirementTypes... > &Requirements, llvm::index_sequence< Is... >)
 

Function Documentation

◆ createExecutorFromCommandLineArgsImpl()

llvm::Expected< std::unique_ptr< ToolExecutor > > clang::tooling::internal::createExecutorFromCommandLineArgsImpl ( int &  argc,
const char **  argv,
llvm::cl::OptionCategory &  Category,
const char *  Overview = nullptr 
)

◆ findError() [1/2]

llvm::Error clang::tooling::internal::findError ( )
inline

Definition at line 25 of file RefactoringActionRulesInternal.h.

Referenced by findError().

◆ findError() [2/2]

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.

Definition at line 39 of file RefactoringActionRulesInternal.h.

References findError(), and ignoreError().

◆ ignoreError() [1/2]

void clang::tooling::internal::ignoreError ( )
inline

Definition at line 27 of file RefactoringActionRulesInternal.h.

Referenced by findError(), and ignoreError().

◆ ignoreError() [2/2]

template<typename FirstT , typename... RestT>
void clang::tooling::internal::ignoreError ( Expected< FirstT > &  First,
Expected< RestT > &...  Rest 
)

Definition at line 30 of file RefactoringActionRulesInternal.h.

References ignoreError().

◆ invokeRuleAfterValidatingRequirements()

template<typename RuleType , typename... RequirementTypes, size_t... Is>
void clang::tooling::internal::invokeRuleAfterValidatingRequirements ( RefactoringResultConsumer Consumer,
RefactoringRuleContext Context,
const std::tuple< RequirementTypes... > &  Requirements,
llvm::index_sequence< Is... >   
)

Definition at line 48 of file RefactoringActionRulesInternal.h.

◆ visitRefactoringOptions()

template<typename... RequirementTypes, size_t... Is>
void clang::tooling::internal::visitRefactoringOptions ( RefactoringOptionVisitor Visitor,
const std::tuple< RequirementTypes... > &  Requirements,
llvm::index_sequence< Is... >   
)

Definition at line 88 of file RefactoringActionRulesInternal.h.

References visitRefactoringOptionsImpl().

◆ visitRefactoringOptionsImpl() [1/2]

void clang::tooling::internal::visitRefactoringOptionsImpl ( RefactoringOptionVisitor )
inline

◆ visitRefactoringOptionsImpl() [2/2]

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.

Definition at line 72 of file RefactoringActionRulesInternal.h.

References clang::tooling::RefactoringOptionsRequirement::getRefactoringOptions(), and visitRefactoringOptionsImpl().