clang
3.9.0
|
#include <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 |
StringRef | getFileName () const |
ArrayRef< CharSourceRange > | getCharRanges () const |
const SourceManager & | getSourceManager () const |
Static Public Member Functions | |
static std::unique_ptr < Environment > | CreateVirtualEnvironment (StringRef Code, StringRef FileName, ArrayRef< tooling::Range > Ranges) |
Definition at line 39 of file TokenAnalyzer.h.
|
inline |
Definition at line 41 of file TokenAnalyzer.h.
|
inline |
Definition at line 44 of file TokenAnalyzer.h.
|
static |
Definition at line 40 of file TokenAnalyzer.cpp.
References clang::SrcMgr::C_User, End, clang::CharSourceRange::getCharRange(), clang::SourceLocation::getLocWithOffset(), and clang::FileID::isValid().
Referenced by clang::format::cleanup(), clang::format::reformat(), and clang::format::sortJavaScriptImports().
|
inline |
Definition at line 62 of file TokenAnalyzer.h.
|
inline |
Definition at line 58 of file TokenAnalyzer.h.
Referenced by clang::format::TokenAnalyzer::process().
|
inline |
Definition at line 60 of file TokenAnalyzer.h.
|
inline |
Definition at line 64 of file TokenAnalyzer.h.
Referenced by clang::format::JavaScriptImportSorter::analyze(), and clang::format::TokenAnalyzer::process().