clang  15.0.0git
Classes | Namespaces
Transformer.h File Reference
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/Refactoring/AtomicChange.h"
#include "clang/Tooling/Transformer/RewriteRule.h"
#include "llvm/Support/Error.h"
#include <functional>
#include <utility>
Include dependency graph for Transformer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clang::tooling::detail::TransformerImpl
 Implementation details of Transformer with type erasure around RewriteRule<T> as well as the corresponding consumers. More...
 
struct  clang::tooling::detail::type_identity< T >
 
struct  clang::tooling::TransformerResult< T >
 
struct  clang::tooling::TransformerResult< void >
 
class  clang::tooling::Transformer
 Handles the matcher and callback registration for a single RewriteRule, as defined by the arguments of the constructor. More...
 
class  clang::tooling::detail::WithMetadataImpl< T >
 Implementation when metadata is generated as a part of the rewrite. More...
 

Namespaces

 clang
 
 clang::tooling
 
 clang::tooling::detail
 

Functions

template<typename T >
void clang::tooling::detail::assertMetadataSet (const transformer::RewriteRuleWith< T > &Rule)
 Asserts that all Metadata for the Rule is set. More...
 
template<>
void clang::tooling::detail::assertMetadataSet (const transformer::RewriteRuleWith< void > &)
 
template<typename T >
llvm::Error clang::tooling::detail::populateMetadata (const transformer::RewriteRuleWith< T > &Rule, size_t SelectedCase, const ast_matchers::MatchFinder::MatchResult &Match, TransformerResult< T > &Result)
 Runs the metadata generator on Rule and stuffs it into Result. More...
 
template<>
llvm::Error clang::tooling::detail::populateMetadata (const transformer::RewriteRuleWith< void > &, size_t, const ast_matchers::MatchFinder::MatchResult &Match, TransformerResult< void > &)
 
template<typename T >
void clang::tooling::detail::assertMetadataSet (const transformer::RewriteRuleWith< T > &Rule)
 Asserts that all Metadata for the Rule is set. More...
 
template<>
void clang::tooling::detail::assertMetadataSet (const transformer::RewriteRuleWith< void > &)
 
template<typename T >
llvm::Error clang::tooling::detail::populateMetadata (const transformer::RewriteRuleWith< T > &Rule, size_t SelectedCase, const ast_matchers::MatchFinder::MatchResult &Match, TransformerResult< T > &Result)
 Runs the metadata generator on Rule and stuffs it into Result. More...
 
template<>
llvm::Error clang::tooling::detail::populateMetadata (const transformer::RewriteRuleWith< void > &, size_t, const ast_matchers::MatchFinder::MatchResult &Match, TransformerResult< void > &)