clang API Documentation

Public Member Functions | Public Attributes
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:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SimpleFormatContext (LangOptions Options)
 ~SimpleFormatContext ()
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

Definition at line 37 of file SimpleFormatContext.h.

References Diagnostics.

Definition at line 47 of file SimpleFormatContext.h.


Member Function Documentation

FileID clang::index::SimpleFormatContext::createInMemoryFile ( StringRef  Name,
StringRef  Content 
) [inline]

Member Data Documentation

Definition at line 68 of file SimpleFormatContext.h.

Referenced by SimpleFormatContext().

Definition at line 67 of file SimpleFormatContext.h.

Definition at line 69 of file SimpleFormatContext.h.

Referenced by createInMemoryFile().

Definition at line 71 of file SimpleFormatContext.h.

Referenced by getRewrittenText().

Definition at line 70 of file SimpleFormatContext.h.

Referenced by createInMemoryFile().


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