Go to the documentation of this file.
16 #ifndef LLVM_CLANG_LIB_FORMAT_TOKENANALYZER_H
17 #define LLVM_CLANG_LIB_FORMAT_TOKENANALYZER_H
30 #include "llvm/ADT/STLExtras.h"
31 #include "llvm/Support/Debug.h"
44 Environment(StringRef Code, StringRef FileName,
unsigned FirstStartColumn = 0,
45 unsigned NextStartColumn = 0,
unsigned LastStartColumn = 0);
67 static std::unique_ptr<Environment>
make(StringRef Code, StringRef FileName,
69 unsigned FirstStartColumn = 0,
70 unsigned NextStartColumn = 0,
71 unsigned LastStartColumn = 0);
75 std::unique_ptr<SourceManagerForFile> VirtualSM;
83 unsigned FirstStartColumn;
84 unsigned NextStartColumn;
85 unsigned LastStartColumn;
92 std::pair<tooling::Replacements, unsigned>
process();
95 virtual std::pair<tooling::Replacements, unsigned>
This class handles loading and caching of source files into memory.
An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...