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

  /external/clang/lib/Format/
UnwrappedLineParser.h 19 #include "FormatToken.h"
65 ArrayRef<FormatToken *> Tokens,
115 void pushToken(FormatToken *Tok);
127 bool isOnNewLine(const FormatToken &FormatTok);
138 SmallVector<FormatToken *, 1> CommentsBeforeNextToken;
139 FormatToken *FormatTok;
169 ArrayRef<FormatToken *> AllTokens;
208 UnwrappedLineNode(FormatToken *Tok) : Tok(Tok) {}
210 FormatToken *Tok;
TokenAnnotator.h 53 FormatToken *Current = First;
75 FormatToken *Current = First;
98 FormatToken *First;
99 FormatToken *Last;
127 bool startsWith(FormatToken *Tok, A K1) const {
134 bool startsWith(FormatToken *Tok, A K1, Ts... Tokens) const {
156 unsigned splitPenalty(const AnnotatedLine &Line, const FormatToken &Tok,
159 bool spaceRequiredBetween(const AnnotatedLine &Line, const FormatToken &Left,
160 const FormatToken &Right);
162 bool spaceRequiredBefore(const AnnotatedLine &Line, const FormatToken &Tok)
    [all...]
FormatToken.h 1 //===--- FormatToken.h - Format C++ code ------------------------*- C++ -*-===//
11 /// \brief This file contains the declaration of the FormatToken, a wrapper
112 struct FormatToken {
113 FormatToken() {}
261 FormatToken *MatchingParen = nullptr;
264 FormatToken *Previous = nullptr;
267 FormatToken *Next = nullptr;
398 FormatToken *getPreviousNonComment() const {
399 FormatToken *Tok = Previous;
406 const FormatToken *getNextNonComment() const
    [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,
116 // FormatToken around to query its information.
FormatToken.cpp 1 //===--- FormatToken.cpp - Format C++ code --------------------------------===//
17 #include "FormatToken.h"
42 bool FormatToken::isSimpleTypeSpecifier() const {
72 void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {}
81 const FormatToken *LBrace =
139 static unsigned CodePointsBetween(const FormatToken *Begin,
140 const FormatToken *End) {
145 void CommaSeparatedList::precomputeFormattingInfos(const FormatToken *Token) {
161 FormatToken *ItemBegin = Token->Next;
181 const FormatToken *ItemEnd = nullptr
    [all...]
ContinuationIndenter.h 20 #include "FormatToken.h"
30 struct FormatToken;
99 unsigned breakProtrudingToken(const FormatToken &Current, LineState &State,
129 unsigned addMultilineToken(const FormatToken &Current, LineState &State);
314 FormatToken *NextToken;
UnwrappedLineFormatter.h 49 void formatFirstToken(FormatToken &RootToken,
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;
93 const FormatToken &Current = *State.NextToken;
94 const FormatToken &Previous = *Current.Previous;
137 const FormatToken &Current = *State.NextToken;
138 const FormatToken &Previous = *Current.Previous;
259 const FormatToken &Current = *State.NextToken
    [all...]
TokenAnnotator.cpp 47 FormatToken *Left = CurrentToken->Previous;
102 FormatToken *Left = CurrentToken->Previous;
114 } else if (FormatToken *MaybeSel = Left->Previous) {
169 FormatToken *Prev = CurrentToken->getPreviousNonComment();
171 FormatToken *PrevPrev = Prev->getPreviousNonComment();
172 FormatToken *Next = CurrentToken->Next;
243 FormatToken *Tok = CurrentToken;
260 FormatToken *Left = CurrentToken->Previous;
262 FormatToken *Parent = Left->getPreviousNonComment();
341 FormatToken *Tok = CurrentToken
    [all...]
Android.mk 25 FormatToken.cpp \
UnwrappedLineParser.cpp 29 virtual FormatToken *getNextToken() = 0;
32 virtual FormatToken *setPosition(unsigned Position) = 0;
61 FormatToken *&ResetToken)
77 FormatToken *getNextToken() override {
89 FormatToken *setPosition(unsigned Position) override {
97 FormatToken *getFakeEOF() {
99 static FormatToken FormatTok;
110 FormatToken *&ResetToken;
114 FormatToken *Token;
173 IndexedTokenSource(ArrayRef<FormatToken *> Tokens
    [all...]
UnwrappedLineFormatter.cpp 22 const FormatToken *Next = Line.First->getNextNonComment();
23 const FormatToken *NextNext = Next ? Next->getNextNonComment() : nullptr;
87 int getIndentOffset(const FormatToken &RootToken) {
356 FormatToken *Tok = I[1]->First;
424 for (const FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) {
440 for (FormatToken *Tok = B.First; Tok; Tok = Tok->Next) {
453 static void markFinalized(FormatToken *Tok) {
511 const FormatToken *LBrace = State.NextToken->getPreviousNonComment();
512 FormatToken &Previous = *State.NextToken->Previous;
    [all...]
Format.cpp     [all...]
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,
253 const FormatToken &Token, unsigned IndentLevel, unsigned StartColumn,
WhitespaceManager.cpp 50 void WhitespaceManager::replaceWhitespace(FormatToken &Tok, unsigned Newlines,
63 void WhitespaceManager::addUntouchableToken(const FormatToken &Tok,
75 const FormatToken &Tok, unsigned Offset, unsigned ReplaceChars,
200 // FIXME: This could use FormatToken::NestingLevel information, but there is
  /external/vixl/src/vixl/a64/
debugger-a64.h 54 class FormatToken;
90 const FormatToken* format,
94 const FormatToken* format);
96 const FormatToken* format);
debugger-a64.cc 192 class FormatToken : public Token {
194 FormatToken() {}
208 static FormatToken* Cast(Token* tok) {
210 return reinterpret_cast<FormatToken*>(tok);
215 template<typename T> class Format : public FormatToken {
341 PrintCommand(Token* name, Token* target, FormatToken* format)
349 FormatToken* format() { return format_; }
361 FormatToken* format_;
368 FormatToken* format,
378 FormatToken* format() { return format_;
    [all...]

Completed in 417 milliseconds