HomeSort by relevance Sort by last modified time
    Searched refs:FormatToken (Results 1 - 14 of 14) sorted by null

  /external/clang/lib/Format/
UnwrappedLineParser.h 19 #include "FormatToken.h"
62 UnwrappedLineParser(const FormatStyle &Style, ArrayRef<FormatToken *> Tokens,
110 void pushToken(FormatToken *Tok);
122 bool isOnNewLine(const FormatToken &FormatTok);
133 SmallVector<FormatToken *, 1> CommentsBeforeNextToken;
134 FormatToken *FormatTok;
166 ArrayRef<FormatToken *> AllTokens;
205 UnwrappedLineNode(FormatToken *Tok) : Tok(Tok) {}
207 FormatToken *Tok;
TokenAnnotator.h 52 FormatToken *Current = First;
79 FormatToken *First;
80 FormatToken *Last;
124 unsigned splitPenalty(const AnnotatedLine &Line, const FormatToken &Tok,
127 bool spaceRequiredBetween(const AnnotatedLine &Line, const FormatToken &Left,
128 const FormatToken &Right);
130 bool spaceRequiredBefore(const AnnotatedLine &Line, const FormatToken &Tok);
132 bool mustBreakBefore(const AnnotatedLine &Line, const FormatToken &Right);
134 bool canBreakBefore(const AnnotatedLine &Line, const FormatToken &Right);
FormatToken.h 1 //===--- FormatToken.h - Format C++ code ------------------------*- C++ -*-===//
11 /// \brief This file contains the declaration of the FormatToken, a wrapper
100 struct FormatToken {
101 FormatToken()
361 FormatToken *getPreviousNonComment() const {
362 FormatToken *Tok = Previous;
369 const FormatToken *getNextNonComment() const {
370 const FormatToken *Tok = Next;
390 FormatToken *MatchingParen;
392 FormatToken *Previous
    [all...]
BreakableToken.h 75 BreakableToken(const FormatToken &Tok, unsigned IndentLevel,
81 const FormatToken &Tok;
98 BreakableSingleLineToken(const FormatToken &Tok, unsigned IndentLevel,
120 BreakableStringLiteral(const FormatToken &Tok, unsigned IndentLevel,
139 BreakableLineComment(const FormatToken &Token, unsigned IndentLevel,
165 BreakableBlockComment(const FormatToken &Token, unsigned IndentLevel,
WhitespaceManager.h 49 void replaceWhitespace(FormatToken &Tok, unsigned Newlines,
58 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective);
74 void replaceWhitespaceInToken(const FormatToken &Tok, unsigned Offset,
117 // FormatToken around to query its information.
FormatToken.cpp 1 //===--- FormatToken.cpp - Format C++ code --------------------------------===//
16 #include "FormatToken.h"
27 bool FormatToken::isSimpleTypeSpecifier() const {
57 void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {}
66 const FormatToken *LBrace = State.NextToken->Previous->Previous;
123 static unsigned CodePointsBetween(const FormatToken *Begin,
124 const FormatToken *End) {
129 void CommaSeparatedList::precomputeFormattingInfos(const FormatToken *Token) {
139 FormatToken *ItemBegin = Token->Next;
154 const FormatToken *ItemEnd = nullptr
    [all...]
ContinuationIndenter.cpp 31 static unsigned getLengthToMatchingParen(const FormatToken &Tok) {
34 FormatToken *End = Tok.MatchingParen;
43 static bool startsSegmentOfBuilderTypeCall(const FormatToken &Tok) {
48 static bool startsNextParameter(const FormatToken &Current,
50 const FormatToken &Previous = *Current.Previous;
92 const FormatToken &Current = *State.NextToken;
93 const FormatToken &Previous = *Current.Previous;
128 const FormatToken &Current = *State.NextToken;
129 const FormatToken &Previous = *Current.Previous;
231 const FormatToken &Current = *State.NextToken
    [all...]
ContinuationIndenter.h 29 struct FormatToken;
97 unsigned breakProtrudingToken(const FormatToken &Current, LineState &State,
127 unsigned addMultilineToken(const FormatToken &Current, LineState &State);
307 FormatToken *NextToken;
Android.mk 28 FormatToken.cpp \
TokenAnnotator.cpp 47 FormatToken *Left = CurrentToken->Previous;
97 FormatToken *Left = CurrentToken->Previous;
101 } else if (FormatToken *MaybeSel = Left->Previous) {
150 FormatToken *Prev = CurrentToken->getPreviousNonComment();
152 FormatToken *PrevPrev = Prev->getPreviousNonComment();
153 FormatToken *Next = CurrentToken->Next;
210 FormatToken *Tok = CurrentToken;
227 FormatToken *Left = CurrentToken->Previous;
228 FormatToken *Parent = Left->getPreviousNonComment();
287 FormatToken* Tok = CurrentToken
    [all...]
UnwrappedLineParser.cpp 27 virtual FormatToken *getNextToken() = 0;
30 virtual FormatToken *setPosition(unsigned Position) = 0;
59 FormatToken *&ResetToken, bool &StructuralError)
77 FormatToken *getNextToken() override {
89 FormatToken *setPosition(unsigned Position) override {
97 FormatToken *getFakeEOF() {
99 static FormatToken FormatTok;
110 FormatToken *&ResetToken;
116 FormatToken *Token;
178 IndexedTokenSource(ArrayRef<FormatToken *> Tokens
    [all...]
Format.cpp 719 FormatToken *Tok = I[1]->First;
781 for (const FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) {
818 const FormatToken *FirstTok = TheLine.First;
    [all...]
WhitespaceManager.cpp 46 void WhitespaceManager::replaceWhitespace(FormatToken &Tok, unsigned Newlines,
58 void WhitespaceManager::addUntouchableToken(const FormatToken &Tok,
69 const FormatToken &Tok, unsigned Offset, unsigned ReplaceChars,
BreakableToken.cpp 145 const FormatToken &Tok, unsigned IndentLevel, unsigned StartColumn,
156 const FormatToken &Tok, unsigned IndentLevel, unsigned StartColumn,
201 const FormatToken &Token, unsigned IndentLevel, unsigned StartColumn,
252 const FormatToken &Token, unsigned IndentLevel, unsigned StartColumn,

Completed in 224 milliseconds