clang  6.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
clang::format::Environment Class Reference

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/Format/TokenAnalyzer.h"

Public Member Functions

 Environment (SourceManager &SM, FileID ID, ArrayRef< CharSourceRange > Ranges)
 
 Environment (FileID ID, std::unique_ptr< FileManager > FileMgr, std::unique_ptr< SourceManager > VirtualSM, std::unique_ptr< DiagnosticsEngine > Diagnostics, const std::vector< CharSourceRange > &CharRanges)
 
FileID getFileID () const
 
ArrayRef< CharSourceRangegetCharRanges () const
 
const SourceManagergetSourceManager () const
 

Static Public Member Functions

static std::unique_ptr< EnvironmentCreateVirtualEnvironment (StringRef Code, StringRef FileName, ArrayRef< tooling::Range > Ranges)
 

Detailed Description

Definition at line 37 of file TokenAnalyzer.h.

Constructor & Destructor Documentation

◆ Environment() [1/2]

clang::format::Environment::Environment ( SourceManager SM,
FileID  ID,
ArrayRef< CharSourceRange Ranges 
)
inline

Definition at line 39 of file TokenAnalyzer.h.

◆ Environment() [2/2]

clang::format::Environment::Environment ( FileID  ID,
std::unique_ptr< FileManager FileMgr,
std::unique_ptr< SourceManager VirtualSM,
std::unique_ptr< DiagnosticsEngine Diagnostics,
const std::vector< CharSourceRange > &  CharRanges 
)
inline

Definition at line 42 of file TokenAnalyzer.h.

References CreateVirtualEnvironment().

Member Function Documentation

◆ CreateVirtualEnvironment()

std::unique_ptr< Environment > clang::format::Environment::CreateVirtualEnvironment ( StringRef  Code,
StringRef  FileName,
ArrayRef< tooling::Range Ranges 
)
static

Definition at line 40 of file TokenAnalyzer.cpp.

Referenced by Environment().

◆ getCharRanges()

ArrayRef<CharSourceRange> clang::format::Environment::getCharRanges ( ) const
inline

Definition at line 58 of file TokenAnalyzer.h.

◆ getFileID()

FileID clang::format::Environment::getFileID ( ) const
inline

Definition at line 56 of file TokenAnalyzer.h.

◆ getSourceManager()

const SourceManager& clang::format::Environment::getSourceManager ( ) const
inline

Definition at line 60 of file TokenAnalyzer.h.


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