Home
last modified time | relevance | path

Searched refs:FormatToken (Results 1 – 18 of 18) sorted by relevance

/external/clang/lib/Format/
DFormatToken.h100 struct FormatToken { struct
101 FormatToken() in FormatToken() argument
361 FormatToken *getPreviousNonComment() const { in getPreviousNonComment() argument
362 FormatToken *Tok = Previous; in getPreviousNonComment()
369 const FormatToken *getNextNonComment() const { in getNextNonComment() argument
370 const FormatToken *Tok = Next; in getNextNonComment()
390 FormatToken *MatchingParen; argument
392 FormatToken *Previous; argument
393 FormatToken *Next; argument
407 FormatToken(const FormatToken &) LLVM_DELETED_FUNCTION; argument
[all …]
DTokenAnnotator.h52 FormatToken *Current = First; in AnnotatedLine()
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);
DUnwrappedLineParser.h62 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) {} in UnwrappedLineNode()
207 FormatToken *Tok;
DFormatToken.cpp27 bool FormatToken::isSimpleTypeSpecifier() const { in isSimpleTypeSpecifier()
57 void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {} in precomputeFormattingInfos()
66 const FormatToken *LBrace = State.NextToken->Previous->Previous; in formatAfterToken()
123 static unsigned CodePointsBetween(const FormatToken *Begin, in CodePointsBetween()
124 const FormatToken *End) { in CodePointsBetween()
129 void CommaSeparatedList::precomputeFormattingInfos(const FormatToken *Token) { in precomputeFormattingInfos()
139 FormatToken *ItemBegin = Token->Next; in precomputeFormattingInfos()
154 const FormatToken *ItemEnd = nullptr; in precomputeFormattingInfos()
157 const FormatToken *NonCommentEnd = ItemEnd->getPreviousNonComment(); in precomputeFormattingInfos()
DTokenAnnotator.cpp47 FormatToken *Left = CurrentToken->Previous; in parseAngle()
97 FormatToken *Left = CurrentToken->Previous; in parseParens()
101 } else if (FormatToken *MaybeSel = Left->Previous) { in parseParens()
150 FormatToken *Prev = CurrentToken->getPreviousNonComment(); in parseParens()
152 FormatToken *PrevPrev = Prev->getPreviousNonComment(); in parseParens()
153 FormatToken *Next = CurrentToken->Next; in parseParens()
210 FormatToken *Tok = CurrentToken; in parseParens()
227 FormatToken *Left = CurrentToken->Previous; in parseSquare()
228 FormatToken *Parent = Left->getPreviousNonComment(); in parseSquare()
287 FormatToken* Tok = CurrentToken; in parseSquare()
[all …]
DContinuationIndenter.cpp31 static unsigned getLengthToMatchingParen(const FormatToken &Tok) { in getLengthToMatchingParen()
34 FormatToken *End = Tok.MatchingParen; in getLengthToMatchingParen()
43 static bool startsSegmentOfBuilderTypeCall(const FormatToken &Tok) { in startsSegmentOfBuilderTypeCall()
48 static bool startsNextParameter(const FormatToken &Current, in startsNextParameter()
50 const FormatToken &Previous = *Current.Previous; in startsNextParameter()
92 const FormatToken &Current = *State.NextToken; in canBreak()
93 const FormatToken &Previous = *Current.Previous; in canBreak()
128 const FormatToken &Current = *State.NextToken; in mustBreak()
129 const FormatToken &Previous = *Current.Previous; in mustBreak()
231 const FormatToken &Current = *State.NextToken; in addTokenToState()
[all …]
DBreakableToken.h75 BreakableToken(const FormatToken &Tok, unsigned IndentLevel, in BreakableToken()
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,
DWhitespaceManager.h49 void replaceWhitespace(FormatToken &Tok, unsigned Newlines,
58 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective);
74 void replaceWhitespaceInToken(const FormatToken &Tok, unsigned Offset,
DUnwrappedLineParser.cpp27 virtual FormatToken *getNextToken() = 0;
30 virtual FormatToken *setPosition(unsigned Position) = 0;
59 FormatToken *&ResetToken, bool &StructuralError) in ScopedMacroState()
77 FormatToken *getNextToken() override { in getNextToken()
89 FormatToken *setPosition(unsigned Position) override { in setPosition()
97 FormatToken *getFakeEOF() { in getFakeEOF()
99 static FormatToken FormatTok; in getFakeEOF()
110 FormatToken *&ResetToken;
116 FormatToken *Token;
178 IndexedTokenSource(ArrayRef<FormatToken *> Tokens) in IndexedTokenSource()
[all …]
DContinuationIndenter.h29 struct FormatToken;
97 unsigned breakProtrudingToken(const FormatToken &Current, LineState &State,
127 unsigned addMultilineToken(const FormatToken &Current, LineState &State);
307 FormatToken *NextToken;
DFormat.cpp719 FormatToken *Tok = I[1]->First; in tryMergeSimpleBlock()
781 for (const FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) { in containsMustBreak()
818 const FormatToken *FirstTok = TheLine.First; in format()
902 for (FormatToken *Tok = TheLine.First; Tok; Tok = Tok->Next) { in format()
927 for (FormatToken *Tok = TheLine.First; Tok; Tok = Tok->Next) { in format()
983 int getIndentOffset(const FormatToken &RootToken) { in getIndentOffset()
991 void formatFirstToken(FormatToken &RootToken, in formatFirstToken()
1048 for (FormatToken *Tok = B.First; Tok; Tok = Tok->Next) { in join()
1199 FormatToken &Previous = *State.NextToken->Previous; in formatChildren()
1200 const FormatToken *LBrace = State.NextToken->getPreviousNonComment(); in formatChildren()
[all …]
DCMakeLists.txt7 FormatToken.cpp
DAndroid.mk28 FormatToken.cpp \
DBreakableToken.cpp145 const FormatToken &Tok, unsigned IndentLevel, unsigned StartColumn, in BreakableSingleLineToken()
156 const FormatToken &Tok, unsigned IndentLevel, unsigned StartColumn, in BreakableStringLiteral()
201 const FormatToken &Token, unsigned IndentLevel, unsigned StartColumn, in BreakableLineComment()
252 const FormatToken &Token, unsigned IndentLevel, unsigned StartColumn, in BreakableBlockComment()
DWhitespaceManager.cpp46 void WhitespaceManager::replaceWhitespace(FormatToken &Tok, unsigned Newlines, in replaceWhitespace()
58 void WhitespaceManager::addUntouchableToken(const FormatToken &Tok, in addUntouchableToken()
69 const FormatToken &Tok, unsigned Offset, unsigned ReplaceChars, in replaceWhitespaceInToken()
/external/vixl/src/a64/
Ddebugger-a64.h105 class FormatToken; variable
159 const FormatToken* format,
163 const FormatToken* format);
165 const FormatToken* format);
Ddebugger-a64.cc187 class FormatToken : public Token { class
189 FormatToken() {} in FormatToken() function in vixl::FormatToken
198 static FormatToken* Cast(Token* tok) { in Cast()
200 return reinterpret_cast<FormatToken*>(tok); in Cast()
205 template<typename T> class Format : public FormatToken {
327 PrintCommand(Token* name, Token* target, FormatToken* format) in PrintCommand()
335 FormatToken* format() { return format_; } in format()
347 FormatToken* format_;
354 FormatToken* format, in ExamineCommand()
364 FormatToken* format() { return format_; } in format()
[all …]
/external/clang/patches/
D0004-Add-Android-build-system.patch1007 + FormatToken.cpp \