clang 20.0.0git
|
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. | |
template<typename RuleType , typename... RequirementTypes, size_t... Is> | |
void | invokeRuleAfterValidatingRequirements (RefactoringResultConsumer &Consumer, RefactoringRuleContext &Context, const std::tuple< RequirementTypes... > &Requirements, std::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. | |
template<typename... RequirementTypes, size_t... Is> | |
void | visitRefactoringOptions (RefactoringOptionVisitor &Visitor, const std::tuple< RequirementTypes... > &Requirements, std::index_sequence< Is... >) |
llvm::Expected< std::unique_ptr< ToolExecutor > > clang::tooling::internal::createExecutorFromCommandLineArgsImpl | ( | int & | argc, |
const char ** | argv, | ||
llvm::cl::OptionCategory & | Category, | ||
const char * | Overview = nullptr |
||
) |
Definition at line 58 of file Execution.cpp.
References Category, clang::tooling::CommonOptionsParser::create(), and clang::tooling::ExecutorName.
Referenced by clang::tooling::createExecutorFromCommandLineArgs().
|
inline |
Definition at line 24 of file RefactoringActionRulesInternal.h.
Referenced by findError(), and invokeRuleAfterValidatingRequirements().
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 38 of file RefactoringActionRulesInternal.h.
References findError(), clang::First, and ignoreError().
|
inline |
Definition at line 26 of file RefactoringActionRulesInternal.h.
Referenced by findError(), and ignoreError().
void clang::tooling::internal::ignoreError | ( | Expected< FirstT > & | First, |
Expected< RestT > &... | Rest | ||
) |
Definition at line 29 of file RefactoringActionRulesInternal.h.
References clang::First, and ignoreError().
void clang::tooling::internal::invokeRuleAfterValidatingRequirements | ( | RefactoringResultConsumer & | Consumer, |
RefactoringRuleContext & | Context, | ||
const std::tuple< RequirementTypes... > & | Requirements, | ||
std::index_sequence< Is... > | |||
) |
Definition at line 47 of file RefactoringActionRulesInternal.h.
References findError(), and clang::tooling::RefactoringResultConsumer::handleError().
void clang::tooling::internal::visitRefactoringOptions | ( | RefactoringOptionVisitor & | Visitor, |
const std::tuple< RequirementTypes... > & | Requirements, | ||
std::index_sequence< Is... > | |||
) |
Definition at line 87 of file RefactoringActionRulesInternal.h.
References visitRefactoringOptionsImpl().
|
inline |
Definition at line 66 of file RefactoringActionRulesInternal.h.
Referenced by visitRefactoringOptions(), and visitRefactoringOptionsImpl().
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 71 of file RefactoringActionRulesInternal.h.
References clang::First, clang::tooling::RefactoringOptionsRequirement::getRefactoringOptions(), and visitRefactoringOptionsImpl().