/external/clang/lib/Format/ |
D | FormatTokenLexer.h | 34 ArrayRef<FormatToken *> lex(); 46 bool precedesOperand(FormatToken *Tok); 48 bool canPrecedeRegexLiteral(FormatToken *Prev); 62 FormatToken *getStashedToken(); 64 FormatToken *getNextToken(); 66 FormatToken *FormatTok; 78 llvm::SpecificBumpPtrAllocator<FormatToken> Allocator; 81 SmallVector<FormatToken *, 16> Tokens; 89 void readRawToken(FormatToken &Tok);
|
D | UnwrappedLineParser.h | 65 ArrayRef<FormatToken *> Tokens, 114 const FormatToken *getPreviousToken(); 117 void pushToken(FormatToken *Tok); 129 bool isOnNewLine(const FormatToken &FormatTok); 140 SmallVector<FormatToken *, 1> CommentsBeforeNextToken; 141 FormatToken *FormatTok; 171 ArrayRef<FormatToken *> AllTokens; 210 UnwrappedLineNode(FormatToken *Tok) : Tok(Tok) {} in UnwrappedLineNode() 212 FormatToken *Tok;
|
D | TokenAnnotator.h | 53 FormatToken *Current = First; in AnnotatedLine() 75 FormatToken *Current = First; in ~AnnotatedLine() 106 FormatToken *First; 107 FormatToken *Last; 152 unsigned splitPenalty(const AnnotatedLine &Line, const FormatToken &Tok, 155 bool spaceRequiredBetween(const AnnotatedLine &Line, const FormatToken &Left, 156 const FormatToken &Right); 158 bool spaceRequiredBefore(const AnnotatedLine &Line, const FormatToken &Tok); 160 bool mustBreakBefore(const AnnotatedLine &Line, const FormatToken &Right); 162 bool canBreakBefore(const AnnotatedLine &Line, const FormatToken &Right);
|
D | FormatToken.h | 113 struct FormatToken { struct 114 FormatToken() {} in FormatToken() function 254 FormatToken *NextOperator = nullptr; argument 262 FormatToken *MatchingParen = nullptr; argument 265 FormatToken *Previous = nullptr; argument 268 FormatToken *Next = nullptr; argument 413 FormatToken *getPreviousNonComment() const { in getPreviousNonComment() argument 414 FormatToken *Tok = Previous; in getPreviousNonComment() 421 const FormatToken *getNextNonComment() const { in getNextNonComment() argument 422 const FormatToken *Tok = Next; in getNextNonComment() [all …]
|
D | FormatToken.cpp | 42 bool FormatToken::isSimpleTypeSpecifier() const { in isSimpleTypeSpecifier() 73 void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {} in precomputeFormattingInfos() 82 const FormatToken *LBrace = in formatAfterToken() 140 static unsigned CodePointsBetween(const FormatToken *Begin, in CodePointsBetween() 141 const FormatToken *End) { in CodePointsBetween() 146 void CommaSeparatedList::precomputeFormattingInfos(const FormatToken *Token) { in precomputeFormattingInfos() 169 FormatToken *ItemBegin = Token->Next; in precomputeFormattingInfos() 189 const FormatToken *ItemEnd = nullptr; in precomputeFormattingInfos() 192 const FormatToken *NonCommentEnd = ItemEnd->getPreviousNonComment(); in precomputeFormattingInfos()
|
D | AffectedRangeManager.h | 23 struct FormatToken; 44 bool affectsTokenRange(const FormatToken &First, const FormatToken &Last, 49 bool affectsLeadingEmptyLines(const FormatToken &Tok);
|
D | TokenAnnotator.cpp | 50 const FormatToken& Previous = *CurrentToken->Previous; in parseAngle() 60 FormatToken *Left = CurrentToken->Previous; in parseAngle() 115 FormatToken *Left = CurrentToken->Previous; in parseParens() 127 } else if (FormatToken *MaybeSel = Left->Previous) { in parseParens() 201 FormatToken *Prev = CurrentToken->getPreviousNonComment(); in parseParens() 203 FormatToken *PrevPrev = Prev->getPreviousNonComment(); in parseParens() 204 FormatToken *Next = CurrentToken->Next; in parseParens() 235 for (FormatToken *Tok = Left; Tok != CurrentToken; Tok = Tok->Next) { in parseParens() 288 FormatToken *Tok = CurrentToken; in parseParens() 305 FormatToken *Left = CurrentToken->Previous; in parseSquare() [all …]
|
D | ContinuationIndenter.cpp | 31 static unsigned getLengthToMatchingParen(const FormatToken &Tok) { in getLengthToMatchingParen() 34 FormatToken *End = Tok.MatchingParen; in getLengthToMatchingParen() 41 static unsigned getLengthToNextOperator(const FormatToken &Tok) { in getLengthToNextOperator() 49 static bool startsSegmentOfBuilderTypeCall(const FormatToken &Tok) { in startsSegmentOfBuilderTypeCall() 54 static bool startsNextParameter(const FormatToken &Current, in startsNextParameter() 56 const FormatToken &Previous = *Current.Previous; in startsNextParameter() 99 const FormatToken &Current = *State.NextToken; in canBreak() 100 const FormatToken &Previous = *Current.Previous; in canBreak() 143 const FormatToken &Current = *State.NextToken; in mustBreak() 144 const FormatToken &Previous = *Current.Previous; in mustBreak() [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 | FormatTokenLexer.cpp | 45 ArrayRef<FormatToken *> FormatTokenLexer::lex() { in lex() 119 SmallVectorImpl<FormatToken *>::const_iterator First = in tryMergeTokens() 140 bool FormatTokenLexer::precedesOperand(FormatToken *Tok) { in precedesOperand() 153 bool FormatTokenLexer::canPrecedeRegexLiteral(FormatToken *Prev) { in canPrecedeRegexLiteral() 177 FormatToken *RegexToken = Tokens.back(); in tryParseJSRegexLiteral() 181 FormatToken *Prev = nullptr; in tryParseJSRegexLiteral() 232 FormatToken *BacktickToken = Tokens.back(); in tryParseTemplateString() 271 FormatToken *Last = Tokens.back(); in tryMerge_TMacro() 275 FormatToken *String = Tokens[Tokens.size() - 2]; in tryMerge_TMacro() 282 FormatToken *Macro = Tokens[Tokens.size() - 4]; in tryMerge_TMacro() [all …]
|
D | AffectedRangeManager.cpp | 35 FormatToken *Last = Line->Last; in computeAffectedLines() 72 bool AffectedRangeManager::affectsTokenRange(const FormatToken &First, in affectsTokenRange() 73 const FormatToken &Last, in affectsTokenRange() 84 bool AffectedRangeManager::affectsLeadingEmptyLines(const FormatToken &Tok) { in affectsLeadingEmptyLines() 119 for (FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) { in nonPPLineAffected()
|
D | UnwrappedLineParser.cpp | 29 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 …]
|
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; 100 unsigned breakProtrudingToken(const FormatToken &Current, LineState &State, 130 unsigned addMultilineToken(const FormatToken &Current, LineState &State); 315 FormatToken *NextToken;
|
D | UnwrappedLineFormatter.cpp | 22 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() 868 for (const FormatToken *Tok = TheLine.First; Tok; Tok = Tok->Next) in format() [all …]
|
D | SortJavaScriptImports.cpp | 203 FormatToken *Current; 204 FormatToken *LineEnd; 206 FormatToken invalidToken; 212 FormatToken *skipComments(FormatToken *Tok) { in skipComments()
|
D | Format.cpp | 840 for (FormatToken *FormatTok = Line->First; FormatTok; in requoteJSStringLiteral() 916 for (FormatToken *Tok = Line->First->Next; Tok; Tok = Tok->Next) { in hasCpp03IncompatibleFormat() 933 for (FormatToken *Tok = Line->First; Tok && Tok->Next; Tok = Tok->Next) { in countVariableAlignments() 956 FormatToken *Tok = AnnotatedLines[i]->First->Next; in deriveLocalStyle() 1021 for (FormatToken *Tok = Line.First; Tok != nullptr; Tok = Tok->Next) { in containsOnlyComments() 1039 FormatToken *Tok = AnnotatedLines[Line]->First; in checkEmptyNamespace() 1109 void cleanupPair(FormatToken *Start, LeftKind LK, RightKind RK, in cleanupPair() 1111 auto NextNotDeleted = [this](const FormatToken &Tok) -> FormatToken * { in cleanupPair() 1134 void cleanupLeft(FormatToken *Start, LeftKind LK, RightKind RK) { in cleanupLeft() 1139 void cleanupRight(FormatToken *Start, LeftKind LK, RightKind RK) { in cleanupRight() [all …]
|
D | CMakeLists.txt | 8 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() 253 const FormatToken &Token, unsigned IndentLevel, unsigned StartColumn, in BreakableBlockComment()
|
D | UnwrappedLineFormatter.h | 49 void formatFirstToken(FormatToken &RootToken,
|
D | WhitespaceManager.cpp | 50 void WhitespaceManager::replaceWhitespace(FormatToken &Tok, unsigned Newlines, in replaceWhitespace() 65 void WhitespaceManager::addUntouchableToken(const FormatToken &Tok, in addUntouchableToken() 78 const FormatToken &Tok, unsigned Offset, unsigned ReplaceChars, in replaceWhitespaceInToken()
|
/external/vixl/src/aarch64/ |
D | debugger-aarch64.h | 49 class FormatToken; variable 81 const FormatToken* format, 85 const FormatToken* format); 87 const FormatToken* format);
|
D | debugger-aarch64.cc | 200 class FormatToken : public Token { class 202 FormatToken() {} in FormatToken() function in vixl::aarch64::FormatToken 217 static FormatToken* Cast(Token* tok) { in Cast() 219 return reinterpret_cast<FormatToken*>(tok); in Cast() 225 class Format : public FormatToken { 372 PrintCommand(Token* name, Token* target, FormatToken* format) in PrintCommand() 380 FormatToken* format() { return format_; } in format() 392 FormatToken* format_; 399 FormatToken* format, in ExamineCommand() 409 FormatToken* format() { return format_; } in format() [all …]
|
/external/llvm/test/CodeGen/PowerPC/ |
D | BreakableToken-reduced.ll | 33 %"class.clang::format::BreakableToken" = type { i32 (...)**, %"struct.clang::format::FormatToken"*,… 35 …FormatToken" = 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…
|