clang 19.0.0git
Public Member Functions | List of all members
clang::tooling::detail::WithMetadataImpl< T > Class Template Referencefinal

Implementation when metadata is generated as a part of the rewrite. More...

#include "clang/Tooling/Transformer/Transformer.h"

Inheritance diagram for clang::tooling::detail::WithMetadataImpl< T >:
Inheritance graph
[legend]

Public Member Functions

 WithMetadataImpl (transformer::RewriteRuleWith< T > R, std::function< void(llvm::Expected< TransformerResult< T > >)> Consumer)
 
- Public Member Functions inherited from clang::tooling::detail::TransformerImpl
virtual ~TransformerImpl ()=default
 
void onMatch (const ast_matchers::MatchFinder::MatchResult &Result)
 
virtual std::vector< ast_matchers::internal::DynTypedMatcher > buildMatchers () const =0
 

Additional Inherited Members

- Static Protected Member Functions inherited from clang::tooling::detail::TransformerImpl
static llvm::Expected< llvm::SmallVector< AtomicChange, 1 > > convertToAtomicChanges (const llvm::SmallVectorImpl< transformer::Edit > &Edits, const ast_matchers::MatchFinder::MatchResult &Result)
 Converts a set of Edit into a AtomicChange per file modified.
 

Detailed Description

template<typename T>
class clang::tooling::detail::WithMetadataImpl< T >

Implementation when metadata is generated as a part of the rewrite.

This happens when we have a RewriteRuleWith<T>.

Definition at line 140 of file Transformer.h.

Constructor & Destructor Documentation

◆ WithMetadataImpl()

template<typename T >
clang::tooling::detail::WithMetadataImpl< T >::WithMetadataImpl ( transformer::RewriteRuleWith< T >  R,
std::function< void(llvm::Expected< TransformerResult< T > >)>  Consumer 
)
inlineexplicit

Definition at line 145 of file Transformer.h.


The documentation for this class was generated from the following file: