Coverage Report

Created: 2020-02-15 09:57

/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/Format/FormatToken.h
Line
Count
Source (jump to first uncovered line)
1
//===--- FormatToken.h - Format C++ code ------------------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
///
9
/// \file
10
/// This file contains the declaration of the FormatToken, a wrapper
11
/// around Token with additional information related to formatting.
12
///
13
//===----------------------------------------------------------------------===//
14
15
#ifndef LLVM_CLANG_LIB_FORMAT_FORMATTOKEN_H
16
#define LLVM_CLANG_LIB_FORMAT_FORMATTOKEN_H
17
18
#include "clang/Basic/IdentifierTable.h"
19
#include "clang/Basic/OperatorPrecedence.h"
20
#include "clang/Format/Format.h"
21
#include "clang/Lex/Lexer.h"
22
#include <memory>
23
#include <unordered_set>
24
25
namespace clang {
26
namespace format {
27
28
#define LIST_TOKEN_TYPES                                                       \
29
0
  TYPE(ArrayInitializerLSquare)                                                \
30
0
  TYPE(ArraySubscriptLSquare)                                                  \
31
0
  TYPE(AttributeColon)                                                         \
32
0
  TYPE(AttributeParen)                                                         \
33
0
  TYPE(AttributeSquare)                                                        \
34
0
  TYPE(BinaryOperator)                                                         \
35
0
  TYPE(BitFieldColon)                                                          \
36
0
  TYPE(BlockComment)                                                           \
37
0
  TYPE(CastRParen)                                                             \
38
0
  TYPE(ConditionalExpr)                                                        \
39
0
  TYPE(ConflictAlternative)                                                    \
40
0
  TYPE(ConflictEnd)                                                            \
41
0
  TYPE(ConflictStart)                                                          \
42
0
  TYPE(CtorInitializerColon)                                                   \
43
0
  TYPE(CtorInitializerComma)                                                   \
44
0
  TYPE(DesignatedInitializerLSquare)                                           \
45
0
  TYPE(DesignatedInitializerPeriod)                                            \
46
0
  TYPE(DictLiteral)                                                            \
47
0
  TYPE(ForEachMacro)                                                           \
48
0
  TYPE(FunctionAnnotationRParen)                                               \
49
0
  TYPE(FunctionDeclarationName)                                                \
50
0
  TYPE(FunctionLBrace)                                                         \
51
0
  TYPE(FunctionTypeLParen)                                                     \
52
0
  TYPE(ImplicitStringLiteral)                                                  \
53
0
  TYPE(InheritanceColon)                                                       \
54
0
  TYPE(InheritanceComma)                                                       \
55
0
  TYPE(InlineASMBrace)                                                         \
56
0
  TYPE(InlineASMColon)                                                         \
57
0
  TYPE(JavaAnnotation)                                                         \
58
0
  TYPE(JsComputedPropertyName)                                                 \
59
0
  TYPE(JsExponentiation)                                                       \
60
0
  TYPE(JsExponentiationEqual)                                                  \
61
0
  TYPE(JsFatArrow)                                                             \
62
0
  TYPE(JsNonNullAssertion)                                                     \
63
0
  TYPE(JsNullishCoalescingOperator)                                            \
64
0
  TYPE(JsNullPropagatingOperator)                                              \
65
0
  TYPE(JsPrivateIdentifier)                                                    \
66
0
  TYPE(JsTypeColon)                                                            \
67
0
  TYPE(JsTypeOperator)                                                         \
68
0
  TYPE(JsTypeOptionalQuestion)                                                 \
69
0
  TYPE(LambdaArrow)                                                            \
70
0
  TYPE(LambdaLBrace)                                                           \
71
0
  TYPE(LambdaLSquare)                                                          \
72
0
  TYPE(LeadingJavaAnnotation)                                                  \
73
0
  TYPE(LineComment)                                                            \
74
0
  TYPE(MacroBlockBegin)                                                        \
75
0
  TYPE(MacroBlockEnd)                                                          \
76
0
  TYPE(NamespaceMacro)                                                         \
77
0
  TYPE(ObjCBlockLBrace)                                                        \
78
0
  TYPE(ObjCBlockLParen)                                                        \
79
0
  TYPE(ObjCDecl)                                                               \
80
0
  TYPE(ObjCForIn)                                                              \
81
0
  TYPE(ObjCMethodExpr)                                                         \
82
0
  TYPE(ObjCMethodSpecifier)                                                    \
83
0
  TYPE(ObjCProperty)                                                           \
84
0
  TYPE(ObjCStringLiteral)                                                      \
85
0
  TYPE(OverloadedOperator)                                                     \
86
0
  TYPE(OverloadedOperatorLParen)                                               \
87
0
  TYPE(PointerOrReference)                                                     \
88
0
  TYPE(PureVirtualSpecifier)                                                   \
89
0
  TYPE(RangeBasedForLoopColon)                                                 \
90
0
  TYPE(RegexLiteral)                                                           \
91
0
  TYPE(SelectorName)                                                           \
92
0
  TYPE(StartOfName)                                                            \
93
0
  TYPE(StatementMacro)                                                         \
94
0
  TYPE(StructuredBindingLSquare)                                               \
95
0
  TYPE(TemplateCloser)                                                         \
96
0
  TYPE(TemplateOpener)                                                         \
97
0
  TYPE(TemplateString)                                                         \
98
0
  TYPE(ProtoExtensionLSquare)                                                  \
99
0
  TYPE(TrailingAnnotation)                                                     \
100
0
  TYPE(TrailingReturnArrow)                                                    \
101
0
  TYPE(TrailingUnaryOperator)                                                  \
102
0
  TYPE(TypenameMacro)                                                          \
103
0
  TYPE(UnaryOperator)                                                          \
104
0
  TYPE(CSharpStringLiteral)                                                    \
105
0
  TYPE(CSharpNullCoalescing)                                                   \
106
0
  TYPE(Unknown)
107
108
enum TokenType {
109
#define TYPE(X) TT_##X,
110
  LIST_TOKEN_TYPES
111
#undef TYPE
112
      NUM_TOKEN_TYPES
113
};
114
115
/// Determines the name of a token type.
116
const char *getTokenTypeName(TokenType Type);
117
118
// Represents what type of block a set of braces open.
119
enum BraceBlockKind { BK_Unknown, BK_Block, BK_BracedInit };
120
121
// The packing kind of a function's parameters.
122
enum ParameterPackingKind { PPK_BinPacked, PPK_OnePerLine, PPK_Inconclusive };
123
124
enum FormatDecision { FD_Unformatted, FD_Continue, FD_Break };
125
126
class TokenRole;
127
class AnnotatedLine;
128
129
/// A wrapper around a \c Token storing information about the
130
/// whitespace characters preceding it.
131
struct FormatToken {
132
571k
  FormatToken() {}
133
134
  /// The \c Token.
135
  Token Tok;
136
137
  /// The number of newlines immediately before the \c Token.
138
  ///
139
  /// This can be used to determine what the user wrote in the original code
140
  /// and thereby e.g. leave an empty line between two function definitions.
141
  unsigned NewlinesBefore = 0;
142
143
  /// Whether there is at least one unescaped newline before the \c
144
  /// Token.
145
  bool HasUnescapedNewline = false;
146
147
  /// The range of the whitespace immediately preceding the \c Token.
148
  SourceRange WhitespaceRange;
149
150
  /// The offset just past the last '\n' in this token's leading
151
  /// whitespace (relative to \c WhiteSpaceStart). 0 if there is no '\n'.
152
  unsigned LastNewlineOffset = 0;
153
154
  /// The width of the non-whitespace parts of the token (or its first
155
  /// line for multi-line tokens) in columns.
156
  /// We need this to correctly measure number of columns a token spans.
157
  unsigned ColumnWidth = 0;
158
159
  /// Contains the width in columns of the last line of a multi-line
160
  /// token.
161
  unsigned LastLineColumnWidth = 0;
162
163
  /// Whether the token text contains newlines (escaped or not).
164
  bool IsMultiline = false;
165
166
  /// Indicates that this is the first token of the file.
167
  bool IsFirst = false;
168
169
  /// Whether there must be a line break before this token.
170
  ///
171
  /// This happens for example when a preprocessor directive ended directly
172
  /// before the token.
173
  bool MustBreakBefore = false;
174
175
  /// The raw text of the token.
176
  ///
177
  /// Contains the raw token text without leading whitespace and without leading
178
  /// escaped newlines.
179
  StringRef TokenText;
180
181
  /// Set to \c true if this token is an unterminated literal.
182
  bool IsUnterminatedLiteral = 0;
183
184
  /// Contains the kind of block if this token is a brace.
185
  BraceBlockKind BlockKind = BK_Unknown;
186
187
  TokenType Type = TT_Unknown;
188
189
  /// The number of spaces that should be inserted before this token.
190
  unsigned SpacesRequiredBefore = 0;
191
192
  /// \c true if it is allowed to break before this token.
193
  bool CanBreakBefore = false;
194
195
  /// \c true if this is the ">" of "template<..>".
196
  bool ClosesTemplateDeclaration = false;
197
198
  /// Number of parameters, if this is "(", "[" or "<".
199
  unsigned ParameterCount = 0;
200
201
  /// Number of parameters that are nested blocks,
202
  /// if this is "(", "[" or "<".
203
  unsigned BlockParameterCount = 0;
204
205
  /// If this is a bracket ("<", "(", "[" or "{"), contains the kind of
206
  /// the surrounding bracket.
207
  tok::TokenKind ParentBracket = tok::unknown;
208
209
  /// A token can have a special role that can carry extra information
210
  /// about the token's formatting.
211
  std::unique_ptr<TokenRole> Role;
212
213
  /// If this is an opening parenthesis, how are the parameters packed?
214
  ParameterPackingKind PackingKind = PPK_Inconclusive;
215
216
  /// The total length of the unwrapped line up to and including this
217
  /// token.
218
  unsigned TotalLength = 0;
219
220
  /// The original 0-based column of this token, including expanded tabs.
221
  /// The configured TabWidth is used as tab width.
222
  unsigned OriginalColumn = 0;
223
224
  /// The length of following tokens until the next natural split point,
225
  /// or the next token that can be broken.
226
  unsigned UnbreakableTailLength = 0;
227
228
  // FIXME: Come up with a 'cleaner' concept.
229
  /// The binding strength of a token. This is a combined value of
230
  /// operator precedence, parenthesis nesting, etc.
231
  unsigned BindingStrength = 0;
232
233
  /// The nesting level of this token, i.e. the number of surrounding (),
234
  /// [], {} or <>.
235
  unsigned NestingLevel = 0;
236
237
  /// The indent level of this token. Copied from the surrounding line.
238
  unsigned IndentLevel = 0;
239
240
  /// Penalty for inserting a line break before this token.
241
  unsigned SplitPenalty = 0;
242
243
  /// If this is the first ObjC selector name in an ObjC method
244
  /// definition or call, this contains the length of the longest name.
245
  ///
246
  /// This being set to 0 means that the selectors should not be colon-aligned,
247
  /// e.g. because several of them are block-type.
248
  unsigned LongestObjCSelectorName = 0;
249
250
  /// If this is the first ObjC selector name in an ObjC method
251
  /// definition or call, this contains the number of parts that the whole
252
  /// selector consist of.
253
  unsigned ObjCSelectorNameParts = 0;
254
255
  /// The 0-based index of the parameter/argument. For ObjC it is set
256
  /// for the selector name token.
257
  /// For now calculated only for ObjC.
258
  unsigned ParameterIndex = 0;
259
260
  /// Stores the number of required fake parentheses and the
261
  /// corresponding operator precedence.
262
  ///
263
  /// If multiple fake parentheses start at a token, this vector stores them in
264
  /// reverse order, i.e. inner fake parenthesis first.
265
  SmallVector<prec::Level, 4> FakeLParens;
266
  /// Insert this many fake ) after this token for correct indentation.
267
  unsigned FakeRParens = 0;
268
269
  /// \c true if this token starts a binary expression, i.e. has at least
270
  /// one fake l_paren with a precedence greater than prec::Unknown.
271
  bool StartsBinaryExpression = false;
272
  /// \c true if this token ends a binary expression.
273
  bool EndsBinaryExpression = false;
274
275
  /// If this is an operator (or "."/"->") in a sequence of operators
276
  /// with the same precedence, contains the 0-based operator index.
277
  unsigned OperatorIndex = 0;
278
279
  /// If this is an operator (or "."/"->") in a sequence of operators
280
  /// with the same precedence, points to the next operator.
281
  FormatToken *NextOperator = nullptr;
282
283
  /// Is this token part of a \c DeclStmt defining multiple variables?
284
  ///
285
  /// Only set if \c Type == \c TT_StartOfName.
286
  bool PartOfMultiVariableDeclStmt = false;
287
288
  /// Does this line comment continue a line comment section?
289
  ///
290
  /// Only set to true if \c Type == \c TT_LineComment.
291
  bool ContinuesLineCommentSection = false;
292
293
  /// If this is a bracket, this points to the matching one.
294
  FormatToken *MatchingParen = nullptr;
295
296
  /// The previous token in the unwrapped line.
297
  FormatToken *Previous = nullptr;
298
299
  /// The next token in the unwrapped line.
300
  FormatToken *Next = nullptr;
301
302
  /// If this token starts a block, this contains all the unwrapped lines
303
  /// in it.
304
  SmallVector<AnnotatedLine *, 1> Children;
305
306
  /// Stores the formatting decision for the token once it was made.
307
  FormatDecision Decision = FD_Unformatted;
308
309
  /// If \c true, this token has been fully formatted (indented and
310
  /// potentially re-formatted inside), and we do not allow further formatting
311
  /// changes.
312
  bool Finalized = false;
313
314
149M
  bool is(tok::TokenKind Kind) const { return Tok.is(Kind); }
315
127M
  bool is(TokenType TT) const { return Type == TT; }
316
3.07M
  bool is(const IdentifierInfo *II) const {
317
3.07M
    return II && II == Tok.getIdentifierInfo();
318
3.07M
  }
319
16.9k
  bool is(tok::PPKeywordKind Kind) const {
320
16.9k
    return Tok.getIdentifierInfo() &&
321
16.9k
           
Tok.getIdentifierInfo()->getPPKeywordID() == Kind15.7k
;
322
16.9k
  }
323
38.5M
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
324
38.5M
    return is(K1) || 
is(K2)37.3M
;
325
38.5M
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
323
9.95M
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
324
9.95M
    return is(K1) || 
is(K2)9.82M
;
325
9.95M
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
323
15.9M
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
324
15.9M
    return is(K1) || 
is(K2)15.1M
;
325
15.9M
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::format::TokenType>(clang::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
323
11.1M
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
324
11.1M
    return is(K1) || 
is(K2)10.8M
;
325
11.1M
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind) const
Line
Count
Source
323
895k
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
324
895k
    return is(K1) || 
is(K2)878k
;
325
895k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
323
31.1k
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
324
31.1k
    return is(K1) || 
is(K2)30.5k
;
325
31.1k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
323
595k
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
324
595k
    return is(K1) || 
is(K2)594k
;
325
595k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
323
23.6k
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
324
23.6k
    return is(K1) || 
is(K2)23.4k
;
325
23.6k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::IdentifierInfo*>(clang::format::TokenType, clang::IdentifierInfo*) const
Line
Count
Source
323
24
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
324
24
    return is(K1) || is(K2);
325
24
  }
326
  template <typename A, typename B, typename... Ts>
327
42.4M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
42.4M
    return is(K1) || 
isOneOf(K2, Ks...)38.6M
;
329
42.4M
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
9.37M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
9.37M
    return is(K1) || 
isOneOf(K2, Ks...)8.85M
;
329
9.37M
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
327
9.58M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
9.58M
    return is(K1) || 
isOneOf(K2, Ks...)7.52M
;
329
9.58M
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType>(clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
327
8.28M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
8.28M
    return is(K1) || 
isOneOf(K2, Ks...)7.89M
;
329
8.28M
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
1.42M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.42M
    return is(K1) || 
isOneOf(K2, Ks...)1.42M
;
329
1.42M
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
2.94M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
2.94M
    return is(K1) || 
isOneOf(K2, Ks...)2.92M
;
329
2.94M
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
462k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
462k
    return is(K1) || 
isOneOf(K2, Ks...)447k
;
329
462k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::format::TokenType, clang::tok::TokenKind>(clang::tok::TokenKind, clang::format::TokenType, clang::tok::TokenKind) const
Line
Count
Source
327
26.8k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
26.8k
    return is(K1) || 
isOneOf(K2, Ks...)23.9k
;
329
26.8k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
20.9k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
20.9k
    return is(K1) || 
isOneOf(K2, Ks...)20.4k
;
329
20.9k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
20.4k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
20.4k
    return is(K1) || 
isOneOf(K2, Ks...)20.3k
;
329
20.4k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
1.20M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.20M
    return is(K1) || 
isOneOf(K2, Ks...)1.20M
;
329
1.20M
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
1.00k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.00k
    return is(K1) || 
isOneOf(K2, Ks...)1.00k
;
329
1.00k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
1.00k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.00k
    return is(K1) || 
isOneOf(K2, Ks...)1.00k
;
329
1.00k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::IdentifierInfo*, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
1.00k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.00k
    return is(K1) || isOneOf(K2, Ks...);
329
1.00k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
556k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
556k
    return is(K1) || 
isOneOf(K2, Ks...)556k
;
329
556k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
556k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
556k
    return is(K1) || 
isOneOf(K2, Ks...)555k
;
329
556k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
11.9k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
11.9k
    return is(K1) || 
isOneOf(K2, Ks...)11.3k
;
329
11.9k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
11.3k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
11.3k
    return is(K1) || 
isOneOf(K2, Ks...)11.1k
;
329
11.3k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
11.1k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
11.1k
    return is(K1) || 
isOneOf(K2, Ks...)11.1k
;
329
11.1k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
13.5k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
13.5k
    return is(K1) || 
isOneOf(K2, Ks...)12.5k
;
329
13.5k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
160k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160k
    return is(K1) || 
isOneOf(K2, Ks...)139k
;
329
160k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
158k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
158k
    return is(K1) || 
isOneOf(K2, Ks...)147k
;
329
158k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
200k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
200k
    return is(K1) || 
isOneOf(K2, Ks...)188k
;
329
200k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
292
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
292
    return is(K1) || 
isOneOf(K2, Ks...)288
;
329
292
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
288
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
288
    return is(K1) || isOneOf(K2, Ks...);
329
288
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
288
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
288
    return is(K1) || isOneOf(K2, Ks...);
329
288
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
288
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
288
    return is(K1) || isOneOf(K2, Ks...);
329
288
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
3.33k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
3.33k
    return is(K1) || 
isOneOf(K2, Ks...)3.27k
;
329
3.33k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
3.31k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
3.31k
    return is(K1) || 
isOneOf(K2, Ks...)3.29k
;
329
3.31k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
3.29k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
3.29k
    return is(K1) || 
isOneOf(K2, Ks...)3.28k
;
329
3.29k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
3.28k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
3.28k
    return is(K1) || 
isOneOf(K2, Ks...)3.26k
;
329
3.28k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
3.26k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
3.26k
    return is(K1) || 
isOneOf(K2, Ks...)3.20k
;
329
3.26k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
567k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
567k
    return is(K1) || 
isOneOf(K2, Ks...)566k
;
329
567k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
566k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
566k
    return is(K1) || 
isOneOf(K2, Ks...)564k
;
329
566k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
564k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
564k
    return is(K1) || 
isOneOf(K2, Ks...)564k
;
329
564k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
564k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
564k
    return is(K1) || 
isOneOf(K2, Ks...)564k
;
329
564k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
564k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
564k
    return is(K1) || 
isOneOf(K2, Ks...)555k
;
329
564k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
555k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
555k
    return is(K1) || 
isOneOf(K2, Ks...)555k
;
329
555k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
555k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
555k
    return is(K1) || 
isOneOf(K2, Ks...)555k
;
329
555k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::format::TokenType, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
126k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
126k
    return is(K1) || 
isOneOf(K2, Ks...)125k
;
329
126k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
2.35k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
2.35k
    return is(K1) || 
isOneOf(K2, Ks...)2.25k
;
329
2.35k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
2.25k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
2.25k
    return is(K1) || 
isOneOf(K2, Ks...)2.09k
;
329
2.25k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
28.2k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
28.2k
    return is(K1) || 
isOneOf(K2, Ks...)28.2k
;
329
28.2k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind) const
Line
Count
Source
327
3.82k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
3.82k
    return is(K1) || 
isOneOf(K2, Ks...)3.79k
;
329
3.82k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind>(clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind) const
Line
Count
Source
327
3.79k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
3.79k
    return is(K1) || 
isOneOf(K2, Ks...)3.53k
;
329
3.79k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
6.84k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
6.84k
    return is(K1) || 
isOneOf(K2, Ks...)6.79k
;
329
6.84k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
6.79k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
6.79k
    return is(K1) || 
isOneOf(K2, Ks...)6.75k
;
329
6.79k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
6.75k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
6.75k
    return is(K1) || 
isOneOf(K2, Ks...)6.74k
;
329
6.75k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
10.2k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
10.2k
    return is(K1) || 
isOneOf(K2, Ks...)10.2k
;
329
10.2k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
1.65k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.65k
    return is(K1) || 
isOneOf(K2, Ks...)1.57k
;
329
1.65k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
1.57k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.57k
    return is(K1) || 
isOneOf(K2, Ks...)1.57k
;
329
1.57k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
1.56k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.56k
    return is(K1) || 
isOneOf(K2, Ks...)1.13k
;
329
1.56k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
1.13k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.13k
    return is(K1) || 
isOneOf(K2, Ks...)1.05k
;
329
1.13k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType>(clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
2.59M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
2.59M
    return is(K1) || 
isOneOf(K2, Ks...)1.89M
;
329
2.59M
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
132k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
132k
    return is(K1) || 
isOneOf(K2, Ks...)131k
;
329
132k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind>(clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind) const
Line
Count
Source
327
5.73k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
5.73k
    return is(K1) || 
isOneOf(K2, Ks...)5.35k
;
329
5.73k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::PPKeywordKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType>(clang::tok::PPKeywordKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
14.9k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
14.9k
    return is(K1) || 
isOneOf(K2, Ks...)14.9k
;
329
14.9k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
13.5k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
13.5k
    return is(K1) || 
isOneOf(K2, Ks...)13.5k
;
329
13.5k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
30.4k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
30.4k
    return is(K1) || 
isOneOf(K2, Ks...)30.3k
;
329
30.4k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
761
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
761
    return is(K1) || 
isOneOf(K2, Ks...)759
;
329
761
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
11.7k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
11.7k
    return is(K1) || 
isOneOf(K2, Ks...)11.6k
;
329
11.7k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
10.9k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
10.9k
    return is(K1) || 
isOneOf(K2, Ks...)10.9k
;
329
10.9k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
15.1k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
15.1k
    return is(K1) || 
isOneOf(K2, Ks...)14.9k
;
329
15.1k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
14.9k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
14.9k
    return is(K1) || 
isOneOf(K2, Ks...)14.7k
;
329
14.9k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType>(clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
327
14.7k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
14.7k
    return is(K1) || 
isOneOf(K2, Ks...)14.6k
;
329
14.7k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
86
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
86
    return is(K1) || 
isOneOf(K2, Ks...)14
;
329
86
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
14
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
14
    return is(K1) || isOneOf(K2, Ks...);
329
14
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
99
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
99
    return is(K1) || 
isOneOf(K2, Ks...)33
;
329
99
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
12.2k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
12.2k
    return is(K1) || 
isOneOf(K2, Ks...)12.1k
;
329
12.2k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
12.1k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
12.1k
    return is(K1) || 
isOneOf(K2, Ks...)12.0k
;
329
12.1k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
12.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
12.0k
    return is(K1) || 
isOneOf(K2, Ks...)12.0k
;
329
12.0k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
12.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
12.0k
    return is(K1) || 
isOneOf(K2, Ks...)12.0k
;
329
12.0k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
12.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
12.0k
    return is(K1) || 
isOneOf(K2, Ks...)12.0k
;
329
12.0k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
12.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
12.0k
    return is(K1) || 
isOneOf(K2, Ks...)12.0k
;
329
12.0k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
12.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
12.0k
    return is(K1) || 
isOneOf(K2, Ks...)12.0k
;
329
12.0k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
12.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
12.0k
    return is(K1) || 
isOneOf(K2, Ks...)12.0k
;
329
12.0k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
12.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
12.0k
    return is(K1) || isOneOf(K2, Ks...);
329
12.0k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
12.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
12.0k
    return is(K1) || 
isOneOf(K2, Ks...)11.9k
;
329
12.0k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
11.9k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
11.9k
    return is(K1) || 
isOneOf(K2, Ks...)11.9k
;
329
11.9k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
13.6k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
13.6k
    return is(K1) || 
isOneOf(K2, Ks...)13.6k
;
329
13.6k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
13.6k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
13.6k
    return is(K1) || 
isOneOf(K2, Ks...)13.6k
;
329
13.6k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
28
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
28
    return is(K1) || 
isOneOf(K2, Ks...)26
;
329
28
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
26
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
26
    return is(K1) || 
isOneOf(K2, Ks...)22
;
329
26
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
22
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
22
    return is(K1) || 
isOneOf(K2, Ks...)14
;
329
22
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
14
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
14
    return is(K1) || 
isOneOf(K2, Ks...)10
;
329
14
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
10
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
10
    return is(K1) || 
isOneOf(K2, Ks...)8
;
329
10
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || 
isOneOf(K2, Ks...)158
;
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::format::TokenType, clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
90.9k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
90.9k
    return is(K1) || 
isOneOf(K2, Ks...)90.9k
;
329
90.9k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
327
90.9k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
90.9k
    return is(K1) || 
isOneOf(K2, Ks...)90.6k
;
329
90.9k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
7.01k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
7.01k
    return is(K1) || 
isOneOf(K2, Ks...)6.88k
;
329
7.01k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
6.88k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
6.88k
    return is(K1) || 
isOneOf(K2, Ks...)6.83k
;
329
6.88k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
112
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
112
    return is(K1) || isOneOf(K2, Ks...);
329
112
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
112
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
112
    return is(K1) || isOneOf(K2, Ks...);
329
112
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
498
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
498
    return is(K1) || 
isOneOf(K2, Ks...)344
;
329
498
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
2.92k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
2.92k
    return is(K1) || 
isOneOf(K2, Ks...)2.91k
;
329
2.92k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
2.91k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
2.91k
    return is(K1) || 
isOneOf(K2, Ks...)2.89k
;
329
2.91k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
2.89k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
2.89k
    return is(K1) || isOneOf(K2, Ks...);
329
2.89k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
327
2.89k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
2.89k
    return is(K1) || 
isOneOf(K2, Ks...)2.89k
;
329
2.89k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
327
117
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
117
    return is(K1) || 
isOneOf(K2, Ks...)108
;
329
117
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
176
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
176
    return is(K1) || 
isOneOf(K2, Ks...)164
;
329
176
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
164
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
164
    return is(K1) || isOneOf(K2, Ks...);
329
164
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
164
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
164
    return is(K1) || 
isOneOf(K2, Ks...)160
;
329
164
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || isOneOf(K2, Ks...);
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
160
    return is(K1) || 
isOneOf(K2, Ks...)156
;
329
160
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
156
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
156
    return is(K1) || 
isOneOf(K2, Ks...)152
;
329
156
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
327
152
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
152
    return is(K1) || isOneOf(K2, Ks...);
329
152
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.18k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.18k
    return is(K1) || 
isOneOf(K2, Ks...)1.17k
;
329
1.18k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.17k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.17k
    return is(K1) || isOneOf(K2, Ks...);
329
1.17k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.17k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.17k
    return is(K1) || 
isOneOf(K2, Ks...)1.17k
;
329
1.17k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.17k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.17k
    return is(K1) || 
isOneOf(K2, Ks...)1.16k
;
329
1.17k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.16k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.16k
    return is(K1) || 
isOneOf(K2, Ks...)1.16k
;
329
1.16k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.16k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.16k
    return is(K1) || 
isOneOf(K2, Ks...)1.14k
;
329
1.16k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.14k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.14k
    return is(K1) || isOneOf(K2, Ks...);
329
1.14k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.14k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.14k
    return is(K1) || 
isOneOf(K2, Ks...)1.10k
;
329
1.14k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.10k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.10k
    return is(K1) || 
isOneOf(K2, Ks...)1.00k
;
329
1.10k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.00k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.00k
    return is(K1) || 
isOneOf(K2, Ks...)1.00k
;
329
1.00k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
1.00k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
1.00k
    return is(K1) || 
isOneOf(K2, Ks...)947
;
329
1.00k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
947
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
947
    return is(K1) || 
isOneOf(K2, Ks...)875
;
329
947
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
875
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
875
    return is(K1) || isOneOf(K2, Ks...);
329
875
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
327
875
  bool isOneOf(A K1, B K2, Ts... Ks) const {
328
875
    return is(K1) || isOneOf(K2, Ks...);
329
875
  }
330
6.30M
  template <typename T> bool isNot(T Kind) const { return !is(Kind); }
bool clang::format::FormatToken::isNot<clang::tok::TokenKind>(clang::tok::TokenKind) const
Line
Count
Source
330
5.52M
  template <typename T> bool isNot(T Kind) const { return !is(Kind); }
bool clang::format::FormatToken::isNot<clang::format::TokenType>(clang::format::TokenType) const
Line
Count
Source
330
780k
  template <typename T> bool isNot(T Kind) const { return !is(Kind); }
bool clang::format::FormatToken::isNot<clang::IdentifierInfo*>(clang::IdentifierInfo*) const
Line
Count
Source
330
162
  template <typename T> bool isNot(T Kind) const { return !is(Kind); }
331
332
201k
  bool isIf(bool AllowConstexprMacro = true) const {
333
201k
    return is(tok::kw_if) || 
endsSequence(tok::kw_constexpr, tok::kw_if)197k
||
334
201k
           
(197k
endsSequence(tok::identifier, tok::kw_if)197k
&&
AllowConstexprMacro519
);
335
201k
  }
336
337
1.26k
  bool closesScopeAfterBlock() const {
338
1.26k
    if (BlockKind == BK_Block)
339
59
      return true;
340
1.20k
    if (closesScope())
341
710
      return Previous->closesScopeAfterBlock();
342
495
    return false;
343
495
  }
344
345
  /// \c true if this token starts a sequence with the given tokens in order,
346
  /// following the ``Next`` pointers, ignoring comments.
347
  template <typename A, typename... Ts>
348
953k
  bool startsSequence(A K1, Ts... Tokens) const {
349
953k
    return startsSequenceInternal(K1, Tokens...);
350
953k
  }
bool clang::format::FormatToken::startsSequence<clang::tok::TokenKind>(clang::tok::TokenKind) const
Line
Count
Source
348
333k
  bool startsSequence(A K1, Ts... Tokens) const {
349
333k
    return startsSequenceInternal(K1, Tokens...);
350
333k
  }
bool clang::format::FormatToken::startsSequence<clang::format::TokenType>(clang::format::TokenType) const
Line
Count
Source
348
565k
  bool startsSequence(A K1, Ts... Tokens) const {
349
565k
    return startsSequenceInternal(K1, Tokens...);
350
565k
  }
bool clang::format::FormatToken::startsSequence<clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
348
26.6k
  bool startsSequence(A K1, Ts... Tokens) const {
349
26.6k
    return startsSequenceInternal(K1, Tokens...);
350
26.6k
  }
bool clang::format::FormatToken::startsSequence<clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
348
152
  bool startsSequence(A K1, Ts... Tokens) const {
349
152
    return startsSequenceInternal(K1, Tokens...);
350
152
  }
bool clang::format::FormatToken::startsSequence<clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
348
3.63k
  bool startsSequence(A K1, Ts... Tokens) const {
349
3.63k
    return startsSequenceInternal(K1, Tokens...);
350
3.63k
  }
bool clang::format::FormatToken::startsSequence<clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
348
3.57k
  bool startsSequence(A K1, Ts... Tokens) const {
349
3.57k
    return startsSequenceInternal(K1, Tokens...);
350
3.57k
  }
bool clang::format::FormatToken::startsSequence<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
348
14.6k
  bool startsSequence(A K1, Ts... Tokens) const {
349
14.6k
    return startsSequenceInternal(K1, Tokens...);
350
14.6k
  }
bool clang::format::FormatToken::startsSequence<clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
348
5.14k
  bool startsSequence(A K1, Ts... Tokens) const {
349
5.14k
    return startsSequenceInternal(K1, Tokens...);
350
5.14k
  }
351
352
  /// \c true if this token ends a sequence with the given tokens in order,
353
  /// following the ``Previous`` pointers, ignoring comments.
354
  /// For example, given tokens [T1, T2, T3], the function returns true if
355
  /// 3 tokens ending at this (ignoring comments) are [T3, T2, T1]. In other
356
  /// words, the tokens passed to this function need to the reverse of the
357
  /// order the tokens appear in code.
358
  template <typename A, typename... Ts>
359
409k
  bool endsSequence(A K1, Ts... Tokens) const {
360
409k
    return endsSequenceInternal(K1, Tokens...);
361
409k
  }
bool clang::format::FormatToken::endsSequence<clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
359
395k
  bool endsSequence(A K1, Ts... Tokens) const {
360
395k
    return endsSequenceInternal(K1, Tokens...);
361
395k
  }
bool clang::format::FormatToken::endsSequence<clang::tok::TokenKind>(clang::tok::TokenKind) const
Line
Count
Source
359
279
  bool endsSequence(A K1, Ts... Tokens) const {
360
279
    return endsSequenceInternal(K1, Tokens...);
361
279
  }
bool clang::format::FormatToken::endsSequence<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
359
317
  bool endsSequence(A K1, Ts... Tokens) const {
360
317
    return endsSequenceInternal(K1, Tokens...);
361
317
  }
bool clang::format::FormatToken::endsSequence<clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType>(clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
359
292
  bool endsSequence(A K1, Ts... Tokens) const {
360
292
    return endsSequenceInternal(K1, Tokens...);
361
292
  }
bool clang::format::FormatToken::endsSequence<clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
359
12.3k
  bool endsSequence(A K1, Ts... Tokens) const {
360
12.3k
    return endsSequenceInternal(K1, Tokens...);
361
12.3k
  }
bool clang::format::FormatToken::endsSequence<clang::format::TokenType, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind) const
Line
Count
Source
359
1.11k
  bool endsSequence(A K1, Ts... Tokens) const {
360
1.11k
    return endsSequenceInternal(K1, Tokens...);
361
1.11k
  }
362
363
4.30M
  bool isStringLiteral() const { return tok::isStringLiteral(Tok.getKind()); }
364
365
44.3k
  bool isObjCAtKeyword(tok::ObjCKeywordKind Kind) const {
366
44.3k
    return Tok.isObjCAtKeyword(Kind);
367
44.3k
  }
368
369
68.7k
  bool isAccessSpecifier(bool ColonRequired = true) const {
370
68.7k
    return isOneOf(tok::kw_public, tok::kw_protected, tok::kw_private) &&
371
68.7k
           
(668
!ColonRequired668
||
(355
Next355
&&
Next->is(tok::colon)340
));
372
68.7k
  }
373
374
  /// Determine whether the token is a simple-type-specifier.
375
  bool isSimpleTypeSpecifier() const;
376
377
45.6k
  bool isObjCAccessSpecifier() const {
378
45.6k
    return is(tok::at) && 
Next539
&&
379
45.6k
           
(539
Next->isObjCAtKeyword(tok::objc_public)539
||
380
539
            
Next->isObjCAtKeyword(tok::objc_protected)529
||
381
539
            
Next->isObjCAtKeyword(tok::objc_package)519
||
382
539
            
Next->isObjCAtKeyword(tok::objc_private)509
);
383
45.6k
  }
384
385
  /// Returns whether \p Tok is ([{ or an opening < of a template or in
386
  /// protos.
387
5.13M
  bool opensScope() const {
388
5.13M
    if (is(TT_TemplateString) && 
TokenText.endswith("${")2.90k
)
389
1.66k
      return true;
390
5.13M
    if (is(TT_DictLiteral) && 
is(tok::less)56.1k
)
391
4.71k
      return true;
392
5.13M
    return isOneOf(tok::l_paren, tok::l_brace, tok::l_square,
393
5.13M
                   TT_TemplateOpener);
394
5.13M
  }
395
  /// Returns whether \p Tok is )]} or a closing > of a template or in
396
  /// protos.
397
4.46M
  bool closesScope() const {
398
4.46M
    if (is(TT_TemplateString) && 
TokenText.startswith("}")2.77k
)
399
2.07k
      return true;
400
4.46M
    if (is(TT_DictLiteral) && 
is(tok::greater)22.3k
)
401
6.31k
      return true;
402
4.45M
    return isOneOf(tok::r_paren, tok::r_brace, tok::r_square,
403
4.45M
                   TT_TemplateCloser);
404
4.45M
  }
405
406
  /// Returns \c true if this is a "." or "->" accessing a member.
407
4.64M
  bool isMemberAccess() const {
408
4.64M
    return isOneOf(tok::arrow, tok::period, tok::arrowstar) &&
409
4.64M
           !isOneOf(TT_DesignatedInitializerPeriod, TT_TrailingReturnArrow,
410
54.3k
                    TT_LambdaArrow, TT_LeadingJavaAnnotation);
411
4.64M
  }
412
413
8.52k
  bool isUnaryOperator() const {
414
8.52k
    switch (Tok.getKind()) {
415
228
    case tok::plus:
416
228
    case tok::plusplus:
417
228
    case tok::minus:
418
228
    case tok::minusminus:
419
228
    case tok::exclaim:
420
228
    case tok::tilde:
421
228
    case tok::kw_sizeof:
422
228
    case tok::kw_alignof:
423
228
      return true;
424
8.29k
    default:
425
8.29k
      return false;
426
8.52k
    }
427
8.52k
  }
428
429
630k
  bool isBinaryOperator() const {
430
630k
    // Comma is a binary operator, but does not behave as such wrt. formatting.
431
630k
    return getPrecedence() > prec::Comma;
432
630k
  }
433
434
1.56M
  bool isTrailingComment() const {
435
1.56M
    return is(tok::comment) &&
436
1.56M
           
(16.6k
is(TT_LineComment)16.6k
||
!Next2.75k
||
Next->NewlinesBefore > 01.77k
);
437
1.56M
  }
438
439
  /// Returns \c true if this is a keyword that can be used
440
  /// like a function call (e.g. sizeof, typeid, ...).
441
75
  bool isFunctionLikeKeyword() const {
442
75
    switch (Tok.getKind()) {
443
54
    case tok::kw_throw:
444
54
    case tok::kw_typeid:
445
54
    case tok::kw_return:
446
54
    case tok::kw_sizeof:
447
54
    case tok::kw_alignof:
448
54
    case tok::kw_alignas:
449
54
    case tok::kw_decltype:
450
54
    case tok::kw_noexcept:
451
54
    case tok::kw_static_assert:
452
54
    case tok::kw___attribute:
453
54
      return true;
454
54
    default:
455
21
      return false;
456
75
    }
457
75
  }
458
459
  /// Returns \c true if this is a string literal that's like a label,
460
  /// e.g. ends with "=" or ":".
461
8.96k
  bool isLabelString() const {
462
8.96k
    if (!is(tok::string_literal))
463
8.51k
      return false;
464
452
    StringRef Content = TokenText;
465
452
    if (Content.startswith("\"") || 
Content.startswith("'")197
)
466
347
      Content = Content.drop_front(1);
467
452
    if (Content.endswith("\"") || 
Content.endswith("'")102
)
468
442
      Content = Content.drop_back(1);
469
452
    Content = Content.trim();
470
452
    return Content.size() > 1 &&
471
452
           
(422
Content.back() == ':'422
||
Content.back() == '='338
);
472
452
  }
473
474
  /// Returns actual token start location without leading escaped
475
  /// newlines and whitespace.
476
  ///
477
  /// This can be different to Tok.getLocation(), which includes leading escaped
478
  /// newlines.
479
621k
  SourceLocation getStartOfNonWhitespace() const {
480
621k
    return WhitespaceRange.getEnd();
481
621k
  }
482
483
2.69M
  prec::Level getPrecedence() const {
484
2.69M
    return getBinOpPrecedence(Tok.getKind(), /*GreaterThanIsOperator=*/true,
485
2.69M
                              /*CPlusPlus11=*/true);
486
2.69M
  }
487
488
  /// Returns the previous token ignoring comments.
489
4.89M
  FormatToken *getPreviousNonComment() const {
490
4.89M
    FormatToken *Tok = Previous;
491
4.91M
    while (Tok && 
Tok->is(tok::comment)4.82M
)
492
22.1k
      Tok = Tok->Previous;
493
4.89M
    return Tok;
494
4.89M
  }
495
496
  /// Returns the next token ignoring comments.
497
3.79M
  const FormatToken *getNextNonComment() const {
498
3.79M
    const FormatToken *Tok = Next;
499
3.83M
    while (Tok && 
Tok->is(tok::comment)2.95M
)
500
40.0k
      Tok = Tok->Next;
501
3.79M
    return Tok;
502
3.79M
  }
503
504
  /// Returns \c true if this tokens starts a block-type list, i.e. a
505
  /// list that should be indented with a block indent.
506
340k
  bool opensBlockOrBlockTypeList(const FormatStyle &Style) const {
507
340k
    if (is(TT_TemplateString) && 
opensScope()124
)
508
50
      return true;
509
340k
    return is(TT_ArrayInitializerLSquare) || 
is(TT_ProtoExtensionLSquare)338k
||
510
340k
           
(338k
is(tok::l_brace)338k
&&
511
338k
            
(46.4k
BlockKind == BK_Block46.4k
||
is(TT_DictLiteral)23.1k
||
512
46.4k
             
(17.0k
!Style.Cpp11BracedListStyle17.0k
&&
NestingLevel == 01.52k
))) ||
513
340k
           
(308k
is(tok::less)308k
&&
(8.71k
Style.Language == FormatStyle::LK_Proto8.71k
||
514
8.71k
                              
Style.Language == FormatStyle::LK_TextProto7.47k
));
515
340k
  }
516
517
  /// Returns whether the token is the left square bracket of a C++
518
  /// structured binding declaration.
519
7.12k
  bool isCppStructuredBinding(const FormatStyle &Style) const {
520
7.12k
    if (!Style.isCpp() || 
isNot(tok::l_square)6.50k
)
521
612
      return false;
522
6.50k
    const FormatToken *T = this;
523
7.03k
    do {
524
7.03k
      T = T->getPreviousNonComment();
525
7.03k
    } while (T && T->isOneOf(tok::kw_const, tok::kw_volatile, tok::amp,
526
6.30k
                             tok::ampamp));
527
6.50k
    return T && 
T->is(tok::kw_auto)5.78k
;
528
6.50k
  }
529
530
  /// Same as opensBlockOrBlockTypeList, but for the closing token.
531
50.2k
  bool closesBlockOrBlockTypeList(const FormatStyle &Style) const {
532
50.2k
    if (is(TT_TemplateString) && 
closesScope()12
)
533
0
      return true;
534
50.2k
    return MatchingParen && 
MatchingParen->opensBlockOrBlockTypeList(Style)20.9k
;
535
50.2k
  }
536
537
  /// Return the actual namespace token, if this token starts a namespace
538
  /// block.
539
8.20k
  const FormatToken *getNamespaceToken() const {
540
8.20k
    const FormatToken *NamespaceTok = this;
541
8.20k
    if (is(tok::comment))
542
28
      NamespaceTok = NamespaceTok->getNextNonComment();
543
8.20k
    // Detect "(inline|export)? namespace" in the beginning of a line.
544
8.20k
    if (NamespaceTok && 
NamespaceTok->isOneOf(tok::kw_inline, tok::kw_export)8.20k
)
545
65
      NamespaceTok = NamespaceTok->getNextNonComment();
546
8.20k
    return NamespaceTok &&
547
8.20k
                   
NamespaceTok->isOneOf(tok::kw_namespace, TT_NamespaceMacro)8.20k
548
8.20k
               ? 
NamespaceTok873
549
8.20k
               : 
nullptr7.33k
;
550
8.20k
  }
551
552
private:
553
  // Disallow copying.
554
  FormatToken(const FormatToken &) = delete;
555
  void operator=(const FormatToken &) = delete;
556
557
  template <typename A, typename... Ts>
558
54.5k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
559
54.5k
    if (is(tok::comment) && 
Next207
)
560
129
      return Next->startsSequenceInternal(K1, Tokens...);
561
54.4k
    return is(K1) && 
Next6.02k
&&
Next->startsSequenceInternal(Tokens...)6.02k
;
562
54.4k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
558
27.2k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
559
27.2k
    if (is(tok::comment) && 
Next27
)
560
23
      return Next->startsSequenceInternal(K1, Tokens...);
561
27.2k
    return is(K1) && 
Next5.30k
&&
Next->startsSequenceInternal(Tokens...)5.30k
;
562
27.2k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
558
152
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
559
152
    if (is(tok::comment) && 
Next0
)
560
0
      return Next->startsSequenceInternal(K1, Tokens...);
561
152
    return is(K1) && Next && Next->startsSequenceInternal(Tokens...);
562
152
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
558
3.75k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
559
3.75k
    if (is(tok::comment) && 
Next12
)
560
12
      return Next->startsSequenceInternal(K1, Tokens...);
561
3.74k
    return is(K1) && 
Next72
&&
Next->startsSequenceInternal(Tokens...)72
;
562
3.74k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
558
3.57k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
559
3.57k
    if (is(tok::comment) && 
Next8
)
560
8
      return Next->startsSequenceInternal(K1, Tokens...);
561
3.57k
    return is(K1) && 
Next107
&&
Next->startsSequenceInternal(Tokens...)107
;
562
3.57k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
558
14.6k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
559
14.6k
    if (is(tok::comment) && 
Next160
)
560
86
      return Next->startsSequenceInternal(K1, Tokens...);
561
14.6k
    return is(K1) && 
Next389
&&
Next->startsSequenceInternal(Tokens...)389
;
562
14.6k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
558
5.14k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
559
5.14k
    if (is(tok::comment) && 
Next0
)
560
0
      return Next->startsSequenceInternal(K1, Tokens...);
561
5.14k
    return is(K1) && 
Next0
&&
Next->startsSequenceInternal(Tokens...)0
;
562
5.14k
  }
563
564
912k
  template <typename A> bool startsSequenceInternal(A K1) const {
565
912k
    if (is(tok::comment) && 
Next18.9k
)
566
7.69k
      return Next->startsSequenceInternal(K1);
567
904k
    return is(K1);
568
904k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::tok::TokenKind>(clang::tok::TokenKind) const
Line
Count
Source
564
340k
  template <typename A> bool startsSequenceInternal(A K1) const {
565
340k
    if (is(tok::comment) && 
Next3.94k
)
566
1.70k
      return Next->startsSequenceInternal(K1);
567
338k
    return is(K1);
568
338k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::format::TokenType>(clang::format::TokenType) const
Line
Count
Source
564
571k
  template <typename A> bool startsSequenceInternal(A K1) const {
565
571k
    if (is(tok::comment) && 
Next15.0k
)
566
5.99k
      return Next->startsSequenceInternal(K1);
567
565k
    return is(K1);
568
565k
  }
Unexecuted instantiation: bool clang::format::FormatToken::startsSequenceInternal<clang::IdentifierInfo*>(clang::IdentifierInfo*) const
569
570
166k
  template <typename A, typename... Ts> bool endsSequenceInternal(A K1) const {
571
166k
    if (is(tok::comment) && 
Previous228
)
572
204
      return Previous->endsSequenceInternal(K1);
573
166k
    return is(K1);
574
166k
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::tok::TokenKind>(clang::tok::TokenKind) const
Line
Count
Source
570
165k
  template <typename A, typename... Ts> bool endsSequenceInternal(A K1) const {
571
165k
    if (is(tok::comment) && 
Previous224
)
572
204
      return Previous->endsSequenceInternal(K1);
573
165k
    return is(K1);
574
165k
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::format::TokenType>(clang::format::TokenType) const
Line
Count
Source
570
138
  template <typename A, typename... Ts> bool endsSequenceInternal(A K1) const {
571
138
    if (is(tok::comment) && 
Previous0
)
572
0
      return Previous->endsSequenceInternal(K1);
573
138
    return is(K1);
574
138
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::IdentifierInfo*>(clang::IdentifierInfo*) const
Line
Count
Source
570
878
  template <typename A, typename... Ts> bool endsSequenceInternal(A K1) const {
571
878
    if (is(tok::comment) && 
Previous4
)
572
0
      return Previous->endsSequenceInternal(K1);
573
878
    return is(K1);
574
878
  }
575
576
  template <typename A, typename... Ts>
577
410k
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
578
410k
    if (is(tok::comment) && 
Previous398
)
579
394
      return Previous->endsSequenceInternal(K1, Tokens...);
580
409k
    return is(K1) && 
Previous182k
&&
Previous->endsSequenceInternal(Tokens...)166k
;
581
409k
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
577
395k
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
578
395k
    if (is(tok::comment) && 
Previous313
)
579
313
      return Previous->endsSequenceInternal(K1, Tokens...);
580
395k
    return is(K1) && 
Previous180k
&&
Previous->endsSequenceInternal(Tokens...)164k
;
581
395k
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
577
317
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
578
317
    if (is(tok::comment) && 
Previous0
)
579
0
      return Previous->endsSequenceInternal(K1, Tokens...);
580
317
    return is(K1) && Previous && 
Previous->endsSequenceInternal(Tokens...)269
;
581
317
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType>(clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
577
292
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
578
292
    if (is(tok::comment) && 
Previous0
)
579
0
      return Previous->endsSequenceInternal(K1, Tokens...);
580
292
    return is(K1) && Previous && 
Previous->endsSequenceInternal(Tokens...)268
;
581
292
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::tok::TokenKind, clang::format::TokenType>(clang::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
577
268
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
578
268
    if (is(tok::comment) && 
Previous0
)
579
0
      return Previous->endsSequenceInternal(K1, Tokens...);
580
268
    return is(K1) && 
Previous138
&&
Previous->endsSequenceInternal(Tokens...)138
;
581
268
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
577
12.4k
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
578
12.4k
    if (is(tok::comment) && 
Previous85
)
579
81
      return Previous->endsSequenceInternal(K1, Tokens...);
580
12.3k
    return is(K1) && 
Previous1.34k
&&
Previous->endsSequenceInternal(Tokens...)878
;
581
12.3k
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::format::TokenType, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind) const
Line
Count
Source
577
1.11k
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
578
1.11k
    if (is(tok::comment) && 
Previous0
)
579
0
      return Previous->endsSequenceInternal(K1, Tokens...);
580
1.11k
    return is(K1) && 
Previous28
&&
Previous->endsSequenceInternal(Tokens...)28
;
581
1.11k
  }
582
};
583
584
class ContinuationIndenter;
585
struct LineState;
586
587
class TokenRole {
588
public:
589
8.48k
  TokenRole(const FormatStyle &Style) : Style(Style) {}
590
  virtual ~TokenRole();
591
592
  /// After the \c TokenAnnotator has finished annotating all the tokens,
593
  /// this function precomputes required information for formatting.
594
  virtual void precomputeFormattingInfos(const FormatToken *Token);
595
596
  /// Apply the special formatting that the given role demands.
597
  ///
598
  /// Assumes that the token having this role is already formatted.
599
  ///
600
  /// Continues formatting from \p State leaving indentation to \p Indenter and
601
  /// returns the total penalty that this formatting incurs.
602
  virtual unsigned formatFromToken(LineState &State,
603
                                   ContinuationIndenter *Indenter,
604
0
                                   bool DryRun) {
605
0
    return 0;
606
0
  }
607
608
  /// Same as \c formatFromToken, but assumes that the first token has
609
  /// already been set thereby deciding on the first line break.
610
  virtual unsigned formatAfterToken(LineState &State,
611
                                    ContinuationIndenter *Indenter,
612
0
                                    bool DryRun) {
613
0
    return 0;
614
0
  }
615
616
  /// Notifies the \c Role that a comma was found.
617
0
  virtual void CommaFound(const FormatToken *Token) {}
618
619
0
  virtual const FormatToken *lastComma() { return nullptr; }
620
621
protected:
622
  const FormatStyle &Style;
623
};
624
625
class CommaSeparatedList : public TokenRole {
626
public:
627
  CommaSeparatedList(const FormatStyle &Style)
628
8.48k
      : TokenRole(Style), HasNestedBracedList(false) {}
629
630
  void precomputeFormattingInfos(const FormatToken *Token) override;
631
632
  unsigned formatAfterToken(LineState &State, ContinuationIndenter *Indenter,
633
                            bool DryRun) override;
634
635
  unsigned formatFromToken(LineState &State, ContinuationIndenter *Indenter,
636
                           bool DryRun) override;
637
638
  /// Adds \p Token as the next comma to the \c CommaSeparated list.
639
15.8k
  void CommaFound(const FormatToken *Token) override {
640
15.8k
    Commas.push_back(Token);
641
15.8k
  }
642
643
99
  const FormatToken *lastComma() override {
644
99
    if (Commas.empty())
645
0
      return nullptr;
646
99
    return Commas.back();
647
99
  }
648
649
private:
650
  /// A struct that holds information on how to format a given list with
651
  /// a specific number of columns.
652
  struct ColumnFormat {
653
    /// The number of columns to use.
654
    unsigned Columns;
655
656
    /// The total width in characters.
657
    unsigned TotalWidth;
658
659
    /// The number of lines required for this format.
660
    unsigned LineCount;
661
662
    /// The size of each column in characters.
663
    SmallVector<unsigned, 8> ColumnSizes;
664
  };
665
666
  /// Calculate which \c ColumnFormat fits best into
667
  /// \p RemainingCharacters.
668
  const ColumnFormat *getColumnFormat(unsigned RemainingCharacters) const;
669
670
  /// The ordered \c FormatTokens making up the commas of this list.
671
  SmallVector<const FormatToken *, 8> Commas;
672
673
  /// The length of each of the list's items in characters including the
674
  /// trailing comma.
675
  SmallVector<unsigned, 8> ItemLengths;
676
677
  /// Precomputed formats that can be used for this list.
678
  SmallVector<ColumnFormat, 4> Formats;
679
680
  bool HasNestedBracedList;
681
};
682
683
/// Encapsulates keywords that are context sensitive or for languages not
684
/// properly supported by Clang's lexer.
685
struct AdditionalKeywords {
686
32.7k
  AdditionalKeywords(IdentifierTable &IdentTable) {
687
32.7k
    kw_final = &IdentTable.get("final");
688
32.7k
    kw_override = &IdentTable.get("override");
689
32.7k
    kw_in = &IdentTable.get("in");
690
32.7k
    kw_of = &IdentTable.get("of");
691
32.7k
    kw_CF_CLOSED_ENUM = &IdentTable.get("CF_CLOSED_ENUM");
692
32.7k
    kw_CF_ENUM = &IdentTable.get("CF_ENUM");
693
32.7k
    kw_CF_OPTIONS = &IdentTable.get("CF_OPTIONS");
694
32.7k
    kw_NS_CLOSED_ENUM = &IdentTable.get("NS_CLOSED_ENUM");
695
32.7k
    kw_NS_ENUM = &IdentTable.get("NS_ENUM");
696
32.7k
    kw_NS_OPTIONS = &IdentTable.get("NS_OPTIONS");
697
32.7k
698
32.7k
    kw_as = &IdentTable.get("as");
699
32.7k
    kw_async = &IdentTable.get("async");
700
32.7k
    kw_await = &IdentTable.get("await");
701
32.7k
    kw_declare = &IdentTable.get("declare");
702
32.7k
    kw_finally = &IdentTable.get("finally");
703
32.7k
    kw_from = &IdentTable.get("from");
704
32.7k
    kw_function = &IdentTable.get("function");
705
32.7k
    kw_get = &IdentTable.get("get");
706
32.7k
    kw_import = &IdentTable.get("import");
707
32.7k
    kw_infer = &IdentTable.get("infer");
708
32.7k
    kw_is = &IdentTable.get("is");
709
32.7k
    kw_let = &IdentTable.get("let");
710
32.7k
    kw_module = &IdentTable.get("module");
711
32.7k
    kw_readonly = &IdentTable.get("readonly");
712
32.7k
    kw_set = &IdentTable.get("set");
713
32.7k
    kw_type = &IdentTable.get("type");
714
32.7k
    kw_typeof = &IdentTable.get("typeof");
715
32.7k
    kw_var = &IdentTable.get("var");
716
32.7k
    kw_yield = &IdentTable.get("yield");
717
32.7k
718
32.7k
    kw_abstract = &IdentTable.get("abstract");
719
32.7k
    kw_assert = &IdentTable.get("assert");
720
32.7k
    kw_extends = &IdentTable.get("extends");
721
32.7k
    kw_implements = &IdentTable.get("implements");
722
32.7k
    kw_instanceof = &IdentTable.get("instanceof");
723
32.7k
    kw_interface = &IdentTable.get("interface");
724
32.7k
    kw_native = &IdentTable.get("native");
725
32.7k
    kw_package = &IdentTable.get("package");
726
32.7k
    kw_synchronized = &IdentTable.get("synchronized");
727
32.7k
    kw_throws = &IdentTable.get("throws");
728
32.7k
    kw___except = &IdentTable.get("__except");
729
32.7k
    kw___has_include = &IdentTable.get("__has_include");
730
32.7k
    kw___has_include_next = &IdentTable.get("__has_include_next");
731
32.7k
732
32.7k
    kw_mark = &IdentTable.get("mark");
733
32.7k
734
32.7k
    kw_extend = &IdentTable.get("extend");
735
32.7k
    kw_option = &IdentTable.get("option");
736
32.7k
    kw_optional = &IdentTable.get("optional");
737
32.7k
    kw_repeated = &IdentTable.get("repeated");
738
32.7k
    kw_required = &IdentTable.get("required");
739
32.7k
    kw_returns = &IdentTable.get("returns");
740
32.7k
741
32.7k
    kw_signals = &IdentTable.get("signals");
742
32.7k
    kw_qsignals = &IdentTable.get("Q_SIGNALS");
743
32.7k
    kw_slots = &IdentTable.get("slots");
744
32.7k
    kw_qslots = &IdentTable.get("Q_SLOTS");
745
32.7k
746
32.7k
    // C# keywords
747
32.7k
    kw_dollar = &IdentTable.get("dollar");
748
32.7k
    kw_base = &IdentTable.get("base");
749
32.7k
    kw_byte = &IdentTable.get("byte");
750
32.7k
    kw_checked = &IdentTable.get("checked");
751
32.7k
    kw_decimal = &IdentTable.get("decimal");
752
32.7k
    kw_delegate = &IdentTable.get("delegate");
753
32.7k
    kw_event = &IdentTable.get("event");
754
32.7k
    kw_fixed = &IdentTable.get("fixed");
755
32.7k
    kw_foreach = &IdentTable.get("foreach");
756
32.7k
    kw_implicit = &IdentTable.get("implicit");
757
32.7k
    kw_internal = &IdentTable.get("internal");
758
32.7k
    kw_lock = &IdentTable.get("lock");
759
32.7k
    kw_null = &IdentTable.get("null");
760
32.7k
    kw_object = &IdentTable.get("object");
761
32.7k
    kw_out = &IdentTable.get("out");
762
32.7k
    kw_params = &IdentTable.get("params");
763
32.7k
    kw_ref = &IdentTable.get("ref");
764
32.7k
    kw_string = &IdentTable.get("string");
765
32.7k
    kw_stackalloc = &IdentTable.get("stackalloc");
766
32.7k
    kw_sbyte = &IdentTable.get("sbyte");
767
32.7k
    kw_sealed = &IdentTable.get("sealed");
768
32.7k
    kw_uint = &IdentTable.get("uint");
769
32.7k
    kw_ulong = &IdentTable.get("ulong");
770
32.7k
    kw_unchecked = &IdentTable.get("unchecked");
771
32.7k
    kw_unsafe = &IdentTable.get("unsafe");
772
32.7k
    kw_ushort = &IdentTable.get("ushort");
773
32.7k
774
32.7k
    // Keep this at the end of the constructor to make sure everything here
775
32.7k
    // is
776
32.7k
    // already initialized.
777
32.7k
    JsExtraKeywords = std::unordered_set<IdentifierInfo *>(
778
32.7k
        {kw_as, kw_async, kw_await, kw_declare, kw_finally, kw_from,
779
32.7k
         kw_function, kw_get, kw_import, kw_is, kw_let, kw_module, kw_readonly,
780
32.7k
         kw_set, kw_type, kw_typeof, kw_var, kw_yield,
781
32.7k
         // Keywords from the Java section.
782
32.7k
         kw_abstract, kw_extends, kw_implements, kw_instanceof, kw_interface});
783
32.7k
784
32.7k
    CSharpExtraKeywords = std::unordered_set<IdentifierInfo *>(
785
32.7k
        {kw_base, kw_byte, kw_checked, kw_decimal, kw_delegate, kw_event,
786
32.7k
         kw_fixed, kw_foreach, kw_implicit, kw_in, kw_interface, kw_internal,
787
32.7k
         kw_is, kw_lock, kw_null, kw_object, kw_out, kw_override, kw_params,
788
32.7k
         kw_readonly, kw_ref, kw_string, kw_stackalloc, kw_sbyte, kw_sealed,
789
32.7k
         kw_uint, kw_ulong, kw_unchecked, kw_unsafe, kw_ushort,
790
32.7k
         // Keywords from the JavaScript section.
791
32.7k
         kw_as, kw_async, kw_await, kw_declare, kw_finally, kw_from,
792
32.7k
         kw_function, kw_get, kw_import, kw_is, kw_let, kw_module, kw_readonly,
793
32.7k
         kw_set, kw_type, kw_typeof, kw_var, kw_yield,
794
32.7k
         // Keywords from the Java section.
795
32.7k
         kw_abstract, kw_extends, kw_implements, kw_instanceof, kw_interface});
796
32.7k
  }
797
798
  // Context sensitive keywords.
799
  IdentifierInfo *kw_final;
800
  IdentifierInfo *kw_override;
801
  IdentifierInfo *kw_in;
802
  IdentifierInfo *kw_of;
803
  IdentifierInfo *kw_CF_CLOSED_ENUM;
804
  IdentifierInfo *kw_CF_ENUM;
805
  IdentifierInfo *kw_CF_OPTIONS;
806
  IdentifierInfo *kw_NS_CLOSED_ENUM;
807
  IdentifierInfo *kw_NS_ENUM;
808
  IdentifierInfo *kw_NS_OPTIONS;
809
  IdentifierInfo *kw___except;
810
  IdentifierInfo *kw___has_include;
811
  IdentifierInfo *kw___has_include_next;
812
813
  // JavaScript keywords.
814
  IdentifierInfo *kw_as;
815
  IdentifierInfo *kw_async;
816
  IdentifierInfo *kw_await;
817
  IdentifierInfo *kw_declare;
818
  IdentifierInfo *kw_finally;
819
  IdentifierInfo *kw_from;
820
  IdentifierInfo *kw_function;
821
  IdentifierInfo *kw_get;
822
  IdentifierInfo *kw_import;
823
  IdentifierInfo *kw_infer;
824
  IdentifierInfo *kw_is;
825
  IdentifierInfo *kw_let;
826
  IdentifierInfo *kw_module;
827
  IdentifierInfo *kw_readonly;
828
  IdentifierInfo *kw_set;
829
  IdentifierInfo *kw_type;
830
  IdentifierInfo *kw_typeof;
831
  IdentifierInfo *kw_var;
832
  IdentifierInfo *kw_yield;
833
834
  // Java keywords.
835
  IdentifierInfo *kw_abstract;
836
  IdentifierInfo *kw_assert;
837
  IdentifierInfo *kw_extends;
838
  IdentifierInfo *kw_implements;
839
  IdentifierInfo *kw_instanceof;
840
  IdentifierInfo *kw_interface;
841
  IdentifierInfo *kw_native;
842
  IdentifierInfo *kw_package;
843
  IdentifierInfo *kw_synchronized;
844
  IdentifierInfo *kw_throws;
845
846
  // Pragma keywords.
847
  IdentifierInfo *kw_mark;
848
849
  // Proto keywords.
850
  IdentifierInfo *kw_extend;
851
  IdentifierInfo *kw_option;
852
  IdentifierInfo *kw_optional;
853
  IdentifierInfo *kw_repeated;
854
  IdentifierInfo *kw_required;
855
  IdentifierInfo *kw_returns;
856
857
  // QT keywords.
858
  IdentifierInfo *kw_signals;
859
  IdentifierInfo *kw_qsignals;
860
  IdentifierInfo *kw_slots;
861
  IdentifierInfo *kw_qslots;
862
863
  // C# keywords
864
  IdentifierInfo *kw_dollar;
865
  IdentifierInfo *kw_base;
866
  IdentifierInfo *kw_byte;
867
  IdentifierInfo *kw_checked;
868
  IdentifierInfo *kw_decimal;
869
  IdentifierInfo *kw_delegate;
870
  IdentifierInfo *kw_event;
871
  IdentifierInfo *kw_fixed;
872
  IdentifierInfo *kw_foreach;
873
  IdentifierInfo *kw_implicit;
874
  IdentifierInfo *kw_internal;
875
876
  IdentifierInfo *kw_lock;
877
  IdentifierInfo *kw_null;
878
  IdentifierInfo *kw_object;
879
  IdentifierInfo *kw_out;
880
881
  IdentifierInfo *kw_params;
882
883
  IdentifierInfo *kw_ref;
884
  IdentifierInfo *kw_string;
885
  IdentifierInfo *kw_stackalloc;
886
  IdentifierInfo *kw_sbyte;
887
  IdentifierInfo *kw_sealed;
888
  IdentifierInfo *kw_uint;
889
  IdentifierInfo *kw_ulong;
890
  IdentifierInfo *kw_unchecked;
891
  IdentifierInfo *kw_unsafe;
892
  IdentifierInfo *kw_ushort;
893
894
  /// Returns \c true if \p Tok is a true JavaScript identifier, returns
895
  /// \c false if it is a keyword or a pseudo keyword.
896
3.91k
  bool IsJavaScriptIdentifier(const FormatToken &Tok) const {
897
3.91k
    return Tok.is(tok::identifier) &&
898
3.91k
           JsExtraKeywords.find(Tok.Tok.getIdentifierInfo()) ==
899
3.91k
               JsExtraKeywords.end();
900
3.91k
  }
901
902
  /// Returns \c true if \p Tok is a C# keyword, returns
903
  /// \c false if it is a anything else.
904
16
  bool isCSharpKeyword(const FormatToken &Tok) const {
905
16
    switch (Tok.Tok.getKind()) {
906
2
    case tok::kw_bool:
907
2
    case tok::kw_break:
908
2
    case tok::kw_case:
909
2
    case tok::kw_catch:
910
2
    case tok::kw_char:
911
2
    case tok::kw_class:
912
2
    case tok::kw_const:
913
2
    case tok::kw_continue:
914
2
    case tok::kw_default:
915
2
    case tok::kw_do:
916
2
    case tok::kw_double:
917
2
    case tok::kw_else:
918
2
    case tok::kw_enum:
919
2
    case tok::kw_explicit:
920
2
    case tok::kw_extern:
921
2
    case tok::kw_false:
922
2
    case tok::kw_float:
923
2
    case tok::kw_for:
924
2
    case tok::kw_goto:
925
2
    case tok::kw_if:
926
2
    case tok::kw_int:
927
2
    case tok::kw_long:
928
2
    case tok::kw_namespace:
929
2
    case tok::kw_new:
930
2
    case tok::kw_operator:
931
2
    case tok::kw_private:
932
2
    case tok::kw_protected:
933
2
    case tok::kw_public:
934
2
    case tok::kw_return:
935
2
    case tok::kw_short:
936
2
    case tok::kw_sizeof:
937
2
    case tok::kw_static:
938
2
    case tok::kw_struct:
939
2
    case tok::kw_switch:
940
2
    case tok::kw_this:
941
2
    case tok::kw_throw:
942
2
    case tok::kw_true:
943
2
    case tok::kw_try:
944
2
    case tok::kw_typeof:
945
2
    case tok::kw_using:
946
2
    case tok::kw_virtual:
947
2
    case tok::kw_void:
948
2
    case tok::kw_volatile:
949
2
    case tok::kw_while:
950
2
      return true;
951
14
    default:
952
14
      return Tok.is(tok::identifier) &&
953
14
             CSharpExtraKeywords.find(Tok.Tok.getIdentifierInfo()) ==
954
2
                 CSharpExtraKeywords.end();
955
16
    }
956
16
  }
957
958
private:
959
  /// The JavaScript keywords beyond the C++ keyword set.
960
  std::unordered_set<IdentifierInfo *> JsExtraKeywords;
961
962
  /// The C# keywords beyond the C++ keyword set
963
  std::unordered_set<IdentifierInfo *> CSharpExtraKeywords;
964
};
965
966
} // namespace format
967
} // namespace clang
968
969
#endif