clang  3.7.0
Public Member Functions | Public Attributes | List of all members
clang::index::SimpleFormatContext Class Reference

A small class to be used by libclang clients to format a declaration string in memory. This object is instantiated once and used each time a formatting is needed. More...

#include <SimpleFormatContext.h>

Collaboration diagram for clang::index::SimpleFormatContext:
[legend]

Public Member Functions

 SimpleFormatContext (LangOptions Options)
 
FileID createInMemoryFile (StringRef Name, StringRef Content)
 
std::string getRewrittenText (FileID ID)
 

Public Attributes

IntrusiveRefCntPtr
< DiagnosticOptions
DiagOpts
 
IntrusiveRefCntPtr
< DiagnosticsEngine
Diagnostics
 
FileManager Files
 
SourceManager Sources
 
Rewriter Rewrite
 

Detailed Description

A small class to be used by libclang clients to format a declaration string in memory. This object is instantiated once and used each time a formatting is needed.

Definition at line 35 of file SimpleFormatContext.h.

Constructor & Destructor Documentation

clang::index::SimpleFormatContext::SimpleFormatContext ( LangOptions  Options)
inline

Definition at line 37 of file SimpleFormatContext.h.

References Diagnostics.

Member Function Documentation

FileID clang::index::SimpleFormatContext::createInMemoryFile ( StringRef  Name,
StringRef  Content 
)
inline
std::string clang::index::SimpleFormatContext::getRewrittenText ( FileID  ID)
inline

Member Data Documentation

IntrusiveRefCntPtr<DiagnosticsEngine> clang::index::SimpleFormatContext::Diagnostics

Definition at line 66 of file SimpleFormatContext.h.

Referenced by SimpleFormatContext().

IntrusiveRefCntPtr<DiagnosticOptions> clang::index::SimpleFormatContext::DiagOpts

Definition at line 65 of file SimpleFormatContext.h.

FileManager clang::index::SimpleFormatContext::Files

Definition at line 67 of file SimpleFormatContext.h.

Referenced by createInMemoryFile().

Rewriter clang::index::SimpleFormatContext::Rewrite

Definition at line 69 of file SimpleFormatContext.h.

Referenced by getRewrittenText().

SourceManager clang::index::SimpleFormatContext::Sources

Definition at line 68 of file SimpleFormatContext.h.

Referenced by createInMemoryFile().


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