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, unsigned FirstStartColumn, unsigned NextStartColumn, unsigned LastStartColumn)
 
FileID getFileID () const
 
ArrayRef< CharSourceRangegetCharRanges () const
 
const SourceManagergetSourceManager () const
 
unsigned getFirstStartColumn () const
 
unsigned getNextStartColumn () const
 
unsigned getLastStartColumn () const
 

Static Public Member Functions

static std::unique_ptr< EnvironmentCreateVirtualEnvironment (StringRef Code, StringRef FileName, ArrayRef< tooling::Range > Ranges, unsigned FirstStartColumn=0, unsigned NextStartColumn=0, unsigned LastStartColumn=0)
 

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,
unsigned  FirstStartColumn,
unsigned  NextStartColumn,
unsigned  LastStartColumn 
)
inline

Definition at line 45 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,
unsigned  FirstStartColumn = 0,
unsigned  NextStartColumn = 0,
unsigned  LastStartColumn = 0 
)
static

Definition at line 40 of file TokenAnalyzer.cpp.

Referenced by Environment().

◆ getCharRanges()

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

Definition at line 74 of file TokenAnalyzer.h.

◆ getFileID()

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

Definition at line 72 of file TokenAnalyzer.h.

◆ getFirstStartColumn()

unsigned clang::format::Environment::getFirstStartColumn ( ) const
inline

Definition at line 80 of file TokenAnalyzer.h.

◆ getLastStartColumn()

unsigned clang::format::Environment::getLastStartColumn ( ) const
inline

Definition at line 88 of file TokenAnalyzer.h.

◆ getNextStartColumn()

unsigned clang::format::Environment::getNextStartColumn ( ) const
inline

Definition at line 84 of file TokenAnalyzer.h.

◆ getSourceManager()

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

Definition at line 76 of file TokenAnalyzer.h.


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