#include "FormatToken.h"
#include "ContinuationIndenter.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Debug.h"
#include <climits>
namespace clang {
namespace format {
const char *getTokenTypeName(TokenType Type) { … }
static SmallVector<StringRef> CppNonKeywordTypes = …;
bool FormatToken::isTypeName(const LangOptions &LangOpts) const { … }
bool FormatToken::isTypeOrIdentifier(const LangOptions &LangOpts) const { … }
bool FormatToken::isBlockIndentedInitRBrace(const FormatStyle &Style) const { … }
bool FormatToken::opensBlockOrBlockTypeList(const FormatStyle &Style) const { … }
TokenRole::~TokenRole() { … }
void TokenRole::precomputeFormattingInfos(const FormatToken *Token) { … }
unsigned CommaSeparatedList::formatAfterToken(LineState &State,
ContinuationIndenter *Indenter,
bool DryRun) { … }
unsigned CommaSeparatedList::formatFromToken(LineState &State,
ContinuationIndenter *Indenter,
bool DryRun) { … }
static unsigned CodePointsBetween(const FormatToken *Begin,
const FormatToken *End) { … }
void CommaSeparatedList::precomputeFormattingInfos(const FormatToken *Token) { … }
const CommaSeparatedList::ColumnFormat *
CommaSeparatedList::getColumnFormat(unsigned RemainingCharacters) const { … }
bool startsNextParameter(const FormatToken &Current, const FormatStyle &Style) { … }
}
}