clang  3.9.0
Classes | Public Member Functions | List of all members
clang::edit::EditedSource Class Reference

#include <EditedSource.h>

Public Member Functions

 EditedSource (const SourceManager &SM, const LangOptions &LangOpts, const PPConditionalDirectiveRecord *PPRec=nullptr)
 
const SourceManagergetSourceManager () const
 
const LangOptionsgetLangOpts () const
 
const
PPConditionalDirectiveRecord
getPPCondDirectiveRecord () const
 
bool canInsertInOffset (SourceLocation OrigLoc, FileOffset Offs)
 
bool commit (const Commit &commit)
 
void applyRewrites (EditsReceiver &receiver)
 
void clearRewrites ()
 
StringRef copyString (StringRef str)
 
StringRef copyString (const Twine &twine)
 

Detailed Description

Definition at line 29 of file EditedSource.h.

Constructor & Destructor Documentation

clang::edit::EditedSource::EditedSource ( const SourceManager SM,
const LangOptions LangOpts,
const PPConditionalDirectiveRecord PPRec = nullptr 
)
inline

Definition at line 53 of file EditedSource.h.

Member Function Documentation

void EditedSource::applyRewrites ( EditsReceiver receiver)
bool EditedSource::canInsertInOffset ( SourceLocation  OrigLoc,
FileOffset  Offs 
)

Definition at line 61 of file EditedSource.cpp.

References clang::SourceLocation::getRawEncoding(), and I.

void EditedSource::clearRewrites ( )

Definition at line 427 of file EditedSource.cpp.

bool EditedSource::commit ( const Commit commit)
StringRef clang::edit::EditedSource::copyString ( StringRef  str)
inline

Definition at line 71 of file EditedSource.h.

Referenced by copyString().

StringRef EditedSource::copyString ( const Twine &  twine)

Definition at line 56 of file EditedSource.cpp.

References copyString().

const LangOptions& clang::edit::EditedSource::getLangOpts ( ) const
inline

Definition at line 59 of file EditedSource.h.

const PPConditionalDirectiveRecord* clang::edit::EditedSource::getPPCondDirectiveRecord ( ) const
inline

Definition at line 60 of file EditedSource.h.

const SourceManager& clang::edit::EditedSource::getSourceManager ( ) const
inline

Definition at line 58 of file EditedSource.h.


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