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>
93 process(
bool SkipAnnotation =
false);
96 virtual std::pair<tooling::Replacements, unsigned>
AffectedRangeManager class manages affected ranges in the code.
Defines the Diagnostic-related interfaces.
Contains functions for text encoding manipulation.
Defines the clang::FileManager interface and associated types.
Defines the SourceManager interface.
This file implements a token annotator, i.e.
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...
This class handles loading and caching of source files into memory.