|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/lib/Format/AffectedRangeManager.h 22 struct FormatToken;
tools/clang/lib/Format/ContinuationIndenter.h 32 struct FormatToken;
References
include/llvm/ADT/ArrayRef.h 108 const ArrayRef<U *> &A,
110 std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
118 const SmallVectorTemplateCommon<U *, DummyT> &Vec,
120 std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
include/llvm/Support/Alignment.h 103 return Constant<std::alignment_of<T>::value>();
include/llvm/Support/Allocator.h 81 template <typename T> T *Allocate(size_t Num = 1) {
82 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
82 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
470 for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
470 for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
478 char *Begin = (char *)alignAddr(*I, Align::Of<T>());
488 DestroyElements((char *)alignAddr(Ptr, Align::Of<T>()),
496 T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
496 T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
include/llvm/Support/PointerLikeTypeTraits.h 56 static inline void *getAsVoidPointer(T *P) { return P; }
57 static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
59 enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
91 typedef PointerLikeTypeTraits<T *> NonConst;
93 static inline const void *getAsVoidPointer(const T *P) {
96 static inline const T *getFromVoidPointer(const void *P) {
tools/clang/lib/Format/AffectedRangeManager.cpp 35 FormatToken *Last = Line->Last;
72 bool AffectedRangeManager::affectsTokenRange(const FormatToken &First,
73 const FormatToken &Last,
84 bool AffectedRangeManager::affectsLeadingEmptyLines(const FormatToken &Tok) {
119 for (FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) {
tools/clang/lib/Format/AffectedRangeManager.h 42 bool affectsTokenRange(const FormatToken &First, const FormatToken &Last,
42 bool affectsTokenRange(const FormatToken &First, const FormatToken &Last,
47 bool affectsLeadingEmptyLines(const FormatToken &Tok);
tools/clang/lib/Format/BreakableToken.cpp 186 bool switchesFormatting(const FormatToken &Token) {
235 const FormatToken &Tok, unsigned StartColumn, StringRef Prefix,
262 BreakableComment::BreakableComment(const FormatToken &Token,
299 const FormatToken &BreakableComment::tokenAt(unsigned LineIndex) const {
334 const FormatToken &Token, unsigned StartColumn,
723 const FormatToken &Token, unsigned StartColumn,
729 FormatToken *LineTok = nullptr;
730 for (const FormatToken *CurrentTok = &Tok;
tools/clang/lib/Format/BreakableToken.h 32 bool switchesFormatting(const FormatToken &Token);
234 BreakableToken(const FormatToken &Tok, bool InPPDirective,
239 const FormatToken &Tok;
251 BreakableStringLiteral(const FormatToken &Tok, unsigned StartColumn,
292 BreakableComment(const FormatToken &Token, unsigned StartColumn,
307 const FormatToken &tokenAt(unsigned LineIndex) const;
329 SmallVector<FormatToken *, 16> Tokens;
359 BreakableBlockComment(const FormatToken &Token, unsigned StartColumn,
438 BreakableLineCommentSection(const FormatToken &Token, unsigned StartColumn,
486 FormatToken *LastLineTok = nullptr;
tools/clang/lib/Format/ContinuationIndenter.cpp 37 static unsigned getLengthToMatchingParen(const FormatToken &Tok,
79 FormatToken *End = Tok.MatchingParen;
107 static unsigned getLengthToNextOperator(const FormatToken &Tok) {
115 static bool startsSegmentOfBuilderTypeCall(const FormatToken &Tok) {
120 static bool startsNextParameter(const FormatToken &Current,
122 const FormatToken &Previous = *Current.Previous;
136 static bool opensProtoMessageField(const FormatToken &LessTok,
278 const FormatToken &Current = *State.NextToken;
279 const FormatToken &Previous = *Current.Previous;
330 const FormatToken &Current = *State.NextToken;
331 const FormatToken &Previous = *Current.Previous;
368 const FormatToken &BreakConstructorInitializersToken =
509 const FormatToken &Current = *State.NextToken;
545 FormatToken &Current = *State.NextToken;
546 const FormatToken &Previous = *State.NextToken->Previous;
552 const FormatToken *Tok = &Previous;
658 const FormatToken *P = Current.getPreviousNonComment();
721 const FormatToken *Next = Previous.MatchingParen->getNextNonComment();
732 FormatToken &Current = *State.NextToken;
733 const FormatToken &Previous = *State.NextToken->Previous;
739 const FormatToken *PreviousNonComment = Current.getPreviousNonComment();
740 const FormatToken *NextNonComment = Previous.getNextNonComment();
920 FormatToken &Current = *State.NextToken;
921 const FormatToken &Previous = *Current.Previous;
926 const FormatToken *PreviousNonComment = Current.getPreviousNonComment();
927 const FormatToken *NextNonComment = Previous.getNextNonComment();
1085 const FormatToken &Current = *State.NextToken;
1108 const FormatToken *Previous = Current.Previous;
1162 const FormatToken *Previous = Current.getPreviousNonComment();
1226 const FormatToken &Current = *State.NextToken;
1227 const FormatToken *Previous = Current.getPreviousNonComment();
1307 const FormatToken &Current = *State.NextToken;
1330 const FormatToken *NextNoComment = Current.getNextNonComment();
1393 for (const FormatToken *Tok = &Current;
1428 const FormatToken &Current = *State.NextToken;
1453 const FormatToken &CurrentScopeOpener = *Current.MatchingParen->Previous;
1467 const FormatToken *NextNonComment = Current.getNextNonComment();
1502 const FormatToken &Current, LineState &State,
1650 unsigned ContinuationIndenter::addMultilineToken(const FormatToken &Current,
1666 unsigned ContinuationIndenter::handleEndOfLine(const FormatToken &Current,
1722 static StringRef getEnclosingFunctionName(const FormatToken &Current) {
1741 ContinuationIndenter::getRawStringStyle(const FormatToken &Current,
1759 ContinuationIndenter::createBreakableToken(const FormatToken &Current,
1838 ContinuationIndenter::breakProtrudingToken(const FormatToken &Current,
2217 const FormatToken &Current = *State.NextToken;
tools/clang/lib/Format/ContinuationIndenter.h 111 unsigned reformatRawStringLiteral(const FormatToken &Current,
118 unsigned handleEndOfLine(const FormatToken &Current, LineState &State,
123 llvm::Optional<FormatStyle> getRawStringStyle(const FormatToken &Current,
144 std::pair<unsigned, bool> breakProtrudingToken(const FormatToken &Current,
152 createBreakableToken(const FormatToken &Current, LineState &State,
182 unsigned addMultilineToken(const FormatToken &Current, LineState &State);
202 ParenState(const FormatToken *Tok, unsigned Indent, unsigned LastSpace,
218 const FormatToken *Tok;
381 FormatToken *NextToken;
tools/clang/lib/Format/Format.cpp 1268 for (FormatToken *FormatTok = Line->First; FormatTok;
1381 for (FormatToken *Tok = Line->First->Next; Tok; Tok = Tok->Next) {
1398 for (FormatToken *Tok = Line->First; Tok && Tok->Next; Tok = Tok->Next) {
1421 FormatToken *Tok = AnnotatedLines[i]->First->Next;
1495 for (FormatToken *Tok = Line.First; Tok != nullptr; Tok = Tok->Next) {
1513 FormatToken *Tok = AnnotatedLines[Line]->First;
1583 void cleanupPair(FormatToken *Start, LeftKind LK, RightKind RK,
1586 for (auto *Res = Tok.Next; Res; Res = Res->Next)
1592 for (auto *Left = Start; Left;) {
1593 auto *Right = NextNotDeleted(*Left);
1598 for (auto *Tok = Left->Next; Tok && Tok != Right; Tok = Tok->Next)
1610 void cleanupLeft(FormatToken *Start, LeftKind LK, RightKind RK) {
1615 void cleanupRight(FormatToken *Start, LeftKind LK, RightKind RK) {
1620 inline void deleteToken(FormatToken *Tok) {
1627 std::vector<FormatToken *> Tokens;
1663 bool operator()(const FormatToken *LHS, const FormatToken *RHS) const {
1663 bool operator()(const FormatToken *LHS, const FormatToken *RHS) const {
1671 std::set<FormatToken *, FormatTokenLess> DeletedTokens;
1772 for (const FormatToken *FormatTok = Line->First; FormatTok;
tools/clang/lib/Format/FormatToken.cpp 72 void TokenRole::precomputeFormattingInfos(const FormatToken *Token) {}
84 const FormatToken *LBrace =
145 static unsigned CodePointsBetween(const FormatToken *Begin,
146 const FormatToken *End) {
151 void CommaSeparatedList::precomputeFormattingInfos(const FormatToken *Token) {
174 FormatToken *ItemBegin = Token->Next;
194 const FormatToken *ItemEnd = nullptr;
197 const FormatToken *NonCommentEnd = ItemEnd->getPreviousNonComment();
tools/clang/lib/Format/FormatToken.h 279 FormatToken *NextOperator = nullptr;
292 FormatToken *MatchingParen = nullptr;
295 FormatToken *Previous = nullptr;
298 FormatToken *Next = nullptr;
487 FormatToken *getPreviousNonComment() const {
488 FormatToken *Tok = Previous;
495 const FormatToken *getNextNonComment() const {
496 const FormatToken *Tok = Next;
520 const FormatToken *T = this;
537 const FormatToken *getNamespaceToken() const {
538 const FormatToken *NamespaceTok = this;
552 FormatToken(const FormatToken &) = delete;
553 void operator=(const FormatToken &) = delete;
592 virtual void precomputeFormattingInfos(const FormatToken *Token);
615 virtual void CommaFound(const FormatToken *Token) {}
617 virtual const FormatToken *lastComma() { return nullptr; }
628 void precomputeFormattingInfos(const FormatToken *Token) override;
637 void CommaFound(const FormatToken *Token) override {
641 const FormatToken *lastComma() override {
669 SmallVector<const FormatToken *, 8> Commas;
894 bool IsJavaScriptIdentifier(const FormatToken &Tok) const {
902 bool isCSharpKeyword(const FormatToken &Tok) const {
tools/clang/lib/Format/FormatTokenLexer.cpp 48 ArrayRef<FormatToken *> FormatTokenLexer::lex() {
305 SmallVectorImpl<FormatToken *>::const_iterator First =
325 bool FormatTokenLexer::precedesOperand(FormatToken *Tok) {
338 bool FormatTokenLexer::canPrecedeRegexLiteral(FormatToken *Prev) {
364 FormatToken *RegexToken = Tokens.back();
368 FormatToken *Prev = nullptr;
419 FormatToken *BacktickToken = Tokens.back();
486 FormatToken *HashToken = Tokens.back();
509 FormatToken *Last = Tokens.back();
513 FormatToken *String = Tokens[Tokens.size() - 2];
520 FormatToken *Macro = Tokens[Tokens.size() - 4];
589 FormatToken *Next = Tokens.back();
605 FormatToken *FormatTokenLexer::getStashedToken() {
611 FormatTok = new (Allocator.Allocate()) FormatToken;
624 FormatToken *FormatTokenLexer::getNextToken() {
630 FormatTok = new (Allocator.Allocate()) FormatToken;
829 void FormatTokenLexer::readRawToken(FormatToken &Tok) {
tools/clang/lib/Format/FormatTokenLexer.h 42 ArrayRef<FormatToken *> lex();
61 bool precedesOperand(FormatToken *Tok);
63 bool canPrecedeRegexLiteral(FormatToken *Prev);
88 FormatToken *getStashedToken();
90 FormatToken *getNextToken();
92 FormatToken *FormatTok;
104 llvm::SpecificBumpPtrAllocator<FormatToken> Allocator;
107 SmallVector<FormatToken *, 16> Tokens;
116 void readRawToken(FormatToken &Tok);
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp 31 std::string computeName(const FormatToken *NamespaceTok) {
36 const FormatToken *Tok = NamespaceTok->getNextNonComment();
51 const FormatToken *FirstNSTok = Tok;
69 const FormatToken *NamespaceTok) {
84 bool hasEndComment(const FormatToken *RBraceTok) {
88 bool validEndComment(const FormatToken *RBraceTok, StringRef NamespaceName,
89 const FormatToken *NamespaceTok) {
91 const FormatToken *Comment = RBraceTok->Next;
127 void addEndComment(const FormatToken *RBraceTok, StringRef EndCommentText,
139 void updateEndComment(const FormatToken *RBraceTok, StringRef EndCommentText,
143 const FormatToken *Comment = RBraceTok->Next;
154 const FormatToken *
163 const FormatToken *NamespaceTok = AnnotatedLines[StartLineIndex]->First;
176 const FormatToken *NamespaceTok = getNamespaceToken(Line, AnnotatedLines);
196 const FormatToken *NamespaceTok =
200 FormatToken *RBraceTok = EndLine->First;
204 const FormatToken *EndCommentPrevTok = RBraceTok;
237 const FormatToken *EndCommentNextTok = EndCommentPrevTok->Next;
tools/clang/lib/Format/NamespaceEndCommentsFixer.h 29 const FormatToken *
tools/clang/lib/Format/SortJavaScriptImports.cpp 206 FormatToken *Current;
207 FormatToken *LineEnd;
209 FormatToken invalidToken;
215 FormatToken *skipComments(FormatToken *Tok) {
215 FormatToken *skipComments(FormatToken *Tok) {
tools/clang/lib/Format/TokenAnnotator.cpp 40 static bool canBeObjCSelectorComponent(const FormatToken &Tok) {
46 static bool isLambdaParameterList(const FormatToken *Left) {
81 const FormatToken &Previous = *CurrentToken->Previous; // The '<'.
91 FormatToken *Left = CurrentToken->Previous;
150 if (FormatToken *Previous = CurrentToken->getPreviousNonComment()) {
166 FormatToken *Left = CurrentToken->Previous;
175 if (FormatToken *MaybeSel = Left->Previous) {
253 FormatToken *PossibleObjCForInToken = nullptr;
260 FormatToken *Prev = CurrentToken->getPreviousNonComment();
262 FormatToken *PrevPrev = Prev->getPreviousNonComment();
263 FormatToken *Next = CurrentToken->Next;
295 for (FormatToken *Tok = Left; Tok != CurrentToken; Tok = Tok->Next) {
358 FormatToken *Tok = CurrentToken;
368 bool isCSharpAttributeSpecifier(const FormatToken &Tok) {
372 const FormatToken *AttrTok = Tok.Next;
408 bool isCpp11AttributeSpecifier(const FormatToken &Tok) {
415 const FormatToken *AttrTok = Tok.Next->Next;
447 FormatToken *Left = CurrentToken->Previous;
449 FormatToken *Parent = Left->getPreviousNonComment();
607 FormatToken *Previous = CurrentToken->getPreviousNonComment();
648 FormatToken *Tok = CurrentToken;
658 FormatToken *Left = CurrentToken->Previous;
684 FormatToken *Previous = CurrentToken->getPreviousNonComment();
710 void updateParameterCount(FormatToken *Left, FormatToken *Current) {
710 void updateParameterCount(FormatToken *Left, FormatToken *Current) {
753 FormatToken *Tok = CurrentToken;
785 if (FormatToken *Previous = Tok->getPreviousNonComment())
791 const FormatToken *BeforePrevious = Tok->Previous->Previous;
900 FormatToken *Previous = Tok->getPreviousNonComment();
919 FormatToken *Previous = Tok->getPreviousNonComment();
1110 FormatToken *Tok = CurrentToken;
1207 bool isClosureImportStatement(const FormatToken &Tok) {
1220 void resetTokenMetadata(FormatToken *Token) {
1266 FormatToken *FirstObjCSelectorName = nullptr;
1267 FormatToken *FirstStartOfName = nullptr;
1294 void modifyContext(const FormatToken &Current) {
1306 for (FormatToken *Previous = Current.Previous;
1339 for (FormatToken *Previous = Current.Previous;
1353 void determineTokenType(FormatToken &Current) {
1446 if (FormatToken *AfterParen = Current.MatchingParen->Next) {
1449 if (FormatToken *BeforeParen = Current.MatchingParen->Previous)
1476 FormatToken *PreviousNoComment = Current.getPreviousNonComment();
1510 const FormatToken &AtToken = *Current.Previous;
1511 const FormatToken *Previous = AtToken.getPreviousNonComment();
1529 bool isStartOfName(const FormatToken &Tok) {
1541 FormatToken *PreviousNotConst = Tok.getPreviousNonComment();
1570 bool rParenEndsCast(const FormatToken &Tok) {
1579 FormatToken *LeftOfParens = Tok.MatchingParen->getPreviousNonComment();
1644 for (const FormatToken *Token = Tok.MatchingParen->Next; Token != &Tok;
1666 for (FormatToken *Prev = Tok.Previous; Prev != Tok.MatchingParen;
1675 TokenType determineStarAmpUsage(const FormatToken &Tok, bool IsExpression,
1680 const FormatToken *PrevToken = Tok.getPreviousNonComment();
1684 const FormatToken *NextToken = Tok.getNextNonComment();
1710 FormatToken *TokenBeforeMatchingParen =
1736 const FormatToken *NextNextToken = NextToken->getNextNonComment();
1748 TokenType determinePlusMinusCaretUsage(const FormatToken &Tok) {
1749 const FormatToken *PrevToken = Tok.getPreviousNonComment();
1772 TokenType determineIncrementUsage(const FormatToken &Tok) {
1773 const FormatToken *PrevToken = Tok.getPreviousNonComment();
1786 FormatToken *CurrentToken;
1794 llvm::SmallPtrSet<FormatToken *, 16> NonTemplateLess;
1833 FormatToken *Start = Current;
1834 FormatToken *LatestOperator = nullptr;
1899 const FormatToken *NextNonComment = Current->getNextNonComment();
1940 void addFakeParenthesis(FormatToken *Start, prec::Level Precedence) {
1945 FormatToken *Previous = Current->Previous;
1957 llvm::SmallVector<FormatToken *, 2> Tokens;
1963 for (FormatToken *Token : llvm::reverse(Tokens))
1972 FormatToken *Start = Current;
1996 FormatToken *Current;
2008 for (const FormatToken *Tok = (*I)->First; Tok; Tok = Tok->Next) {
2040 for (const auto *Tok = Line.First; Tok != nullptr; Tok = Tok->Next)
2080 static bool isFunctionDeclarationName(const FormatToken &Current,
2102 const FormatToken *Next = Current.Next;
2143 for (const FormatToken *Tok = Next->Next; Tok && Tok != Next->MatchingParen;
2192 FormatToken *Current = Line.First->Next;
2213 for (FormatToken *Parameter = Current->Previous; Parameter;
2241 FormatToken &LastOfChild = *Current->Previous->Children[0]->Last;
2245 const FormatToken *Prev = Current->Previous;
2299 FormatToken *Current = Line.Last;
2314 const FormatToken &Tok,
2316 const FormatToken &Left = *Tok.Previous;
2317 const FormatToken &Right = Tok;
2505 bool TokenAnnotator::spaceRequiredBeforeParens(const FormatToken &Right) const {
2512 const FormatToken &Left,
2513 const FormatToken &Right) {
2575 FormatToken *TokenBeforeMatchingParen =
2713 const FormatToken &Right) {
2714 const FormatToken &Left = *Right.Previous;
2765 const FormatToken *Next = Right.MatchingParen->getNextNonComment();
2988 static bool isAllmanBrace(const FormatToken &Tok) {
2994 const FormatToken &Right) {
2995 const FormatToken &Left = *Right.Previous;
3048 const FormatToken *BeforeClosingBrace = nullptr;
3188 FormatToken *LBrace = Right.Next;
3263 const FormatToken &Right) {
3264 const FormatToken &Left = *Right.Previous;
3275 const FormatToken *NonComment = Right.getPreviousNonComment();
3300 const FormatToken *Next = Right.getNextNonComment();
3539 const FormatToken *Tok = Line.First;
tools/clang/lib/Format/TokenAnnotator.h 54 FormatToken *Current = First;
76 FormatToken *Current = First;
122 FormatToken *First;
123 FormatToken *Last;
172 unsigned splitPenalty(const AnnotatedLine &Line, const FormatToken &Tok,
175 bool spaceRequiredBeforeParens(const FormatToken &Right) const;
177 bool spaceRequiredBetween(const AnnotatedLine &Line, const FormatToken &Left,
178 const FormatToken &Right);
180 bool spaceRequiredBefore(const AnnotatedLine &Line, const FormatToken &Right);
182 bool mustBreakBefore(const AnnotatedLine &Line, const FormatToken &Right);
184 bool canBreakBefore(const AnnotatedLine &Line, const FormatToken &Right);
tools/clang/lib/Format/UnwrappedLineFormatter.cpp 23 const FormatToken *Next = Line.First->getNextNonComment();
24 const FormatToken *NextNext = Next ? Next->getNextNonComment() : nullptr;
95 int getIndentOffset(const FormatToken &RootToken) {
137 const FormatToken *getMatchingNamespaceToken(
150 const FormatToken *NamespaceToken = Line->First->getNamespaceToken();
157 const FormatToken *NamespaceToken =
233 const FormatToken *Tok = I[-1]->First;
525 const FormatToken *Tok = Line.First->getNextNonComment();
569 FormatToken *Tok = I[1]->First;
580 FormatToken *RecordTok = Line.First;
676 for (const FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) {
692 for (FormatToken *Tok = B.First; Tok; Tok = Tok->Next) {
706 static void markFinalized(FormatToken *Tok) {
764 const FormatToken *LBrace = State.NextToken->getPreviousNonComment();
765 FormatToken &Previous = *State.NextToken->Previous;
1139 for (const FormatToken *Tok = TheLine.First; Tok; Tok = Tok->Next)
1163 for (FormatToken *Tok = TheLine.First->Next; Tok; Tok = Tok->Next)
1181 FormatToken &RootToken = *Line.First;
tools/clang/lib/Format/UnwrappedLineParser.cpp 30 virtual FormatToken *getNextToken() = 0;
33 virtual FormatToken *setPosition(unsigned Position) = 0;
59 static bool isLineComment(const FormatToken &FormatTok) {
66 static bool continuesLineComment(const FormatToken &FormatTok,
67 const FormatToken *Previous,
68 const FormatToken *MinColumnToken) {
81 FormatToken *&ResetToken)
99 FormatToken *getNextToken() override {
112 FormatToken *setPosition(unsigned Position) override {
125 FormatToken FakeEOF;
128 FormatToken *&ResetToken;
132 FormatToken *Token;
133 FormatToken *PreviousToken;
197 IndexedTokenSource(ArrayRef<FormatToken *> Tokens)
200 FormatToken *getNextToken() override {
210 FormatToken *setPosition(unsigned P) override {
218 ArrayRef<FormatToken *> Tokens;
227 ArrayRef<FormatToken *> Tokens,
357 FormatToken *Next;
397 FormatToken *Tok = FormatTok;
398 const FormatToken *PrevTok = Tok->Previous;
402 SmallVector<FormatToken *, 8> LBraceStack;
406 FormatToken *NextTok;
631 const FormatToken &InitialToken) {
757 FormatToken *IfCondition = FormatTok;
797 FormatToken *PeekNext = AllTokens[TokenPosition];
884 const FormatToken *FormatTok) {
899 const FormatToken *FormatTok) {
908 const FormatToken *FormatTok) {
934 FormatToken *Previous = FormatTok;
936 FormatToken *Next = FormatTok;
1134 const FormatToken *Previous = FormatTok->Previous;
1325 FormatToken *Next = Tokens->getNextToken();
1419 FormatToken &LSquare = *FormatTok;
1509 const FormatToken *Previous = FormatTok->Previous;
1879 const FormatToken &InitialToken = *FormatTok;
2121 FormatToken *Tok = Tokens->getNextToken();
2179 const FormatToken &InitialToken = *FormatTok;
2494 bool UnwrappedLineParser::isOnNewLine(const FormatToken &FormatTok) {
2501 static bool continuesLineCommentSection(const FormatToken &FormatTok,
2580 const FormatToken *MinColumnToken = Line.Tokens.front().Tok;
2584 const FormatToken *PreviousToken = nullptr;
2608 for (SmallVectorImpl<FormatToken *>::const_iterator
2636 FormatToken *Previous = FormatTok;
2645 const SmallVectorImpl<FormatToken *> &Comments,
2646 const FormatToken *NextTok) {
2680 FormatToken *FormatTok = Comments[i];
2700 SmallVector<FormatToken *, 1> Comments;
2757 void UnwrappedLineParser::pushToken(FormatToken *Tok) {
tools/clang/lib/Format/UnwrappedLineParser.h 79 unsigned FirstStartColumn, ArrayRef<FormatToken *> Tokens,
150 void distributeComments(const SmallVectorImpl<FormatToken *> &Comments,
151 const FormatToken *NextTok);
155 void pushToken(FormatToken *Tok);
167 bool isOnNewLine(const FormatToken &FormatTok);
183 SmallVector<FormatToken *, 1> CommentsBeforeNextToken;
184 FormatToken *FormatTok;
216 ArrayRef<FormatToken *> AllTokens;
270 FormatToken *IncludeGuardToken;
283 UnwrappedLineNode(FormatToken *Tok) : Tok(Tok) {}
285 FormatToken *Tok;
tools/clang/lib/Format/UsingDeclarationsSorter.cpp 87 std::string computeUsingDeclarationLabel(const FormatToken *UsingTok) {
90 const FormatToken *Tok = UsingTok->Next;
192 const auto *FirstTok = AnnotatedLines[I]->First;
200 const auto *UsingTok =
tools/clang/lib/Format/WhitespaceManager.cpp 27 WhitespaceManager::Change::Change(const FormatToken &Tok,
45 void WhitespaceManager::replaceWhitespace(FormatToken &Tok, unsigned Newlines,
58 void WhitespaceManager::addUntouchableToken(const FormatToken &Tok,
75 const FormatToken &Tok, unsigned Offset, unsigned ReplaceChars,
482 const FormatToken *Current = C.Tok;
596 for (FormatToken *Next = C.Tok->Next; Next; Next = Next->Next) {
tools/clang/lib/Format/WhitespaceManager.h 51 void replaceWhitespace(FormatToken &Tok, unsigned Newlines, unsigned Spaces,
59 void addUntouchableToken(const FormatToken &Tok, bool InPPDirective);
77 void replaceWhitespaceInToken(const FormatToken &Tok, unsigned Offset,
108 Change(const FormatToken &Tok, bool CreateReplacement,
118 const FormatToken *Tok;
usr/include/c++/7.4.0/bits/move.h 72 constexpr _Tp&&
83 constexpr _Tp&&
usr/include/c++/7.4.0/bits/unique_ptr.h 824 make_unique(_Args&&... __args)
usr/include/c++/7.4.0/type_traits 1983 { typedef _Up type; };