Home
last modified time | relevance | path

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

/external/clang/lib/Format/
DTokenAnnotator.h53 FormatToken *Current = First; in AnnotatedLine()
75 FormatToken *Current = First; in ~AnnotatedLine()
98 FormatToken *First;
99 FormatToken *Last;
127 bool startsWith(FormatToken *Tok, A K1) const { in startsWith()
134 bool startsWith(FormatToken *Tok, A K1, Ts... Tokens) const { in startsWith()
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 …]
DUnwrappedLineParser.h65 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) {} in UnwrappedLineNode()
210 FormatToken *Tok;
DFormatToken.h112 struct FormatToken { struct
113 FormatToken() {} in FormatToken() argument
261 FormatToken *MatchingParen = nullptr; argument
264 FormatToken *Previous = nullptr; argument
267 FormatToken *Next = nullptr; argument
398 FormatToken *getPreviousNonComment() const { in getPreviousNonComment() argument
399 FormatToken *Tok = Previous; in getPreviousNonComment()
406 const FormatToken *getNextNonComment() const { in getNextNonComment() argument
407 const FormatToken *Tok = Next; in getNextNonComment()
429 FormatToken(const FormatToken &) = delete; argument
[all …]
DTokenAnnotator.cpp47 FormatToken *Left = CurrentToken->Previous; in parseAngle()
102 FormatToken *Left = CurrentToken->Previous; in parseParens()
114 } else if (FormatToken *MaybeSel = Left->Previous) { in parseParens()
169 FormatToken *Prev = CurrentToken->getPreviousNonComment(); in parseParens()
171 FormatToken *PrevPrev = Prev->getPreviousNonComment(); in parseParens()
172 FormatToken *Next = CurrentToken->Next; in parseParens()
243 FormatToken *Tok = CurrentToken; in parseParens()
260 FormatToken *Left = CurrentToken->Previous; in parseSquare()
262 FormatToken *Parent = Left->getPreviousNonComment(); in parseSquare()
341 FormatToken *Tok = CurrentToken; in parseSquare()
[all …]
DFormatToken.cpp42 bool FormatToken::isSimpleTypeSpecifier() const { in isSimpleTypeSpecifier()
72 void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {} in precomputeFormattingInfos()
81 const FormatToken *LBrace = in formatAfterToken()
139 static unsigned CodePointsBetween(const FormatToken *Begin, in CodePointsBetween()
140 const FormatToken *End) { in CodePointsBetween()
145 void CommaSeparatedList::precomputeFormattingInfos(const FormatToken *Token) { in precomputeFormattingInfos()
161 FormatToken *ItemBegin = Token->Next; in precomputeFormattingInfos()
181 const FormatToken *ItemEnd = nullptr; in precomputeFormattingInfos()
184 const FormatToken *NonCommentEnd = ItemEnd->getPreviousNonComment(); in precomputeFormattingInfos()
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,
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()
93 const FormatToken &Current = *State.NextToken; in canBreak()
94 const FormatToken &Previous = *Current.Previous; in canBreak()
137 const FormatToken &Current = *State.NextToken; in mustBreak()
138 const FormatToken &Previous = *Current.Previous; in mustBreak()
259 const FormatToken &Current = *State.NextToken; in addTokenToState()
[all …]
DUnwrappedLineParser.cpp29 virtual FormatToken *getNextToken() = 0;
32 virtual FormatToken *setPosition(unsigned Position) = 0;
61 FormatToken *&ResetToken) 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;
114 FormatToken *Token;
173 IndexedTokenSource(ArrayRef<FormatToken *> Tokens) in IndexedTokenSource()
[all …]
DWhitespaceManager.h49 void replaceWhitespace(FormatToken &Tok, unsigned Newlines,
58 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective);
74 void replaceWhitespaceInToken(const FormatToken &Tok, unsigned Offset,
DContinuationIndenter.h30 struct FormatToken;
99 unsigned breakProtrudingToken(const FormatToken &Current, LineState &State,
129 unsigned addMultilineToken(const FormatToken &Current, LineState &State);
314 FormatToken *NextToken;
DFormat.cpp779 ArrayRef<FormatToken *> lex() { in lex()
856 SmallVectorImpl<FormatToken *>::const_iterator First = in tryMergeTokens()
877 bool precedesOperand(FormatToken *Tok) { in precedesOperand()
891 bool canPrecedeRegexLiteral(FormatToken *Prev) { in canPrecedeRegexLiteral()
915 FormatToken *RegexToken = Tokens.back(); in tryParseJSRegexLiteral()
919 FormatToken *Prev = nullptr; in tryParseJSRegexLiteral()
973 FormatToken *EndBacktick = Tokens.back(); in tryMergeTemplateString()
1060 FormatToken *Last = Tokens.back(); in tryMerge_TMacro()
1064 FormatToken *String = Tokens[Tokens.size() - 2]; in tryMerge_TMacro()
1071 FormatToken *Macro = Tokens[Tokens.size() - 4]; in tryMerge_TMacro()
[all …]
DUnwrappedLineFormatter.cpp22 const FormatToken *Next = Line.First->getNextNonComment(); in startsExternCBlock()
23 const FormatToken *NextNext = Next ? Next->getNextNonComment() : nullptr; in startsExternCBlock()
87 int getIndentOffset(const FormatToken &RootToken) { in getIndentOffset()
356 FormatToken *Tok = I[1]->First; in tryMergeSimpleBlock()
424 for (const FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) { in containsMustBreak()
440 for (FormatToken *Tok = B.First; Tok; Tok = Tok->Next) { in join()
453 static void markFinalized(FormatToken *Tok) { in markFinalized()
511 const FormatToken *LBrace = State.NextToken->getPreviousNonComment(); in formatChildren()
512 FormatToken &Previous = *State.NextToken->Previous; in formatChildren()
888 for (FormatToken *Tok = TheLine.First->Next; Tok; Tok = Tok->Next) in format()
[all …]
DCMakeLists.txt7 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()
253 const FormatToken &Token, unsigned IndentLevel, unsigned StartColumn, in BreakableBlockComment()
DUnwrappedLineFormatter.h49 void formatFirstToken(FormatToken &RootToken,
DAndroid.mk25 FormatToken.cpp \
DWhitespaceManager.cpp50 void WhitespaceManager::replaceWhitespace(FormatToken &Tok, unsigned Newlines, in replaceWhitespace()
63 void WhitespaceManager::addUntouchableToken(const FormatToken &Tok, in addUntouchableToken()
75 const FormatToken &Tok, unsigned Offset, unsigned ReplaceChars, in replaceWhitespaceInToken()
/external/vixl/src/vixl/a64/
Ddebugger-a64.h54 class FormatToken; variable
90 const FormatToken* format,
94 const FormatToken* format);
96 const FormatToken* format);
Ddebugger-a64.cc192 class FormatToken : public Token { class
194 FormatToken() {} in FormatToken() function in vixl::FormatToken
208 static FormatToken* Cast(Token* tok) { in Cast()
210 return reinterpret_cast<FormatToken*>(tok); in Cast()
215 template<typename T> class Format : public FormatToken {
341 PrintCommand(Token* name, Token* target, FormatToken* format) in PrintCommand()
349 FormatToken* format() { return format_; } in format()
361 FormatToken* format_;
368 FormatToken* format, in ExamineCommand()
378 FormatToken* format() { return format_; } in format()
[all …]
/external/llvm/test/CodeGen/PowerPC/
DBreakableToken-reduced.ll33 %"class.clang::format::BreakableToken" = type { i32 (...)**, %"struct.clang::format::FormatToken"*,…
35FormatToken" = type <{ %"class.clang::Token", i32, i8, [3 x i8], %"class.clang::SourceRange", i32,…
243 …%ref = load %"struct.clang::format::FormatToken"*, %"struct.clang::format::FormatToken"** %Tok, al…
263 …mat::WhitespaceManager"* nonnull %Whitespaces, %"struct.clang::format::FormatToken"* dereferenceab…
270 …ji(%"class.clang::format::WhitespaceManager"*, %"struct.clang::format::FormatToken"* dereferenceab…