clang  7.0.0svn
Public Types | Public Member Functions | List of all members
clang::TokenRewriter Class Reference

#include "clang/Rewrite/Core/TokenRewriter.h"

Public Types

typedef std::list< Token >::const_iterator token_iterator

Public Member Functions

 TokenRewriter (FileID FID, SourceManager &SM, const LangOptions &LO)
 TokenRewriter - This creates a TokenRewriter for the file with the specified FileID. More...
 ~TokenRewriter ()
token_iterator token_begin () const
token_iterator token_end () const
token_iterator AddTokenBefore (token_iterator I, const char *Val)
token_iterator AddTokenAfter (token_iterator I, const char *Val)

Detailed Description

Definition at line 28 of file TokenRewriter.h.

Member Typedef Documentation

◆ token_iterator

typedef std::list<Token>::const_iterator clang::TokenRewriter::token_iterator

Definition at line 54 of file TokenRewriter.h.

Constructor & Destructor Documentation

◆ TokenRewriter()

TokenRewriter::TokenRewriter ( FileID  FID,
SourceManager SM,
const LangOptions LO 

◆ ~TokenRewriter()

TokenRewriter::~TokenRewriter ( )

Definition at line 49 of file TokenRewriter.cpp.

Member Function Documentation

◆ AddTokenAfter()

token_iterator clang::TokenRewriter::AddTokenAfter ( token_iterator  I,
const char *  Val 

Definition at line 60 of file TokenRewriter.h.

References AddTokenBefore(), clang::T, and token_end().

◆ AddTokenBefore()

TokenRewriter::token_iterator TokenRewriter::AddTokenBefore ( token_iterator  I,
const char *  Val 

Definition at line 82 of file TokenRewriter.cpp.

Referenced by AddTokenAfter(), and token_end().

◆ token_begin()

token_iterator clang::TokenRewriter::token_begin ( ) const

Definition at line 55 of file TokenRewriter.h.

◆ token_end()

token_iterator clang::TokenRewriter::token_end ( ) const

Definition at line 56 of file TokenRewriter.h.

References AddTokenBefore().

Referenced by AddTokenAfter().

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