clang  6.0.0svn
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. More...

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/Index/SimpleFormatContext.h"

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

Public Member Functions

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

Public Attributes

IntrusiveRefCntPtr< DiagnosticOptionsDiagOpts
 
IntrusiveRefCntPtr< DiagnosticsEngineDiagnostics
 
IntrusiveRefCntPtr< vfs::InMemoryFileSystemInMemoryFileSystem
 
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

◆ SimpleFormatContext()

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

Definition at line 37 of file SimpleFormatContext.h.

Member Function Documentation

◆ createInMemoryFile()

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

Definition at line 48 of file SimpleFormatContext.h.

◆ getRewrittenText()

std::string clang::index::SimpleFormatContext::getRewrittenText ( FileID  ID)
inline

Member Data Documentation

◆ Diagnostics

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

Definition at line 65 of file SimpleFormatContext.h.

◆ DiagOpts

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

Definition at line 64 of file SimpleFormatContext.h.

◆ Files

FileManager clang::index::SimpleFormatContext::Files

Definition at line 67 of file SimpleFormatContext.h.

◆ InMemoryFileSystem

IntrusiveRefCntPtr<vfs::InMemoryFileSystem> clang::index::SimpleFormatContext::InMemoryFileSystem

Definition at line 66 of file SimpleFormatContext.h.

◆ Rewrite

Rewriter clang::index::SimpleFormatContext::Rewrite

Definition at line 69 of file SimpleFormatContext.h.

Referenced by getRewrittenText().

◆ Sources

SourceManager clang::index::SimpleFormatContext::Sources

Definition at line 68 of file SimpleFormatContext.h.


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