clang  14.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::format::Environment Class Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Format/TokenAnalyzer.h"

Public Member Functions

 Environment (StringRef Code, StringRef FileName, unsigned FirstStartColumn=0, unsigned NextStartColumn=0, unsigned LastStartColumn=0)
 
FileID getFileID () const
 
const SourceManagergetSourceManager () const
 
ArrayRef< CharSourceRangegetCharRanges () const
 
unsigned getFirstStartColumn () const
 
unsigned getNextStartColumn () const
 
unsigned getLastStartColumn () const
 

Static Public Member Functions

static std::unique_ptr< Environmentmake (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()

clang::format::Environment::Environment ( StringRef  Code,
StringRef  FileName,
unsigned  FirstStartColumn = 0,
unsigned  NextStartColumn = 0,
unsigned  LastStartColumn = 0 
)

Definition at line 79 of file TokenAnalyzer.cpp.

Member Function Documentation

◆ getCharRanges()

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

Definition at line 51 of file TokenAnalyzer.h.

◆ getFileID()

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

Definition at line 47 of file TokenAnalyzer.h.

◆ getFirstStartColumn()

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

Definition at line 55 of file TokenAnalyzer.h.

◆ getLastStartColumn()

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

Definition at line 63 of file TokenAnalyzer.h.

◆ getNextStartColumn()

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

Definition at line 59 of file TokenAnalyzer.h.

◆ getSourceManager()

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

Definition at line 49 of file TokenAnalyzer.h.

◆ make()

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

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