clang API Documentation

Classes | Public Member Functions
clang::edit::EditedSource Class Reference

#include <EditedSource.h>

List of all members.

Classes

struct  FileEdit

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 27 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 47 of file EditedSource.h.


Member Function Documentation

Definition at line 373 of file EditedSource.cpp.

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

Definition at line 65 of file EditedSource.h.

Referenced by copyString().

StringRef EditedSource::copyString ( const Twine &  twine)

Definition at line 26 of file EditedSource.cpp.

References copyString().

Definition at line 53 of file EditedSource.h.

Definition at line 54 of file EditedSource.h.

Definition at line 52 of file EditedSource.h.


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