17 #ifndef LLVM_CLANG_LIB_FORMAT_TOKENANALYZER_H 18 #define LLVM_CLANG_LIB_FORMAT_TOKENANALYZER_H 31 #include "llvm/ADT/STLExtras.h" 32 #include "llvm/Support/Debug.h" 40 : SM(SM), ID(ID), CharRanges(Ranges.begin(), Ranges.end()),
41 FirstStartColumn(0), NextStartColumn(0), LastStartColumn(0) {}
50 unsigned NextStartColumn = 0,
unsigned LastStartColumn = 0);
72 std::unique_ptr<SourceManagerForFile> VirtualSM;
80 unsigned FirstStartColumn;
81 unsigned NextStartColumn;
82 unsigned LastStartColumn;
89 std::pair<tooling::Replacements, unsigned> process();
92 virtual std::pair<tooling::Replacements, unsigned>
97 void consumeUnwrappedLine(
const UnwrappedLine &TheLine)
override;
99 void finishRun()
override;
Defines the clang::FileManager interface and associated types.
Defines the SourceManager interface.
AffectedRangeManager class manages affected ranges in the code.
Contains functions for text encoding manipulation.
This file implements a token annotator, i.e.
Defines the Diagnostic-related interfaces.
This file contains the declaration of the UnwrappedLineParser, which turns a stream of tokens into Un...
An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...
Dataflow Directional Tag Classes.
This class handles loading and caching of source files into memory.