/external/clang/lib/Format/ |
D | TokenAnnotator.h | 53 FormatToken *Current = First; in AnnotatedLine() 75 FormatToken *Current = First; in ~AnnotatedLine() 83 FormatToken *First; 84 FormatToken *Last; 129 unsigned splitPenalty(const AnnotatedLine &Line, const FormatToken &Tok, 132 bool spaceRequiredBetween(const AnnotatedLine &Line, const FormatToken &Left, 133 const FormatToken &Right); 135 bool spaceRequiredBefore(const AnnotatedLine &Line, const FormatToken &Tok); 137 bool mustBreakBefore(const AnnotatedLine &Line, const FormatToken &Right); 139 bool canBreakBefore(const AnnotatedLine &Line, const FormatToken &Right);
|
D | UnwrappedLineParser.h | 65 ArrayRef<FormatToken *> Tokens, 116 void pushToken(FormatToken *Tok); 128 bool isOnNewLine(const FormatToken &FormatTok); 139 SmallVector<FormatToken *, 1> CommentsBeforeNextToken; 140 FormatToken *FormatTok; 174 ArrayRef<FormatToken *> AllTokens; 213 UnwrappedLineNode(FormatToken *Tok) : Tok(Tok) {} in UnwrappedLineNode() 215 FormatToken *Tok;
|
D | FormatToken.h | 107 struct FormatToken { struct 108 FormatToken() in FormatToken() function 380 FormatToken *getPreviousNonComment() const { in getPreviousNonComment() argument 381 FormatToken *Tok = Previous; in getPreviousNonComment() 388 const FormatToken *getNextNonComment() const { in getNextNonComment() argument 389 const FormatToken *Tok = Next; in getNextNonComment() 409 FormatToken *MatchingParen; argument 411 FormatToken *Previous; argument 412 FormatToken *Next; argument 426 FormatToken(const FormatToken &) = delete; argument [all …]
|
D | TokenAnnotator.cpp | 47 FormatToken *Left = CurrentToken->Previous; in parseAngle() 102 FormatToken *Left = CurrentToken->Previous; in parseParens() 106 } else if (FormatToken *MaybeSel = Left->Previous) { in parseParens() 160 FormatToken *Prev = CurrentToken->getPreviousNonComment(); in parseParens() 162 FormatToken *PrevPrev = Prev->getPreviousNonComment(); in parseParens() 163 FormatToken *Next = CurrentToken->Next; in parseParens() 230 FormatToken *Tok = CurrentToken; in parseParens() 247 FormatToken *Left = CurrentToken->Previous; in parseSquare() 248 FormatToken *Parent = Left->getPreviousNonComment(); in parseSquare() 316 FormatToken *Tok = CurrentToken; in parseSquare() [all …]
|
D | FormatToken.cpp | 27 bool FormatToken::isSimpleTypeSpecifier() const { in isSimpleTypeSpecifier() 57 void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {} in precomputeFormattingInfos() 67 const FormatToken *LBrace = State.NextToken->Previous->Previous; in formatAfterToken() 124 static unsigned CodePointsBetween(const FormatToken *Begin, in CodePointsBetween() 125 const FormatToken *End) { in CodePointsBetween() 130 void CommaSeparatedList::precomputeFormattingInfos(const FormatToken *Token) { in precomputeFormattingInfos() 146 FormatToken *ItemBegin = Token->Next; in precomputeFormattingInfos() 164 const FormatToken *ItemEnd = nullptr; in precomputeFormattingInfos() 167 const FormatToken *NonCommentEnd = ItemEnd->getPreviousNonComment(); in precomputeFormattingInfos()
|
D | ContinuationIndenter.cpp | 31 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() 93 const FormatToken &Current = *State.NextToken; in canBreak() 94 const FormatToken &Previous = *Current.Previous; in canBreak() 136 const FormatToken &Current = *State.NextToken; in mustBreak() 137 const FormatToken &Previous = *Current.Previous; in mustBreak() 244 const FormatToken &Current = *State.NextToken; in addTokenToState() [all …]
|
D | BreakableToken.h | 75 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,
|
D | UnwrappedLineParser.cpp | 29 virtual FormatToken *getNextToken() = 0; 32 virtual FormatToken *setPosition(unsigned Position) = 0; 61 FormatToken *&ResetToken, bool &StructuralError) in ScopedMacroState() 79 FormatToken *getNextToken() override { in getNextToken() 91 FormatToken *setPosition(unsigned Position) override { in setPosition() 99 FormatToken *getFakeEOF() { in getFakeEOF() 101 static FormatToken FormatTok; in getFakeEOF() 112 FormatToken *&ResetToken; 118 FormatToken *Token; 179 IndexedTokenSource(ArrayRef<FormatToken *> Tokens) in IndexedTokenSource() [all …]
|
D | 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,
|
D | ContinuationIndenter.h | 30 struct FormatToken; 99 unsigned breakProtrudingToken(const FormatToken &Current, LineState &State, 129 unsigned addMultilineToken(const FormatToken &Current, LineState &State); 317 FormatToken *NextToken;
|
D | UnwrappedLineFormatter.cpp | 22 const FormatToken *Next = Line.First->getNextNonComment(); in startsExternCBlock() 23 const FormatToken *NextNext = Next ? Next->getNextNonComment() : nullptr; in startsExternCBlock() 230 FormatToken *Tok = I[1]->First; in tryMergeSimpleBlock() 293 for (const FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) { in containsMustBreak() 326 static void markFinalized(FormatToken *Tok) { in markFinalized() 359 const FormatToken *FirstTok = TheLine.First; in format() 444 for (FormatToken *Tok = TheLine.First; Tok; Tok = Tok->Next) { in format() 488 void UnwrappedLineFormatter::formatFirstToken(FormatToken &RootToken, in formatFirstToken() 550 for (FormatToken *Tok = B.First; Tok; Tok = Tok->Next) { in join() 674 const FormatToken *LBrace = State.NextToken->getPreviousNonComment(); in formatChildren() [all …]
|
D | Format.cpp | 614 ArrayRef<FormatToken *> lex() { in lex() 694 SmallVectorImpl<FormatToken *>::const_iterator First = in tryMergeTokens() 718 FormatToken *Previous = Tokens[Tokens.size() - 2]; in tryMergeEscapeSequence() 782 FormatToken *EndBacktick = Tokens.back(); in tryMergeTemplateString() 856 FormatToken *Last = Tokens.back(); in tryMerge_TMacro() 860 FormatToken *String = Tokens[Tokens.size() - 2]; in tryMerge_TMacro() 867 FormatToken *Macro = Tokens[Tokens.size() - 4]; in tryMerge_TMacro() 936 FormatToken *Next = Tokens.back(); in tryMergeConflictMarkers() 952 FormatToken *getStashedToken() { in getStashedToken() 958 FormatTok = new (Allocator.Allocate()) FormatToken; in getStashedToken() [all …]
|
D | UnwrappedLineFormatter.h | 79 int getIndentOffset(const FormatToken &RootToken) { in getIndentOffset() 91 void formatFirstToken(FormatToken &RootToken,
|
D | CMakeLists.txt | 7 FormatToken.cpp
|
D | BreakableToken.cpp | 145 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()
|
D | Android.mk | 25 FormatToken.cpp \
|
D | WhitespaceManager.cpp | 48 void WhitespaceManager::replaceWhitespace(FormatToken &Tok, unsigned Newlines, in replaceWhitespace() 60 void WhitespaceManager::addUntouchableToken(const FormatToken &Tok, in addUntouchableToken() 71 const FormatToken &Tok, unsigned Offset, unsigned ReplaceChars, in replaceWhitespaceInToken()
|
/external/vixl/src/vixl/a64/ |
D | debugger-a64.h | 52 class FormatToken; variable 88 const FormatToken* format, 92 const FormatToken* format); 94 const FormatToken* format);
|
D | debugger-a64.cc | 187 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/ |
D | 0004-Add-Android-build-system.patch | 1007 + FormatToken.cpp \
|