clang 20.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
 
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 26 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 40 of file TokenAnalyzer.h.

◆ getFileID()

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

Definition at line 36 of file TokenAnalyzer.h.

Referenced by clang::format::TokenAnalyzer::process().

◆ getFirstStartColumn()

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

Definition at line 44 of file TokenAnalyzer.h.

Referenced by clang::format::TokenAnalyzer::process().

◆ getLastStartColumn()

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

Definition at line 52 of file TokenAnalyzer.h.

◆ getNextStartColumn()

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

Definition at line 48 of file TokenAnalyzer.h.

◆ getSourceManager()

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

◆ 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: