clang  12.0.0git
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/clang/lib/Index/SimpleFormatContext.h"

Collaboration diagram for clang::index::SimpleFormatContext:
Collaboration graph

Public Member Functions

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

Public Attributes

IntrusiveRefCntPtr< DiagnosticOptionsDiagOpts
IntrusiveRefCntPtr< DiagnosticsEngineDiagnostics
IntrusiveRefCntPtr< llvm::vfs::InMemoryFileSystem > InMemoryFileSystem
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 34 of file SimpleFormatContext.h.

Constructor & Destructor Documentation

◆ SimpleFormatContext()

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

Definition at line 36 of file SimpleFormatContext.h.

Member Function Documentation

◆ createInMemoryFile()

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

Definition at line 45 of file SimpleFormatContext.h.

◆ getRewrittenText()

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

Member Data Documentation

◆ Diagnostics

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

Definition at line 62 of file SimpleFormatContext.h.

◆ DiagOpts

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

Definition at line 61 of file SimpleFormatContext.h.

◆ Files

FileManager clang::index::SimpleFormatContext::Files

Definition at line 64 of file SimpleFormatContext.h.

◆ InMemoryFileSystem

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

Definition at line 63 of file SimpleFormatContext.h.

◆ Rewrite

Rewriter clang::index::SimpleFormatContext::Rewrite

Definition at line 66 of file SimpleFormatContext.h.

Referenced by getRewrittenText().

◆ Sources

SourceManager clang::index::SimpleFormatContext::Sources

Definition at line 65 of file SimpleFormatContext.h.

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