15 #ifndef LLVM_CLANG_LIB_FORMAT_WHITESPACEMANAGER_H 16 #define LLVM_CLANG_LIB_FORMAT_WHITESPACEMANAGER_H 41 : SourceMgr(SourceMgr), Style(Style), UseCRLF(UseCRLF) {}
52 unsigned StartOfTokenColumn,
78 unsigned ReplaceChars,
79 StringRef PreviousPostfix,
80 StringRef CurrentPrefix,
bool InPPDirective,
81 unsigned Newlines,
int Spaces);
172 void calculateLineBreakInformation();
175 void alignConsecutiveMacros();
178 void alignConsecutiveAssignments();
181 void alignConsecutiveDeclarations();
184 void alignTrailingComments();
188 void alignTrailingComments(
unsigned Start,
unsigned End,
unsigned Column);
191 void alignEscapedNewlines();
195 void alignEscapedNewlines(
unsigned Start,
unsigned End,
unsigned Column);
198 void generateChanges();
202 void appendNewlineText(std::string &Text,
unsigned Newlines);
203 void appendEscapedNewlineText(std::string &Text,
unsigned Newlines,
206 void appendIndentText(std::string &Text,
unsigned IndentLevel,
207 unsigned Spaces,
unsigned WhitespaceStartColumn);
Defines the SourceManager interface.
This file implements a token annotator, i.e.
Dataflow Directional Tag Classes.
A trivial tuple used to represent a source range.
This class handles loading and caching of source files into memory.