Coverage Report

Created: 2020-09-19 12:23

/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(AttributeMacro)                                                         \
33
0
  TYPE(AttributeParen)                                                         \
34
0
  TYPE(AttributeSquare)                                                        \
35
0
  TYPE(BinaryOperator)                                                         \
36
0
  TYPE(BitFieldColon)                                                          \
37
0
  TYPE(BlockComment)                                                           \
38
0
  TYPE(CastRParen)                                                             \
39
0
  TYPE(ConditionalExpr)                                                        \
40
0
  TYPE(ConflictAlternative)                                                    \
41
0
  TYPE(ConflictEnd)                                                            \
42
0
  TYPE(ConflictStart)                                                          \
43
0
  TYPE(CtorInitializerColon)                                                   \
44
0
  TYPE(CtorInitializerComma)                                                   \
45
0
  TYPE(DesignatedInitializerLSquare)                                           \
46
0
  TYPE(DesignatedInitializerPeriod)                                            \
47
0
  TYPE(DictLiteral)                                                            \
48
0
  TYPE(ForEachMacro)                                                           \
49
0
  TYPE(FunctionAnnotationRParen)                                               \
50
0
  TYPE(FunctionDeclarationName)                                                \
51
0
  TYPE(FunctionLBrace)                                                         \
52
0
  TYPE(FunctionTypeLParen)                                                     \
53
0
  TYPE(ImplicitStringLiteral)                                                  \
54
0
  TYPE(InheritanceColon)                                                       \
55
0
  TYPE(InheritanceComma)                                                       \
56
0
  TYPE(InlineASMBrace)                                                         \
57
0
  TYPE(InlineASMColon)                                                         \
58
0
  TYPE(InlineASMSymbolicNameLSquare)                                           \
59
0
  TYPE(JavaAnnotation)                                                         \
60
0
  TYPE(JsComputedPropertyName)                                                 \
61
0
  TYPE(JsExponentiation)                                                       \
62
0
  TYPE(JsExponentiationEqual)                                                  \
63
0
  TYPE(JsFatArrow)                                                             \
64
0
  TYPE(JsNonNullAssertion)                                                     \
65
0
  TYPE(JsNullishCoalescingOperator)                                            \
66
0
  TYPE(JsNullPropagatingOperator)                                              \
67
0
  TYPE(JsPrivateIdentifier)                                                    \
68
0
  TYPE(JsTypeColon)                                                            \
69
0
  TYPE(JsTypeOperator)                                                         \
70
0
  TYPE(JsTypeOptionalQuestion)                                                 \
71
0
  TYPE(LambdaArrow)                                                            \
72
0
  TYPE(LambdaLBrace)                                                           \
73
0
  TYPE(LambdaLSquare)                                                          \
74
0
  TYPE(LeadingJavaAnnotation)                                                  \
75
0
  TYPE(LineComment)                                                            \
76
0
  TYPE(MacroBlockBegin)                                                        \
77
0
  TYPE(MacroBlockEnd)                                                          \
78
0
  TYPE(NamespaceMacro)                                                         \
79
0
  TYPE(ObjCBlockLBrace)                                                        \
80
0
  TYPE(ObjCBlockLParen)                                                        \
81
0
  TYPE(ObjCDecl)                                                               \
82
0
  TYPE(ObjCForIn)                                                              \
83
0
  TYPE(ObjCMethodExpr)                                                         \
84
0
  TYPE(ObjCMethodSpecifier)                                                    \
85
0
  TYPE(ObjCProperty)                                                           \
86
0
  TYPE(ObjCStringLiteral)                                                      \
87
0
  TYPE(OverloadedOperator)                                                     \
88
0
  TYPE(OverloadedOperatorLParen)                                               \
89
0
  TYPE(PointerOrReference)                                                     \
90
0
  TYPE(PureVirtualSpecifier)                                                   \
91
0
  TYPE(RangeBasedForLoopColon)                                                 \
92
0
  TYPE(RegexLiteral)                                                           \
93
0
  TYPE(SelectorName)                                                           \
94
0
  TYPE(StartOfName)                                                            \
95
0
  TYPE(StatementMacro)                                                         \
96
0
  TYPE(StructuredBindingLSquare)                                               \
97
0
  TYPE(TemplateCloser)                                                         \
98
0
  TYPE(TemplateOpener)                                                         \
99
0
  TYPE(TemplateString)                                                         \
100
0
  TYPE(ProtoExtensionLSquare)                                                  \
101
0
  TYPE(TrailingAnnotation)                                                     \
102
0
  TYPE(TrailingReturnArrow)                                                    \
103
0
  TYPE(TrailingUnaryOperator)                                                  \
104
0
  TYPE(TypeDeclarationParen)                                                   \
105
0
  TYPE(TypenameMacro)                                                          \
106
0
  TYPE(UnaryOperator)                                                          \
107
0
  TYPE(UntouchableMacroFunc)                                                   \
108
0
  TYPE(CSharpStringLiteral)                                                    \
109
0
  TYPE(CSharpNamedArgumentColon)                                               \
110
0
  TYPE(CSharpNullable)                                                         \
111
0
  TYPE(CSharpNullCoalescing)                                                   \
112
0
  TYPE(CSharpNullConditional)                                                  \
113
0
  TYPE(CSharpNullConditionalLSquare)                                           \
114
0
  TYPE(CSharpGenericTypeConstraint)                                            \
115
0
  TYPE(CSharpGenericTypeConstraintColon)                                       \
116
0
  TYPE(CSharpGenericTypeConstraintComma)                                       \
117
0
  TYPE(Unknown)
118
119
/// Determines the semantic type of a syntactic token, e.g. whether "<" is a
120
/// template opener or binary operator.
121
enum TokenType {
122
#define TYPE(X) TT_##X,
123
  LIST_TOKEN_TYPES
124
#undef TYPE
125
      NUM_TOKEN_TYPES
126
};
127
128
/// Determines the name of a token type.
129
const char *getTokenTypeName(TokenType Type);
130
131
// Represents what type of block a set of braces open.
132
enum BraceBlockKind { BK_Unknown, BK_Block, BK_BracedInit };
133
134
// The packing kind of a function's parameters.
135
enum ParameterPackingKind { PPK_BinPacked, PPK_OnePerLine, PPK_Inconclusive };
136
137
enum FormatDecision { FD_Unformatted, FD_Continue, FD_Break };
138
139
class TokenRole;
140
class AnnotatedLine;
141
142
/// A wrapper around a \c Token storing information about the
143
/// whitespace characters preceding it.
144
struct FormatToken {
145
  FormatToken()
146
      : HasUnescapedNewline(false), IsMultiline(false), IsFirst(false),
147
        MustBreakBefore(false), MustBreakAlignBefore(false),
148
        IsUnterminatedLiteral(false), CanBreakBefore(false),
149
        ClosesTemplateDeclaration(false), StartsBinaryExpression(false),
150
        EndsBinaryExpression(false), PartOfMultiVariableDeclStmt(false),
151
        ContinuesLineCommentSection(false), Finalized(false),
152
        BlockKind(BK_Unknown), Type(TT_Unknown), Decision(FD_Unformatted),
153
623k
        PackingKind(PPK_Inconclusive) {}
154
155
  /// The \c Token.
156
  Token Tok;
157
158
  /// The raw text of the token.
159
  ///
160
  /// Contains the raw token text without leading whitespace and without leading
161
  /// escaped newlines.
162
  StringRef TokenText;
163
164
  /// A token can have a special role that can carry extra information
165
  /// about the token's formatting.
166
  std::unique_ptr<TokenRole> Role;
167
168
  /// The range of the whitespace immediately preceding the \c Token.
169
  SourceRange WhitespaceRange;
170
171
  /// Whether there is at least one unescaped newline before the \c
172
  /// Token.
173
  unsigned HasUnescapedNewline : 1;
174
175
  /// Whether the token text contains newlines (escaped or not).
176
  unsigned IsMultiline : 1;
177
178
  /// Indicates that this is the first token of the file.
179
  unsigned IsFirst : 1;
180
181
  /// Whether there must be a line break before this token.
182
  ///
183
  /// This happens for example when a preprocessor directive ended directly
184
  /// before the token.
185
  unsigned MustBreakBefore : 1;
186
187
  /// Whether to not align across this token
188
  ///
189
  /// This happens for example when a preprocessor directive ended directly
190
  /// before the token, but very rarely otherwise.
191
  unsigned MustBreakAlignBefore : 1;
192
193
  /// Set to \c true if this token is an unterminated literal.
194
  unsigned IsUnterminatedLiteral : 1;
195
196
  /// \c true if it is allowed to break before this token.
197
  unsigned CanBreakBefore : 1;
198
199
  /// \c true if this is the ">" of "template<..>".
200
  unsigned ClosesTemplateDeclaration : 1;
201
202
  /// \c true if this token starts a binary expression, i.e. has at least
203
  /// one fake l_paren with a precedence greater than prec::Unknown.
204
  unsigned StartsBinaryExpression : 1;
205
  /// \c true if this token ends a binary expression.
206
  unsigned EndsBinaryExpression : 1;
207
208
  /// Is this token part of a \c DeclStmt defining multiple variables?
209
  ///
210
  /// Only set if \c Type == \c TT_StartOfName.
211
  unsigned PartOfMultiVariableDeclStmt : 1;
212
213
  /// Does this line comment continue a line comment section?
214
  ///
215
  /// Only set to true if \c Type == \c TT_LineComment.
216
  unsigned ContinuesLineCommentSection : 1;
217
218
  /// If \c true, this token has been fully formatted (indented and
219
  /// potentially re-formatted inside), and we do not allow further formatting
220
  /// changes.
221
  unsigned Finalized : 1;
222
223
private:
224
  /// Contains the kind of block if this token is a brace.
225
  unsigned BlockKind : 2;
226
227
public:
228
922k
  BraceBlockKind getBlockKind() const {
229
922k
    return static_cast<BraceBlockKind>(BlockKind);
230
922k
  }
231
63.1k
  void setBlockKind(BraceBlockKind BBK) {
232
63.1k
    BlockKind = BBK;
233
63.1k
    assert(getBlockKind() == BBK && "BraceBlockKind overflow!");
234
63.1k
  }
235
236
private:
237
  unsigned Type : 8;
238
239
public:
240
  /// Returns the token's type, e.g. whether "<" is a template opener or
241
  /// binary operator.
242
145M
  TokenType getType() const { return static_cast<TokenType>(Type); }
243
771k
  void setType(TokenType T) {
244
771k
    Type = T;
245
771k
    assert(getType() == T && "TokenType overflow!");
246
771k
  }
247
248
private:
249
  /// Stores the formatting decision for the token once it was made.
250
  unsigned Decision : 2;
251
252
public:
253
736k
  FormatDecision getDecision() const {
254
736k
    return static_cast<FormatDecision>(Decision);
255
736k
  }
256
240k
  void setDecision(FormatDecision D) {
257
240k
    Decision = D;
258
240k
    assert(getDecision() == D && "FormatDecision overflow!");
259
240k
  }
260
261
private:
262
  /// If this is an opening parenthesis, how are the parameters packed?
263
  unsigned PackingKind : 2;
264
265
public:
266
383k
  ParameterPackingKind getPackingKind() const {
267
383k
    return static_cast<ParameterPackingKind>(PackingKind);
268
383k
  }
269
46.6k
  void setPackingKind(ParameterPackingKind K) {
270
46.6k
    PackingKind = K;
271
46.6k
    assert(getPackingKind() == K && "ParameterPackingKind overflow!");
272
46.6k
  }
273
274
  /// The number of newlines immediately before the \c Token.
275
  ///
276
  /// This can be used to determine what the user wrote in the original code
277
  /// and thereby e.g. leave an empty line between two function definitions.
278
  unsigned NewlinesBefore = 0;
279
280
  /// The offset just past the last '\n' in this token's leading
281
  /// whitespace (relative to \c WhiteSpaceStart). 0 if there is no '\n'.
282
  unsigned LastNewlineOffset = 0;
283
284
  /// The width of the non-whitespace parts of the token (or its first
285
  /// line for multi-line tokens) in columns.
286
  /// We need this to correctly measure number of columns a token spans.
287
  unsigned ColumnWidth = 0;
288
289
  /// Contains the width in columns of the last line of a multi-line
290
  /// token.
291
  unsigned LastLineColumnWidth = 0;
292
293
  /// The number of spaces that should be inserted before this token.
294
  unsigned SpacesRequiredBefore = 0;
295
296
  /// Number of parameters, if this is "(", "[" or "<".
297
  unsigned ParameterCount = 0;
298
299
  /// Number of parameters that are nested blocks,
300
  /// if this is "(", "[" or "<".
301
  unsigned BlockParameterCount = 0;
302
303
  /// If this is a bracket ("<", "(", "[" or "{"), contains the kind of
304
  /// the surrounding bracket.
305
  tok::TokenKind ParentBracket = tok::unknown;
306
307
  /// The total length of the unwrapped line up to and including this
308
  /// token.
309
  unsigned TotalLength = 0;
310
311
  /// The original 0-based column of this token, including expanded tabs.
312
  /// The configured TabWidth is used as tab width.
313
  unsigned OriginalColumn = 0;
314
315
  /// The length of following tokens until the next natural split point,
316
  /// or the next token that can be broken.
317
  unsigned UnbreakableTailLength = 0;
318
319
  // FIXME: Come up with a 'cleaner' concept.
320
  /// The binding strength of a token. This is a combined value of
321
  /// operator precedence, parenthesis nesting, etc.
322
  unsigned BindingStrength = 0;
323
324
  /// The nesting level of this token, i.e. the number of surrounding (),
325
  /// [], {} or <>.
326
  unsigned NestingLevel = 0;
327
328
  /// The indent level of this token. Copied from the surrounding line.
329
  unsigned IndentLevel = 0;
330
331
  /// Penalty for inserting a line break before this token.
332
  unsigned SplitPenalty = 0;
333
334
  /// If this is the first ObjC selector name in an ObjC method
335
  /// definition or call, this contains the length of the longest name.
336
  ///
337
  /// This being set to 0 means that the selectors should not be colon-aligned,
338
  /// e.g. because several of them are block-type.
339
  unsigned LongestObjCSelectorName = 0;
340
341
  /// If this is the first ObjC selector name in an ObjC method
342
  /// definition or call, this contains the number of parts that the whole
343
  /// selector consist of.
344
  unsigned ObjCSelectorNameParts = 0;
345
346
  /// The 0-based index of the parameter/argument. For ObjC it is set
347
  /// for the selector name token.
348
  /// For now calculated only for ObjC.
349
  unsigned ParameterIndex = 0;
350
351
  /// Stores the number of required fake parentheses and the
352
  /// corresponding operator precedence.
353
  ///
354
  /// If multiple fake parentheses start at a token, this vector stores them in
355
  /// reverse order, i.e. inner fake parenthesis first.
356
  SmallVector<prec::Level, 4> FakeLParens;
357
  /// Insert this many fake ) after this token for correct indentation.
358
  unsigned FakeRParens = 0;
359
360
  /// If this is an operator (or "."/"->") in a sequence of operators
361
  /// with the same precedence, contains the 0-based operator index.
362
  unsigned OperatorIndex = 0;
363
364
  /// If this is an operator (or "."/"->") in a sequence of operators
365
  /// with the same precedence, points to the next operator.
366
  FormatToken *NextOperator = nullptr;
367
368
  /// If this is a bracket, this points to the matching one.
369
  FormatToken *MatchingParen = nullptr;
370
371
  /// The previous token in the unwrapped line.
372
  FormatToken *Previous = nullptr;
373
374
  /// The next token in the unwrapped line.
375
  FormatToken *Next = nullptr;
376
377
  /// If this token starts a block, this contains all the unwrapped lines
378
  /// in it.
379
  SmallVector<AnnotatedLine *, 1> Children;
380
381
162M
  bool is(tok::TokenKind Kind) const { return Tok.is(Kind); }
382
141M
  bool is(TokenType TT) const { return getType() == TT; }
383
3.28M
  bool is(const IdentifierInfo *II) const {
384
3.28M
    return II && II == Tok.getIdentifierInfo();
385
3.28M
  }
386
18.3k
  bool is(tok::PPKeywordKind Kind) const {
387
18.3k
    return Tok.getIdentifierInfo() &&
388
17.0k
           Tok.getIdentifierInfo()->getPPKeywordID() == Kind;
389
18.3k
  }
390
762k
  bool is(BraceBlockKind BBK) const { return getBlockKind() == BBK; }
391
337k
  bool is(ParameterPackingKind PPK) const { return getPackingKind() == PPK; }
392
393
42.4M
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
394
42.4M
    return is(K1) || 
is(K2)41.2M
;
395
42.4M
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
393
17.0M
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
394
17.0M
    return is(K1) || 
is(K2)16.3M
;
395
17.0M
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::format::TokenType>(clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
393
12.0M
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
394
12.0M
    return is(K1) || 
is(K2)11.9M
;
395
12.0M
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::format::TokenType>(clang::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
393
11.7M
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
394
11.7M
    return is(K1) || 
is(K2)11.4M
;
395
11.7M
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::IdentifierInfo*>(clang::format::TokenType, clang::IdentifierInfo*) const
Line
Count
Source
393
24
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
394
24
    return is(K1) || is(K2);
395
24
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
393
628k
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
394
628k
    return is(K1) || 
is(K2)627k
;
395
628k
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind) const
Line
Count
Source
393
928k
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
394
928k
    return is(K1) || 
is(K2)909k
;
395
928k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
393
33.0k
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
394
33.0k
    return is(K1) || 
is(K2)32.3k
;
395
33.0k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
393
23.9k
  template <typename A, typename B> bool isOneOf(A K1, B K2) const {
394
23.9k
    return is(K1) || 
is(K2)23.7k
;
395
23.9k
  }
396
  template <typename A, typename B, typename... Ts>
397
47.0M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
47.0M
    return is(K1) || 
isOneOf(K2, Ks...)43.0M
;
399
47.0M
  }
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
397
27.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
27.0k
    return is(K1) || 
isOneOf(K2, Ks...)24.1k
;
399
27.0k
  }
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
397
9.88M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
9.88M
    return is(K1) || 
isOneOf(K2, Ks...)9.35M
;
399
9.88M
  }
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
397
1.00k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.00k
    return is(K1) || 
isOneOf(K2, Ks...)1.00k
;
399
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
397
1.00k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.00k
    return is(K1) || 
isOneOf(K2, Ks...)1.00k
;
399
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
397
1.00k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.00k
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
606k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
606k
    return is(K1) || 
isOneOf(K2, Ks...)606k
;
399
606k
  }
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
397
606k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
606k
    return is(K1) || 
isOneOf(K2, Ks...)605k
;
399
606k
  }
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
397
1.26M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.26M
    return is(K1) || 
isOneOf(K2, Ks...)1.26M
;
399
1.26M
  }
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
397
1.49M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.49M
    return is(K1) || 
isOneOf(K2, Ks...)1.48M
;
399
1.49M
  }
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
397
3.07M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.07M
    return is(K1) || 
isOneOf(K2, Ks...)3.05M
;
399
3.07M
  }
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::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::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
397
14.8k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
14.8k
    return is(K1) || 
isOneOf(K2, Ks...)14.5k
;
399
14.8k
  }
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::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) const
Line
Count
Source
397
14.5k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
14.5k
    return is(K1) || 
isOneOf(K2, Ks...)14.4k
;
399
14.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::format::TokenType>(clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
397
14.4k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
14.4k
    return is(K1) || 
isOneOf(K2, Ks...)14.3k
;
399
14.4k
  }
bool clang::format::FormatToken::isOneOf<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::format::TokenType) const
Line
Count
Source
397
15.3k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
15.3k
    return is(K1) || 
isOneOf(K2, Ks...)15.1k
;
399
15.3k
  }
bool clang::format::FormatToken::isOneOf<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::format::TokenType) const
Line
Count
Source
397
15.1k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
15.1k
    return is(K1) || 
isOneOf(K2, Ks...)15.0k
;
399
15.1k
  }
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
397
15.1k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
15.1k
    return is(K1) || 
isOneOf(K2, Ks...)15.0k
;
399
15.1k
  }
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
397
10.1M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
10.1M
    return is(K1) || 
isOneOf(K2, Ks...)7.99M
;
399
10.1M
  }
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
397
8.74M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
8.74M
    return is(K1) || 
isOneOf(K2, Ks...)8.33M
;
399
8.74M
  }
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
397
530k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
530k
    return is(K1) || 
isOneOf(K2, Ks...)514k
;
399
530k
  }
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
397
292
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
292
    return is(K1) || 
isOneOf(K2, Ks...)288
;
399
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
397
288
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
288
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
288
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
288
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
288
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
288
    return is(K1) || isOneOf(K2, Ks...);
399
288
  }
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, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
397
619k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
619k
    return is(K1) || 
isOneOf(K2, Ks...)617k
;
399
619k
  }
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, clang::format::TokenType, clang::format::TokenType) const
Line
Count
Source
397
617k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
617k
    return is(K1) || 
isOneOf(K2, Ks...)615k
;
399
617k
  }
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
397
615k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
615k
    return is(K1) || 
isOneOf(K2, Ks...)615k
;
399
615k
  }
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
397
615k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
615k
    return is(K1) || 
isOneOf(K2, Ks...)615k
;
399
615k
  }
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
397
615k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
615k
    return is(K1) || 
isOneOf(K2, Ks...)615k
;
399
615k
  }
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
397
615k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
615k
    return is(K1) || 
isOneOf(K2, Ks...)605k
;
399
615k
  }
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
397
605k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
605k
    return is(K1) || 
isOneOf(K2, Ks...)605k
;
399
605k
  }
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
397
605k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
605k
    return is(K1) || 
isOneOf(K2, Ks...)605k
;
399
605k
  }
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
397
605k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
605k
    return is(K1) || 
isOneOf(K2, Ks...)605k
;
399
605k
  }
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
397
136k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
136k
    return is(K1) || 
isOneOf(K2, Ks...)135k
;
399
136k
  }
bool clang::format::FormatToken::isOneOf<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*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
397
236
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
236
    return is(K1) || 
isOneOf(K2, Ks...)186
;
399
236
  }
bool clang::format::FormatToken::isOneOf<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::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
397
186
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
186
    return is(K1) || 
isOneOf(K2, Ks...)162
;
399
186
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
397
162
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
162
    return is(K1) || 
isOneOf(K2, Ks...)156
;
399
162
  }
bool clang::format::FormatToken::isOneOf<clang::format::TokenType, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::format::TokenType, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
397
135k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
135k
    return is(K1) || 
isOneOf(K2, Ks...)135k
;
399
135k
  }
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
397
13.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
13.0k
    return is(K1) || 
isOneOf(K2, Ks...)12.3k
;
399
13.0k
  }
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
397
12.3k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
12.3k
    return is(K1) || 
isOneOf(K2, Ks...)12.1k
;
399
12.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
397
12.1k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
12.1k
    return is(K1) || 
isOneOf(K2, Ks...)12.1k
;
399
12.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) const
Line
Count
Source
397
172k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
172k
    return is(K1) || 
isOneOf(K2, Ks...)159k
;
399
172k
  }
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
397
2.61k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
2.61k
    return is(K1) || 
isOneOf(K2, Ks...)2.51k
;
399
2.61k
  }
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
397
2.51k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
2.51k
    return is(K1) || 
isOneOf(K2, Ks...)2.34k
;
399
2.51k
  }
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
397
30.4k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
30.4k
    return is(K1) || 
isOneOf(K2, Ks...)30.4k
;
399
30.4k
  }
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
397
4.46k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
4.46k
    return is(K1) || 
isOneOf(K2, Ks...)4.44k
;
399
4.46k
  }
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
397
4.44k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
4.44k
    return is(K1) || 
isOneOf(K2, Ks...)4.10k
;
399
4.44k
  }
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
397
3.89k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.89k
    return is(K1) || 
isOneOf(K2, Ks...)3.83k
;
399
3.89k
  }
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
397
7.26k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
7.26k
    return is(K1) || 
isOneOf(K2, Ks...)7.20k
;
399
7.26k
  }
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
397
7.20k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
7.20k
    return is(K1) || 
isOneOf(K2, Ks...)7.16k
;
399
7.20k
  }
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
397
7.16k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
7.16k
    return is(K1) || 
isOneOf(K2, Ks...)7.15k
;
399
7.16k
  }
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
397
11.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
11.0k
    return is(K1) || 
isOneOf(K2, Ks...)10.9k
;
399
11.0k
  }
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
397
22.7k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
22.7k
    return is(K1) || 
isOneOf(K2, Ks...)22.1k
;
399
22.7k
  }
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
397
22.1k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
22.1k
    return is(K1) || 
isOneOf(K2, Ks...)22.0k
;
399
22.1k
  }
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
397
1.66k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.66k
    return is(K1) || 
isOneOf(K2, Ks...)1.59k
;
399
1.66k
  }
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
397
1.59k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.59k
    return is(K1) || 
isOneOf(K2, Ks...)1.58k
;
399
1.59k
  }
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
397
2.92k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
2.92k
    return is(K1) || 
isOneOf(K2, Ks...)2.43k
;
399
2.92k
  }
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
397
2.43k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
2.43k
    return is(K1) || 
isOneOf(K2, Ks...)2.34k
;
399
2.43k
  }
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
397
3.41M
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.41M
    return is(K1) || 
isOneOf(K2, Ks...)2.65M
;
399
3.41M
  }
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
397
161k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
161k
    return is(K1) || 
isOneOf(K2, Ks...)157k
;
399
161k
  }
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
397
180k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
180k
    return is(K1) || 
isOneOf(K2, Ks...)157k
;
399
180k
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
397
137k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
137k
    return is(K1) || 
isOneOf(K2, Ks...)136k
;
399
137k
  }
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
397
6.72k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
6.72k
    return is(K1) || 
isOneOf(K2, Ks...)6.35k
;
399
6.72k
  }
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
397
28.5k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
28.5k
    return is(K1) || 
isOneOf(K2, Ks...)20.5k
;
399
28.5k
  }
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
397
16.2k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
16.2k
    return is(K1) || 
isOneOf(K2, Ks...)16.2k
;
399
16.2k
  }
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
397
14.6k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
14.6k
    return is(K1) || 
isOneOf(K2, Ks...)14.6k
;
399
14.6k
  }
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
397
34.4k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
34.4k
    return is(K1) || 
isOneOf(K2, Ks...)34.3k
;
399
34.4k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
397
468
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
468
    return is(K1) || 
isOneOf(K2, Ks...)440
;
399
468
  }
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::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::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
397
2.16k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
2.16k
    return is(K1) || 
isOneOf(K2, Ks...)2.16k
;
399
2.16k
  }
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::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::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
397
2.16k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
2.16k
    return is(K1) || 
isOneOf(K2, Ks...)2.16k
;
399
2.16k
  }
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
397
14.3k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
14.3k
    return is(K1) || 
isOneOf(K2, Ks...)14.3k
;
399
14.3k
  }
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
397
14.3k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
14.3k
    return is(K1) || 
isOneOf(K2, Ks...)14.3k
;
399
14.3k
  }
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
397
14.3k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
14.3k
    return is(K1) || 
isOneOf(K2, Ks...)14.3k
;
399
14.3k
  }
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
397
14.3k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
14.3k
    return is(K1) || 
isOneOf(K2, Ks...)14.3k
;
399
14.3k
  }
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
397
16.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
16.0k
    return is(K1) || 
isOneOf(K2, Ks...)16.0k
;
399
16.0k
  }
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
397
16.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
16.0k
    return is(K1) || 
isOneOf(K2, Ks...)16.0k
;
399
16.0k
  }
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
397
761
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
761
    return is(K1) || 
isOneOf(K2, Ks...)759
;
399
761
  }
bool clang::format::FormatToken::isOneOf<clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
397
11.9k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
11.9k
    return is(K1) || 
isOneOf(K2, Ks...)11.9k
;
399
11.9k
  }
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
397
11.1k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
11.1k
    return is(K1) || 
isOneOf(K2, Ks...)11.1k
;
399
11.1k
  }
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
397
3.87k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.87k
    return is(K1) || 
isOneOf(K2, Ks...)3.85k
;
399
3.87k
  }
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
397
3.85k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.85k
    return is(K1) || 
isOneOf(K2, Ks...)3.84k
;
399
3.85k
  }
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
397
3.84k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.84k
    return is(K1) || 
isOneOf(K2, Ks...)3.82k
;
399
3.84k
  }
bool clang::format::FormatToken::isOneOf<clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
397
3.82k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.82k
    return is(K1) || 
isOneOf(K2, Ks...)3.75k
;
399
3.82k
  }
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
397
16.5k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
16.5k
    return is(K1) || 
isOneOf(K2, Ks...)16.2k
;
399
16.5k
  }
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
397
16.2k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
16.2k
    return is(K1) || 
isOneOf(K2, Ks...)16.0k
;
399
16.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::format::TokenType, clang::format::TokenType) const
Line
Count
Source
397
16.0k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
16.0k
    return is(K1) || 
isOneOf(K2, Ks...)15.8k
;
399
16.0k
  }
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
397
86
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
86
    return is(K1) || 
isOneOf(K2, Ks...)14
;
399
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
397
14
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
14
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
99
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
99
    return is(K1) || 
isOneOf(K2, Ks...)33
;
399
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
397
12.4k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
12.4k
    return is(K1) || 
isOneOf(K2, Ks...)12.3k
;
399
12.4k
  }
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
397
12.3k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
12.3k
    return is(K1) || 
isOneOf(K2, Ks...)12.3k
;
399
12.3k
  }
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
397
12.3k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
12.3k
    return is(K1) || 
isOneOf(K2, Ks...)12.3k
;
399
12.3k
  }
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
397
12.3k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
12.3k
    return is(K1) || 
isOneOf(K2, Ks...)12.2k
;
399
12.3k
  }
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
397
12.2k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
12.2k
    return is(K1) || 
isOneOf(K2, Ks...)12.2k
;
399
12.2k
  }
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
397
12.2k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
12.2k
    return is(K1) || 
isOneOf(K2, Ks...)12.2k
;
399
12.2k
  }
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
397
12.2k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
12.2k
    return is(K1) || 
isOneOf(K2, Ks...)12.2k
;
399
12.2k
  }
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
397
28
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
28
    return is(K1) || 
isOneOf(K2, Ks...)26
;
399
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
397
26
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
26
    return is(K1) || 
isOneOf(K2, Ks...)22
;
399
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
397
22
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
22
    return is(K1) || 
isOneOf(K2, Ks...)14
;
399
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
397
14
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
14
    return is(K1) || 
isOneOf(K2, Ks...)10
;
399
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
397
10
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
10
    return is(K1) || 
isOneOf(K2, Ks...)8
;
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || 
isOneOf(K2, Ks...)158
;
399
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
397
98.7k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
98.7k
    return is(K1) || 
isOneOf(K2, Ks...)98.6k
;
399
98.7k
  }
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
397
7.40k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
7.40k
    return is(K1) || 
isOneOf(K2, Ks...)7.27k
;
399
7.40k
  }
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
397
7.27k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
7.27k
    return is(K1) || 
isOneOf(K2, Ks...)7.23k
;
399
7.27k
  }
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
397
114
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
114
    return is(K1) || isOneOf(K2, Ks...);
399
114
  }
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
397
114
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
114
    return is(K1) || isOneOf(K2, Ks...);
399
114
  }
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
397
561
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
561
    return is(K1) || 
isOneOf(K2, Ks...)379
;
399
561
  }
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
397
3.16k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.16k
    return is(K1) || 
isOneOf(K2, Ks...)3.16k
;
399
3.16k
  }
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
397
3.16k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.16k
    return is(K1) || 
isOneOf(K2, Ks...)3.14k
;
399
3.16k
  }
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
397
3.14k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.14k
    return is(K1) || isOneOf(K2, Ks...);
399
3.14k
  }
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
397
3.14k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
3.14k
    return is(K1) || 
isOneOf(K2, Ks...)3.14k
;
399
3.14k
  }
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
397
176
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
176
    return is(K1) || 
isOneOf(K2, Ks...)164
;
399
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
397
164
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
164
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
164
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
164
    return is(K1) || 
isOneOf(K2, Ks...)160
;
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
160
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
160
    return is(K1) || 
isOneOf(K2, Ks...)156
;
399
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
397
156
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
156
    return is(K1) || 
isOneOf(K2, Ks...)152
;
399
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
397
152
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
152
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
1.18k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.18k
    return is(K1) || 
isOneOf(K2, Ks...)1.17k
;
399
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
397
1.17k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.17k
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
1.17k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.17k
    return is(K1) || 
isOneOf(K2, Ks...)1.17k
;
399
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
397
1.17k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.17k
    return is(K1) || 
isOneOf(K2, Ks...)1.16k
;
399
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
397
1.16k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.16k
    return is(K1) || 
isOneOf(K2, Ks...)1.16k
;
399
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
397
1.16k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.16k
    return is(K1) || 
isOneOf(K2, Ks...)1.14k
;
399
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
397
1.14k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.14k
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
1.14k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.14k
    return is(K1) || 
isOneOf(K2, Ks...)1.10k
;
399
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
397
1.10k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.10k
    return is(K1) || 
isOneOf(K2, Ks...)1.00k
;
399
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
397
1.00k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.00k
    return is(K1) || 
isOneOf(K2, Ks...)1.00k
;
399
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
397
1.00k
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
1.00k
    return is(K1) || 
isOneOf(K2, Ks...)947
;
399
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
397
947
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
947
    return is(K1) || 
isOneOf(K2, Ks...)875
;
399
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
397
875
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
875
    return is(K1) || isOneOf(K2, Ks...);
399
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
397
875
  bool isOneOf(A K1, B K2, Ts... Ks) const {
398
875
    return is(K1) || isOneOf(K2, Ks...);
399
875
  }
400
6.67M
  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
400
5.82M
  template <typename T> bool isNot(T Kind) const { return !is(Kind); }
bool clang::format::FormatToken::isNot<clang::IdentifierInfo*>(clang::IdentifierInfo*) const
Line
Count
Source
400
162
  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
400
799k
  template <typename T> bool isNot(T Kind) const { return !is(Kind); }
bool clang::format::FormatToken::isNot<clang::format::BraceBlockKind>(clang::format::BraceBlockKind) const
Line
Count
Source
400
48.5k
  template <typename T> bool isNot(T Kind) const { return !is(Kind); }
401
402
209k
  bool isIf(bool AllowConstexprMacro = true) const {
403
209k
    return is(tok::kw_if) || 
endsSequence(tok::kw_constexpr, tok::kw_if)205k
||
404
204k
           (endsSequence(tok::identifier, tok::kw_if) && 
AllowConstexprMacro519
);
405
209k
  }
406
407
1.26k
  bool closesScopeAfterBlock() const {
408
1.26k
    if (getBlockKind() == BK_Block)
409
59
      return true;
410
1.20k
    if (closesScope())
411
710
      return Previous->closesScopeAfterBlock();
412
495
    return false;
413
495
  }
414
415
  /// \c true if this token starts a sequence with the given tokens in order,
416
  /// following the ``Next`` pointers, ignoring comments.
417
  template <typename A, typename... Ts>
418
1.03M
  bool startsSequence(A K1, Ts... Tokens) const {
419
1.03M
    return startsSequenceInternal(K1, Tokens...);
420
1.03M
  }
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
418
144
  bool startsSequence(A K1, Ts... Tokens) const {
419
144
    return startsSequenceInternal(K1, Tokens...);
420
144
  }
bool clang::format::FormatToken::startsSequence<clang::tok::TokenKind>(clang::tok::TokenKind) const
Line
Count
Source
418
364k
  bool startsSequence(A K1, Ts... Tokens) const {
419
364k
    return startsSequenceInternal(K1, Tokens...);
420
364k
  }
bool clang::format::FormatToken::startsSequence<clang::format::TokenType>(clang::format::TokenType) const
Line
Count
Source
418
614k
  bool startsSequence(A K1, Ts... Tokens) const {
419
614k
    return startsSequenceInternal(K1, Tokens...);
420
614k
  }
bool clang::format::FormatToken::startsSequence<clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
418
31.5k
  bool startsSequence(A K1, Ts... Tokens) const {
419
31.5k
    return startsSequenceInternal(K1, Tokens...);
420
31.5k
  }
bool clang::format::FormatToken::startsSequence<clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
418
3.63k
  bool startsSequence(A K1, Ts... Tokens) const {
419
3.63k
    return startsSequenceInternal(K1, Tokens...);
420
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
418
3.57k
  bool startsSequence(A K1, Ts... Tokens) const {
419
3.57k
    return startsSequenceInternal(K1, Tokens...);
420
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
418
15.9k
  bool startsSequence(A K1, Ts... Tokens) const {
419
15.9k
    return startsSequenceInternal(K1, Tokens...);
420
15.9k
  }
bool clang::format::FormatToken::startsSequence<clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
418
5.14k
  bool startsSequence(A K1, Ts... Tokens) const {
419
5.14k
    return startsSequenceInternal(K1, Tokens...);
420
5.14k
  }
421
422
  /// \c true if this token ends a sequence with the given tokens in order,
423
  /// following the ``Previous`` pointers, ignoring comments.
424
  /// For example, given tokens [T1, T2, T3], the function returns true if
425
  /// 3 tokens ending at this (ignoring comments) are [T3, T2, T1]. In other
426
  /// words, the tokens passed to this function need to the reverse of the
427
  /// order the tokens appear in code.
428
  template <typename A, typename... Ts>
429
425k
  bool endsSequence(A K1, Ts... Tokens) const {
430
425k
    return endsSequenceInternal(K1, Tokens...);
431
425k
  }
bool clang::format::FormatToken::endsSequence<clang::tok::TokenKind>(clang::tok::TokenKind) const
Line
Count
Source
429
498
  bool endsSequence(A K1, Ts... Tokens) const {
430
498
    return endsSequenceInternal(K1, Tokens...);
431
498
  }
bool clang::format::FormatToken::endsSequence<clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
429
410k
  bool endsSequence(A K1, Ts... Tokens) const {
430
410k
    return endsSequenceInternal(K1, Tokens...);
431
410k
  }
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
429
317
  bool endsSequence(A K1, Ts... Tokens) const {
430
317
    return endsSequenceInternal(K1, Tokens...);
431
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
429
292
  bool endsSequence(A K1, Ts... Tokens) const {
430
292
    return endsSequenceInternal(K1, Tokens...);
431
292
  }
bool clang::format::FormatToken::endsSequence<clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
429
12.5k
  bool endsSequence(A K1, Ts... Tokens) const {
430
12.5k
    return endsSequenceInternal(K1, Tokens...);
431
12.5k
  }
bool clang::format::FormatToken::endsSequence<clang::format::TokenType, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind) const
Line
Count
Source
429
1.15k
  bool endsSequence(A K1, Ts... Tokens) const {
430
1.15k
    return endsSequenceInternal(K1, Tokens...);
431
1.15k
  }
432
433
4.48M
  bool isStringLiteral() const { return tok::isStringLiteral(Tok.getKind()); }
434
435
48.3k
  bool isObjCAtKeyword(tok::ObjCKeywordKind Kind) const {
436
48.3k
    return Tok.isObjCAtKeyword(Kind);
437
48.3k
  }
438
439
74.5k
  bool isAccessSpecifier(bool ColonRequired = true) const {
440
74.5k
    return isOneOf(tok::kw_public, tok::kw_protected, tok::kw_private) &&
441
714
           (!ColonRequired || 
(392
Next392
&&
Next->is(tok::colon)377
));
442
74.5k
  }
443
444
14.8k
  bool canBePointerOrReferenceQualifier() const {
445
14.8k
    return isOneOf(tok::kw_const, tok::kw_restrict, tok::kw_volatile,
446
14.8k
                   tok::kw___attribute, tok::kw__Nonnull, tok::kw__Nullable,
447
14.8k
                   tok::kw__Null_unspecified, tok::kw___ptr32, tok::kw___ptr64,
448
14.8k
                   TT_AttributeMacro);
449
14.8k
  }
450
451
  /// Determine whether the token is a simple-type-specifier.
452
  bool isSimpleTypeSpecifier() const;
453
454
49.5k
  bool isObjCAccessSpecifier() const {
455
49.5k
    return is(tok::at) && 
Next539
&&
456
539
           (Next->isObjCAtKeyword(tok::objc_public) ||
457
529
            Next->isObjCAtKeyword(tok::objc_protected) ||
458
519
            Next->isObjCAtKeyword(tok::objc_package) ||
459
509
            Next->isObjCAtKeyword(tok::objc_private));
460
49.5k
  }
461
462
  /// Returns whether \p Tok is ([{ or an opening < of a template or in
463
  /// protos.
464
5.36M
  bool opensScope() const {
465
5.36M
    if (is(TT_TemplateString) && 
TokenText.endswith("${")2.90k
)
466
1.66k
      return true;
467
5.36M
    if (is(TT_DictLiteral) && 
is(tok::less)56.1k
)
468
4.71k
      return true;
469
5.35M
    return isOneOf(tok::l_paren, tok::l_brace, tok::l_square,
470
5.35M
                   TT_TemplateOpener);
471
5.35M
  }
472
  /// Returns whether \p Tok is )]} or a closing > of a template or in
473
  /// protos.
474
4.79M
  bool closesScope() const {
475
4.79M
    if (is(TT_TemplateString) && 
TokenText.startswith("}")2.77k
)
476
2.07k
      return true;
477
4.78M
    if (is(TT_DictLiteral) && 
is(tok::greater)22.3k
)
478
6.31k
      return true;
479
4.78M
    return isOneOf(tok::r_paren, tok::r_brace, tok::r_square,
480
4.78M
                   TT_TemplateCloser);
481
4.78M
  }
482
483
  /// Returns \c true if this is a "." or "->" accessing a member.
484
4.80M
  bool isMemberAccess() const {
485
4.80M
    return isOneOf(tok::arrow, tok::period, tok::arrowstar) &&
486
55.1k
           !isOneOf(TT_DesignatedInitializerPeriod, TT_TrailingReturnArrow,
487
55.1k
                    TT_LambdaArrow, TT_LeadingJavaAnnotation);
488
4.80M
  }
489
490
9.36k
  bool isUnaryOperator() const {
491
9.36k
    switch (Tok.getKind()) {
492
228
    case tok::plus:
493
228
    case tok::plusplus:
494
228
    case tok::minus:
495
228
    case tok::minusminus:
496
228
    case tok::exclaim:
497
228
    case tok::tilde:
498
228
    case tok::kw_sizeof:
499
228
    case tok::kw_alignof:
500
228
      return true;
501
9.13k
    default:
502
9.13k
      return false;
503
9.36k
    }
504
9.36k
  }
505
506
1.28M
  bool isBinaryOperator() const {
507
    // Comma is a binary operator, but does not behave as such wrt. formatting.
508
1.28M
    return getPrecedence() > prec::Comma;
509
1.28M
  }
510
511
1.67M
  bool isTrailingComment() const {
512
1.67M
    return is(tok::comment) &&
513
17.6k
           (is(TT_LineComment) || 
!Next3.00k
||
Next->NewlinesBefore > 01.87k
);
514
1.67M
  }
515
516
  /// Returns \c true if this is a keyword that can be used
517
  /// like a function call (e.g. sizeof, typeid, ...).
518
93
  bool isFunctionLikeKeyword() const {
519
93
    switch (Tok.getKind()) {
520
66
    case tok::kw_throw:
521
66
    case tok::kw_typeid:
522
66
    case tok::kw_return:
523
66
    case tok::kw_sizeof:
524
66
    case tok::kw_alignof:
525
66
    case tok::kw_alignas:
526
66
    case tok::kw_decltype:
527
66
    case tok::kw_noexcept:
528
66
    case tok::kw_static_assert:
529
66
    case tok::kw__Atomic:
530
66
    case tok::kw___attribute:
531
66
    case tok::kw___underlying_type:
532
66
      return true;
533
27
    default:
534
27
      return false;
535
93
    }
536
93
  }
537
538
  /// Returns \c true if this is a string literal that's like a label,
539
  /// e.g. ends with "=" or ":".
540
9.38k
  bool isLabelString() const {
541
9.38k
    if (!is(tok::string_literal))
542
8.92k
      return false;
543
458
    StringRef Content = TokenText;
544
458
    if (Content.startswith("\"") || 
Content.startswith("'")197
)
545
353
      Content = Content.drop_front(1);
546
458
    if (Content.endswith("\"") || 
Content.endswith("'")102
)
547
448
      Content = Content.drop_back(1);
548
458
    Content = Content.trim();
549
458
    return Content.size() > 1 &&
550
428
           (Content.back() == ':' || 
Content.back() == '='344
);
551
458
  }
552
553
  /// Returns actual token start location without leading escaped
554
  /// newlines and whitespace.
555
  ///
556
  /// This can be different to Tok.getLocation(), which includes leading escaped
557
  /// newlines.
558
678k
  SourceLocation getStartOfNonWhitespace() const {
559
678k
    return WhitespaceRange.getEnd();
560
678k
  }
561
562
3.64M
  prec::Level getPrecedence() const {
563
3.64M
    return getBinOpPrecedence(Tok.getKind(), /*GreaterThanIsOperator=*/true,
564
3.64M
                              /*CPlusPlus11=*/true);
565
3.64M
  }
566
567
  /// Returns the previous token ignoring comments.
568
5.15M
  FormatToken *getPreviousNonComment() const {
569
5.15M
    FormatToken *Tok = Previous;
570
5.17M
    while (Tok && 
Tok->is(tok::comment)5.06M
)
571
24.3k
      Tok = Tok->Previous;
572
5.15M
    return Tok;
573
5.15M
  }
574
575
  /// Returns the next token ignoring comments.
576
4.06M
  const FormatToken *getNextNonComment() const {
577
4.06M
    const FormatToken *Tok = Next;
578
4.11M
    while (Tok && 
Tok->is(tok::comment)3.15M
)
579
44.0k
      Tok = Tok->Next;
580
4.06M
    return Tok;
581
4.06M
  }
582
583
  /// Returns \c true if this tokens starts a block-type list, i.e. a
584
  /// list that should be indented with a block indent.
585
370k
  bool opensBlockOrBlockTypeList(const FormatStyle &Style) const {
586
    // C# Does not indent object initialisers as continuations.
587
370k
    if (is(tok::l_brace) && 
getBlockKind() == BK_BracedInit48.1k
&&
Style.isCSharp()19.4k
)
588
1.22k
      return true;
589
368k
    if (is(TT_TemplateString) && 
opensScope()124
)
590
50
      return true;
591
368k
    return is(TT_ArrayInitializerLSquare) || 
is(TT_ProtoExtensionLSquare)366k
||
592
366k
           (is(tok::l_brace) &&
593
46.9k
            (getBlockKind() == BK_Block || 
is(TT_DictLiteral)22.1k
||
594
15.9k
             (!Style.Cpp11BracedListStyle && 
NestingLevel == 01.52k
))) ||
595
334k
           (is(tok::less) && 
(9.49k
Style.Language == FormatStyle::LK_Proto9.49k
||
596
8.25k
                              Style.Language == FormatStyle::LK_TextProto));
597
368k
  }
598
599
  /// Returns whether the token is the left square bracket of a C++
600
  /// structured binding declaration.
601
8.10k
  bool isCppStructuredBinding(const FormatStyle &Style) const {
602
8.10k
    if (!Style.isCpp() || 
isNot(tok::l_square)7.44k
)
603
658
      return false;
604
7.44k
    const FormatToken *T = this;
605
7.97k
    do {
606
7.97k
      T = T->getPreviousNonComment();
607
7.97k
    } while (T && T->isOneOf(tok::kw_const, tok::kw_volatile, tok::amp,
608
7.13k
                             tok::ampamp));
609
7.44k
    return T && 
T->is(tok::kw_auto)6.61k
;
610
7.44k
  }
611
612
  /// Same as opensBlockOrBlockTypeList, but for the closing token.
613
49.8k
  bool closesBlockOrBlockTypeList(const FormatStyle &Style) const {
614
49.8k
    if (is(TT_TemplateString) && 
closesScope()12
)
615
0
      return true;
616
49.8k
    return MatchingParen && 
MatchingParen->opensBlockOrBlockTypeList(Style)21.0k
;
617
49.8k
  }
618
619
  /// Return the actual namespace token, if this token starts a namespace
620
  /// block.
621
9.02k
  const FormatToken *getNamespaceToken() const {
622
9.02k
    const FormatToken *NamespaceTok = this;
623
9.02k
    if (is(tok::comment))
624
28
      NamespaceTok = NamespaceTok->getNextNonComment();
625
    // Detect "(inline|export)? namespace" in the beginning of a line.
626
9.02k
    if (NamespaceTok && 
NamespaceTok->isOneOf(tok::kw_inline, tok::kw_export)9.01k
)
627
65
      NamespaceTok = NamespaceTok->getNextNonComment();
628
9.02k
    return NamespaceTok &&
629
9.01k
                   NamespaceTok->isOneOf(tok::kw_namespace, TT_NamespaceMacro)
630
877
               ? NamespaceTok
631
8.14k
               : nullptr;
632
9.02k
  }
633
634
private:
635
  // Disallow copying.
636
  FormatToken(const FormatToken &) = delete;
637
  void operator=(const FormatToken &) = delete;
638
639
  template <typename A, typename... Ts>
640
60.8k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
641
60.8k
    if (is(tok::comment) && 
Next335
)
642
248
      return Next->startsSequenceInternal(K1, Tokens...);
643
60.6k
    return is(K1) && 
Next7.50k
&&
Next->startsSequenceInternal(Tokens...)7.50k
;
644
60.6k
  }
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
640
144
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
641
144
    if (is(tok::comment) && 
Next0
)
642
0
      return Next->startsSequenceInternal(K1, Tokens...);
643
144
    return is(K1) && Next && Next->startsSequenceInternal(Tokens...);
644
144
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
640
32.1k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
641
32.1k
    if (is(tok::comment) && 
Next34
)
642
30
      return Next->startsSequenceInternal(K1, Tokens...);
643
32.1k
    return is(K1) && 
Next6.79k
&&
Next->startsSequenceInternal(Tokens...)6.79k
;
644
32.1k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::IdentifierInfo*, clang::tok::TokenKind>(clang::IdentifierInfo*, clang::tok::TokenKind) const
Line
Count
Source
640
3.75k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
641
3.75k
    if (is(tok::comment) && 
Next12
)
642
12
      return Next->startsSequenceInternal(K1, Tokens...);
643
3.74k
    return is(K1) && 
Next72
&&
Next->startsSequenceInternal(Tokens...)72
;
644
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
640
3.57k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
641
3.57k
    if (is(tok::comment) && 
Next8
)
642
8
      return Next->startsSequenceInternal(K1, Tokens...);
643
3.57k
    return is(K1) && 
Next107
&&
Next->startsSequenceInternal(Tokens...)107
;
644
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
640
16.1k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
641
16.1k
    if (is(tok::comment) && 
Next281
)
642
198
      return Next->startsSequenceInternal(K1, Tokens...);
643
15.9k
    return is(K1) && 
Next389
&&
Next->startsSequenceInternal(Tokens...)389
;
644
15.9k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::IdentifierInfo*, clang::IdentifierInfo*>(clang::IdentifierInfo*, clang::IdentifierInfo*) const
Line
Count
Source
640
5.14k
  bool startsSequenceInternal(A K1, Ts... Tokens) const {
641
5.14k
    if (is(tok::comment) && 
Next0
)
642
0
      return Next->startsSequenceInternal(K1, Tokens...);
643
5.14k
    return is(K1) && 
Next0
&&
Next->startsSequenceInternal(Tokens...)0
;
644
5.14k
  }
645
646
993k
  template <typename A> bool startsSequenceInternal(A K1) const {
647
993k
    if (is(tok::comment) && 
Next19.6k
)
648
7.69k
      return Next->startsSequenceInternal(K1);
649
985k
    return is(K1);
650
985k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::tok::TokenKind>(clang::tok::TokenKind) const
Line
Count
Source
646
373k
  template <typename A> bool startsSequenceInternal(A K1) const {
647
373k
    if (is(tok::comment) && 
Next4.05k
)
648
1.70k
      return Next->startsSequenceInternal(K1);
649
371k
    return is(K1);
650
371k
  }
bool clang::format::FormatToken::startsSequenceInternal<clang::format::TokenType>(clang::format::TokenType) const
Line
Count
Source
646
620k
  template <typename A> bool startsSequenceInternal(A K1) const {
647
620k
    if (is(tok::comment) && 
Next15.5k
)
648
5.99k
      return Next->startsSequenceInternal(K1);
649
614k
    return is(K1);
650
614k
  }
Unexecuted instantiation: bool clang::format::FormatToken::startsSequenceInternal<clang::IdentifierInfo*>(clang::IdentifierInfo*) const
651
652
168k
  template <typename A, typename... Ts> bool endsSequenceInternal(A K1) const {
653
168k
    if (is(tok::comment) && 
Previous207
)
654
183
      return Previous->endsSequenceInternal(K1);
655
168k
    return is(K1);
656
168k
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::tok::TokenKind>(clang::tok::TokenKind) const
Line
Count
Source
652
167k
  template <typename A, typename... Ts> bool endsSequenceInternal(A K1) const {
653
167k
    if (is(tok::comment) && 
Previous203
)
654
183
      return Previous->endsSequenceInternal(K1);
655
167k
    return is(K1);
656
167k
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::format::TokenType>(clang::format::TokenType) const
Line
Count
Source
652
138
  template <typename A, typename... Ts> bool endsSequenceInternal(A K1) const {
653
138
    if (is(tok::comment) && 
Previous0
)
654
0
      return Previous->endsSequenceInternal(K1);
655
138
    return is(K1);
656
138
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::IdentifierInfo*>(clang::IdentifierInfo*) const
Line
Count
Source
652
878
  template <typename A, typename... Ts> bool endsSequenceInternal(A K1) const {
653
878
    if (is(tok::comment) && 
Previous4
)
654
0
      return Previous->endsSequenceInternal(K1);
655
878
    return is(K1);
656
878
  }
657
658
  template <typename A, typename... Ts>
659
425k
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
660
425k
    if (is(tok::comment) && 
Previous383
)
661
379
      return Previous->endsSequenceInternal(K1, Tokens...);
662
425k
    return is(K1) && 
Previous186k
&&
Previous->endsSequenceInternal(Tokens...)168k
;
663
425k
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::tok::TokenKind, clang::tok::TokenKind>(clang::tok::TokenKind, clang::tok::TokenKind) const
Line
Count
Source
659
410k
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
660
410k
    if (is(tok::comment) && 
Previous298
)
661
298
      return Previous->endsSequenceInternal(K1, Tokens...);
662
410k
    return is(K1) && 
Previous184k
&&
Previous->endsSequenceInternal(Tokens...)167k
;
663
410k
  }
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
659
317
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
660
317
    if (is(tok::comment) && 
Previous0
)
661
0
      return Previous->endsSequenceInternal(K1, Tokens...);
662
317
    return is(K1) && Previous && 
Previous->endsSequenceInternal(Tokens...)269
;
663
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
659
292
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
660
292
    if (is(tok::comment) && 
Previous0
)
661
0
      return Previous->endsSequenceInternal(K1, Tokens...);
662
292
    return is(K1) && Previous && 
Previous->endsSequenceInternal(Tokens...)268
;
663
292
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::tok::TokenKind, clang::format::TokenType>(clang::tok::TokenKind, clang::format::TokenType) const
Line
Count
Source
659
268
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
660
268
    if (is(tok::comment) && 
Previous0
)
661
0
      return Previous->endsSequenceInternal(K1, Tokens...);
662
268
    return is(K1) && 
Previous138
&&
Previous->endsSequenceInternal(Tokens...)138
;
663
268
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::tok::TokenKind, clang::IdentifierInfo*>(clang::tok::TokenKind, clang::IdentifierInfo*) const
Line
Count
Source
659
12.6k
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
660
12.6k
    if (is(tok::comment) && 
Previous85
)
661
81
      return Previous->endsSequenceInternal(K1, Tokens...);
662
12.5k
    return is(K1) && 
Previous1.34k
&&
Previous->endsSequenceInternal(Tokens...)878
;
663
12.5k
  }
bool clang::format::FormatToken::endsSequenceInternal<clang::format::TokenType, clang::tok::TokenKind>(clang::format::TokenType, clang::tok::TokenKind) const
Line
Count
Source
659
1.15k
  bool endsSequenceInternal(A K1, Ts... Tokens) const {
660
1.15k
    if (is(tok::comment) && 
Previous0
)
661
0
      return Previous->endsSequenceInternal(K1, Tokens...);
662
1.15k
    return is(K1) && 
Previous28
&&
Previous->endsSequenceInternal(Tokens...)28
;
663
1.15k
  }
664
};
665
666
class ContinuationIndenter;
667
struct LineState;
668
669
class TokenRole {
670
public:
671
8.84k
  TokenRole(const FormatStyle &Style) : Style(Style) {}
672
  virtual ~TokenRole();
673
674
  /// After the \c TokenAnnotator has finished annotating all the tokens,
675
  /// this function precomputes required information for formatting.
676
  virtual void precomputeFormattingInfos(const FormatToken *Token);
677
678
  /// Apply the special formatting that the given role demands.
679
  ///
680
  /// Assumes that the token having this role is already formatted.
681
  ///
682
  /// Continues formatting from \p State leaving indentation to \p Indenter and
683
  /// returns the total penalty that this formatting incurs.
684
  virtual unsigned formatFromToken(LineState &State,
685
                                   ContinuationIndenter *Indenter,
686
0
                                   bool DryRun) {
687
0
    return 0;
688
0
  }
689
690
  /// Same as \c formatFromToken, but assumes that the first token has
691
  /// already been set thereby deciding on the first line break.
692
  virtual unsigned formatAfterToken(LineState &State,
693
                                    ContinuationIndenter *Indenter,
694
0
                                    bool DryRun) {
695
0
    return 0;
696
0
  }
697
698
  /// Notifies the \c Role that a comma was found.
699
0
  virtual void CommaFound(const FormatToken *Token) {}
700
701
0
  virtual const FormatToken *lastComma() { return nullptr; }
702
703
protected:
704
  const FormatStyle &Style;
705
};
706
707
class CommaSeparatedList : public TokenRole {
708
public:
709
  CommaSeparatedList(const FormatStyle &Style)
710
8.84k
      : TokenRole(Style), HasNestedBracedList(false) {}
711
712
  void precomputeFormattingInfos(const FormatToken *Token) override;
713
714
  unsigned formatAfterToken(LineState &State, ContinuationIndenter *Indenter,
715
                            bool DryRun) override;
716
717
  unsigned formatFromToken(LineState &State, ContinuationIndenter *Indenter,
718
                           bool DryRun) override;
719
720
  /// Adds \p Token as the next comma to the \c CommaSeparated list.
721
16.3k
  void CommaFound(const FormatToken *Token) override {
722
16.3k
    Commas.push_back(Token);
723
16.3k
  }
724
725
99
  const FormatToken *lastComma() override {
726
99
    if (Commas.empty())
727
0
      return nullptr;
728
99
    return Commas.back();
729
99
  }
730
731
private:
732
  /// A struct that holds information on how to format a given list with
733
  /// a specific number of columns.
734
  struct ColumnFormat {
735
    /// The number of columns to use.
736
    unsigned Columns;
737
738
    /// The total width in characters.
739
    unsigned TotalWidth;
740
741
    /// The number of lines required for this format.
742
    unsigned LineCount;
743
744
    /// The size of each column in characters.
745
    SmallVector<unsigned, 8> ColumnSizes;
746
  };
747
748
  /// Calculate which \c ColumnFormat fits best into
749
  /// \p RemainingCharacters.
750
  const ColumnFormat *getColumnFormat(unsigned RemainingCharacters) const;
751
752
  /// The ordered \c FormatTokens making up the commas of this list.
753
  SmallVector<const FormatToken *, 8> Commas;
754
755
  /// The length of each of the list's items in characters including the
756
  /// trailing comma.
757
  SmallVector<unsigned, 8> ItemLengths;
758
759
  /// Precomputed formats that can be used for this list.
760
  SmallVector<ColumnFormat, 4> Formats;
761
762
  bool HasNestedBracedList;
763
};
764
765
/// Encapsulates keywords that are context sensitive or for languages not
766
/// properly supported by Clang's lexer.
767
struct AdditionalKeywords {
768
36.3k
  AdditionalKeywords(IdentifierTable &IdentTable) {
769
36.3k
    kw_final = &IdentTable.get("final");
770
36.3k
    kw_override = &IdentTable.get("override");
771
36.3k
    kw_in = &IdentTable.get("in");
772
36.3k
    kw_of = &IdentTable.get("of");
773
36.3k
    kw_CF_CLOSED_ENUM = &IdentTable.get("CF_CLOSED_ENUM");
774
36.3k
    kw_CF_ENUM = &IdentTable.get("CF_ENUM");
775
36.3k
    kw_CF_OPTIONS = &IdentTable.get("CF_OPTIONS");
776
36.3k
    kw_NS_CLOSED_ENUM = &IdentTable.get("NS_CLOSED_ENUM");
777
36.3k
    kw_NS_ENUM = &IdentTable.get("NS_ENUM");
778
36.3k
    kw_NS_OPTIONS = &IdentTable.get("NS_OPTIONS");
779
36.3k
780
36.3k
    kw_as = &IdentTable.get("as");
781
36.3k
    kw_async = &IdentTable.get("async");
782
36.3k
    kw_await = &IdentTable.get("await");
783
36.3k
    kw_declare = &IdentTable.get("declare");
784
36.3k
    kw_finally = &IdentTable.get("finally");
785
36.3k
    kw_from = &IdentTable.get("from");
786
36.3k
    kw_function = &IdentTable.get("function");
787
36.3k
    kw_get = &IdentTable.get("get");
788
36.3k
    kw_import = &IdentTable.get("import");
789
36.3k
    kw_infer = &IdentTable.get("infer");
790
36.3k
    kw_is = &IdentTable.get("is");
791
36.3k
    kw_let = &IdentTable.get("let");
792
36.3k
    kw_module = &IdentTable.get("module");
793
36.3k
    kw_readonly = &IdentTable.get("readonly");
794
36.3k
    kw_set = &IdentTable.get("set");
795
36.3k
    kw_type = &IdentTable.get("type");
796
36.3k
    kw_typeof = &IdentTable.get("typeof");
797
36.3k
    kw_var = &IdentTable.get("var");
798
36.3k
    kw_yield = &IdentTable.get("yield");
799
36.3k
800
36.3k
    kw_abstract = &IdentTable.get("abstract");
801
36.3k
    kw_assert = &IdentTable.get("assert");
802
36.3k
    kw_extends = &IdentTable.get("extends");
803
36.3k
    kw_implements = &IdentTable.get("implements");
804
36.3k
    kw_instanceof = &IdentTable.get("instanceof");
805
36.3k
    kw_interface = &IdentTable.get("interface");
806
36.3k
    kw_native = &IdentTable.get("native");
807
36.3k
    kw_package = &IdentTable.get("package");
808
36.3k
    kw_synchronized = &IdentTable.get("synchronized");
809
36.3k
    kw_throws = &IdentTable.get("throws");
810
36.3k
    kw___except = &IdentTable.get("__except");
811
36.3k
    kw___has_include = &IdentTable.get("__has_include");
812
36.3k
    kw___has_include_next = &IdentTable.get("__has_include_next");
813
36.3k
814
36.3k
    kw_mark = &IdentTable.get("mark");
815
36.3k
816
36.3k
    kw_extend = &IdentTable.get("extend");
817
36.3k
    kw_option = &IdentTable.get("option");
818
36.3k
    kw_optional = &IdentTable.get("optional");
819
36.3k
    kw_repeated = &IdentTable.get("repeated");
820
36.3k
    kw_required = &IdentTable.get("required");
821
36.3k
    kw_returns = &IdentTable.get("returns");
822
36.3k
823
36.3k
    kw_signals = &IdentTable.get("signals");
824
36.3k
    kw_qsignals = &IdentTable.get("Q_SIGNALS");
825
36.3k
    kw_slots = &IdentTable.get("slots");
826
36.3k
    kw_qslots = &IdentTable.get("Q_SLOTS");
827
36.3k
828
    // C# keywords
829
36.3k
    kw_dollar = &IdentTable.get("dollar");
830
36.3k
    kw_base = &IdentTable.get("base");
831
36.3k
    kw_byte = &IdentTable.get("byte");
832
36.3k
    kw_checked = &IdentTable.get("checked");
833
36.3k
    kw_decimal = &IdentTable.get("decimal");
834
36.3k
    kw_delegate = &IdentTable.get("delegate");
835
36.3k
    kw_event = &IdentTable.get("event");
836
36.3k
    kw_fixed = &IdentTable.get("fixed");
837
36.3k
    kw_foreach = &IdentTable.get("foreach");
838
36.3k
    kw_implicit = &IdentTable.get("implicit");
839
36.3k
    kw_internal = &IdentTable.get("internal");
840
36.3k
    kw_lock = &IdentTable.get("lock");
841
36.3k
    kw_null = &IdentTable.get("null");
842
36.3k
    kw_object = &IdentTable.get("object");
843
36.3k
    kw_out = &IdentTable.get("out");
844
36.3k
    kw_params = &IdentTable.get("params");
845
36.3k
    kw_ref = &IdentTable.get("ref");
846
36.3k
    kw_string = &IdentTable.get("string");
847
36.3k
    kw_stackalloc = &IdentTable.get("stackalloc");
848
36.3k
    kw_sbyte = &IdentTable.get("sbyte");
849
36.3k
    kw_sealed = &IdentTable.get("sealed");
850
36.3k
    kw_uint = &IdentTable.get("uint");
851
36.3k
    kw_ulong = &IdentTable.get("ulong");
852
36.3k
    kw_unchecked = &IdentTable.get("unchecked");
853
36.3k
    kw_unsafe = &IdentTable.get("unsafe");
854
36.3k
    kw_ushort = &IdentTable.get("ushort");
855
36.3k
    kw_when = &IdentTable.get("when");
856
36.3k
    kw_where = &IdentTable.get("where");
857
36.3k
858
    // Keep this at the end of the constructor to make sure everything here
859
    // is
860
    // already initialized.
861
36.3k
    JsExtraKeywords = std::unordered_set<IdentifierInfo *>(
862
36.3k
        {kw_as, kw_async, kw_await, kw_declare, kw_finally, kw_from,
863
36.3k
         kw_function, kw_get, kw_import, kw_is, kw_let, kw_module, kw_readonly,
864
36.3k
         kw_set, kw_type, kw_typeof, kw_var, kw_yield,
865
         // Keywords from the Java section.
866
36.3k
         kw_abstract, kw_extends, kw_implements, kw_instanceof, kw_interface});
867
36.3k
868
36.3k
    CSharpExtraKeywords = std::unordered_set<IdentifierInfo *>(
869
36.3k
        {kw_base, kw_byte, kw_checked, kw_decimal, kw_delegate, kw_event,
870
36.3k
         kw_fixed, kw_foreach, kw_implicit, kw_in, kw_interface, kw_internal,
871
36.3k
         kw_is, kw_lock, kw_null, kw_object, kw_out, kw_override, kw_params,
872
36.3k
         kw_readonly, kw_ref, kw_string, kw_stackalloc, kw_sbyte, kw_sealed,
873
36.3k
         kw_uint, kw_ulong, kw_unchecked, kw_unsafe, kw_ushort, kw_when,
874
36.3k
         kw_where,
875
         // Keywords from the JavaScript section.
876
36.3k
         kw_as, kw_async, kw_await, kw_declare, kw_finally, kw_from,
877
36.3k
         kw_function, kw_get, kw_import, kw_is, kw_let, kw_module, kw_readonly,
878
36.3k
         kw_set, kw_type, kw_typeof, kw_var, kw_yield,
879
         // Keywords from the Java section.
880
36.3k
         kw_abstract, kw_extends, kw_implements, kw_instanceof, kw_interface});
881
36.3k
  }
882
883
  // Context sensitive keywords.
884
  IdentifierInfo *kw_final;
885
  IdentifierInfo *kw_override;
886
  IdentifierInfo *kw_in;
887
  IdentifierInfo *kw_of;
888
  IdentifierInfo *kw_CF_CLOSED_ENUM;
889
  IdentifierInfo *kw_CF_ENUM;
890
  IdentifierInfo *kw_CF_OPTIONS;
891
  IdentifierInfo *kw_NS_CLOSED_ENUM;
892
  IdentifierInfo *kw_NS_ENUM;
893
  IdentifierInfo *kw_NS_OPTIONS;
894
  IdentifierInfo *kw___except;
895
  IdentifierInfo *kw___has_include;
896
  IdentifierInfo *kw___has_include_next;
897
898
  // JavaScript keywords.
899
  IdentifierInfo *kw_as;
900
  IdentifierInfo *kw_async;
901
  IdentifierInfo *kw_await;
902
  IdentifierInfo *kw_declare;
903
  IdentifierInfo *kw_finally;
904
  IdentifierInfo *kw_from;
905
  IdentifierInfo *kw_function;
906
  IdentifierInfo *kw_get;
907
  IdentifierInfo *kw_import;
908
  IdentifierInfo *kw_infer;
909
  IdentifierInfo *kw_is;
910
  IdentifierInfo *kw_let;
911
  IdentifierInfo *kw_module;
912
  IdentifierInfo *kw_readonly;
913
  IdentifierInfo *kw_set;
914
  IdentifierInfo *kw_type;
915
  IdentifierInfo *kw_typeof;
916
  IdentifierInfo *kw_var;
917
  IdentifierInfo *kw_yield;
918
919
  // Java keywords.
920
  IdentifierInfo *kw_abstract;
921
  IdentifierInfo *kw_assert;
922
  IdentifierInfo *kw_extends;
923
  IdentifierInfo *kw_implements;
924
  IdentifierInfo *kw_instanceof;
925
  IdentifierInfo *kw_interface;
926
  IdentifierInfo *kw_native;
927
  IdentifierInfo *kw_package;
928
  IdentifierInfo *kw_synchronized;
929
  IdentifierInfo *kw_throws;
930
931
  // Pragma keywords.
932
  IdentifierInfo *kw_mark;
933
934
  // Proto keywords.
935
  IdentifierInfo *kw_extend;
936
  IdentifierInfo *kw_option;
937
  IdentifierInfo *kw_optional;
938
  IdentifierInfo *kw_repeated;
939
  IdentifierInfo *kw_required;
940
  IdentifierInfo *kw_returns;
941
942
  // QT keywords.
943
  IdentifierInfo *kw_signals;
944
  IdentifierInfo *kw_qsignals;
945
  IdentifierInfo *kw_slots;
946
  IdentifierInfo *kw_qslots;
947
948
  // C# keywords
949
  IdentifierInfo *kw_dollar;
950
  IdentifierInfo *kw_base;
951
  IdentifierInfo *kw_byte;
952
  IdentifierInfo *kw_checked;
953
  IdentifierInfo *kw_decimal;
954
  IdentifierInfo *kw_delegate;
955
  IdentifierInfo *kw_event;
956
  IdentifierInfo *kw_fixed;
957
  IdentifierInfo *kw_foreach;
958
  IdentifierInfo *kw_implicit;
959
  IdentifierInfo *kw_internal;
960
961
  IdentifierInfo *kw_lock;
962
  IdentifierInfo *kw_null;
963
  IdentifierInfo *kw_object;
964
  IdentifierInfo *kw_out;
965
966
  IdentifierInfo *kw_params;
967
968
  IdentifierInfo *kw_ref;
969
  IdentifierInfo *kw_string;
970
  IdentifierInfo *kw_stackalloc;
971
  IdentifierInfo *kw_sbyte;
972
  IdentifierInfo *kw_sealed;
973
  IdentifierInfo *kw_uint;
974
  IdentifierInfo *kw_ulong;
975
  IdentifierInfo *kw_unchecked;
976
  IdentifierInfo *kw_unsafe;
977
  IdentifierInfo *kw_ushort;
978
  IdentifierInfo *kw_when;
979
  IdentifierInfo *kw_where;
980
981
  /// Returns \c true if \p Tok is a true JavaScript identifier, returns
982
  /// \c false if it is a keyword or a pseudo keyword.
983
  /// If \c AcceptIdentifierName is true, returns true not only for keywords,
984
  // but also for IdentifierName tokens (aka pseudo-keywords), such as
985
  // ``yield``.
986
  bool IsJavaScriptIdentifier(const FormatToken &Tok,
987
11.5k
                              bool AcceptIdentifierName = true) const {
988
    // Based on the list of JavaScript & TypeScript keywords here:
989
    // https://github.com/microsoft/TypeScript/blob/master/src/compiler/scanner.ts#L74
990
11.5k
    switch (Tok.Tok.getKind()) {
991
332
    case tok::kw_break:
992
332
    case tok::kw_case:
993
332
    case tok::kw_catch:
994
332
    case tok::kw_class:
995
332
    case tok::kw_continue:
996
332
    case tok::kw_const:
997
332
    case tok::kw_default:
998
332
    case tok::kw_delete:
999
332
    case tok::kw_do:
1000
332
    case tok::kw_else:
1001
332
    case tok::kw_enum:
1002
332
    case tok::kw_export:
1003
332
    case tok::kw_false:
1004
332
    case tok::kw_for:
1005
332
    case tok::kw_if:
1006
332
    case tok::kw_import:
1007
332
    case tok::kw_module:
1008
332
    case tok::kw_new:
1009
332
    case tok::kw_private:
1010
332
    case tok::kw_protected:
1011
332
    case tok::kw_public:
1012
332
    case tok::kw_return:
1013
332
    case tok::kw_static:
1014
332
    case tok::kw_switch:
1015
332
    case tok::kw_this:
1016
332
    case tok::kw_throw:
1017
332
    case tok::kw_true:
1018
332
    case tok::kw_try:
1019
332
    case tok::kw_typeof:
1020
332
    case tok::kw_void:
1021
332
    case tok::kw_while:
1022
      // These are JS keywords that are lexed by LLVM/clang as keywords.
1023
332
      return false;
1024
4.00k
    case tok::identifier: {
1025
      // For identifiers, make sure they are true identifiers, excluding the
1026
      // JavaScript pseudo-keywords (not lexed by LLVM/clang as keywords).
1027
4.00k
      bool IsPseudoKeyword =
1028
4.00k
          JsExtraKeywords.find(Tok.Tok.getIdentifierInfo()) !=
1029
4.00k
          JsExtraKeywords.end();
1030
4.00k
      return AcceptIdentifierName || 
!IsPseudoKeyword3.93k
;
1031
332
    }
1032
7.23k
    default:
1033
      // Other keywords are handled in the switch below, to avoid problems due
1034
      // to duplicate case labels when using the #include trick.
1035
7.23k
      break;
1036
7.23k
    }
1037
7.23k
1038
7.23k
    switch (Tok.Tok.getKind()) {
1039
      // Handle C++ keywords not included above: these are all JS identifiers.
1040
69.5k
#define KEYWORD(X, Y) case tok::kw_##X:
1041
254
#include 
"clang/Basic/TokenKinds.def"0
1042
      // #undef KEYWORD is not needed -- it's #undef-ed at the end of
1043
      // TokenKinds.def
1044
254
      return true;
1045
6.98k
    default:
1046
      // All other tokens (punctuation etc) are not JS identifiers.
1047
6.98k
      return false;
1048
7.23k
    }
1049
7.23k
  }
1050
1051
  /// Returns \c true if \p Tok is a C# keyword, returns
1052
  /// \c false if it is a anything else.
1053
16
  bool isCSharpKeyword(const FormatToken &Tok) const {
1054
16
    switch (Tok.Tok.getKind()) {
1055
2
    case tok::kw_bool:
1056
2
    case tok::kw_break:
1057
2
    case tok::kw_case:
1058
2
    case tok::kw_catch:
1059
2
    case tok::kw_char:
1060
2
    case tok::kw_class:
1061
2
    case tok::kw_const:
1062
2
    case tok::kw_continue:
1063
2
    case tok::kw_default:
1064
2
    case tok::kw_do:
1065
2
    case tok::kw_double:
1066
2
    case tok::kw_else:
1067
2
    case tok::kw_enum:
1068
2
    case tok::kw_explicit:
1069
2
    case tok::kw_extern:
1070
2
    case tok::kw_false:
1071
2
    case tok::kw_float:
1072
2
    case tok::kw_for:
1073
2
    case tok::kw_goto:
1074
2
    case tok::kw_if:
1075
2
    case tok::kw_int:
1076
2
    case tok::kw_long:
1077
2
    case tok::kw_namespace:
1078
2
    case tok::kw_new:
1079
2
    case tok::kw_operator:
1080
2
    case tok::kw_private:
1081
2
    case tok::kw_protected:
1082
2
    case tok::kw_public:
1083
2
    case tok::kw_return:
1084
2
    case tok::kw_short:
1085
2
    case tok::kw_sizeof:
1086
2
    case tok::kw_static:
1087
2
    case tok::kw_struct:
1088
2
    case tok::kw_switch:
1089
2
    case tok::kw_this:
1090
2
    case tok::kw_throw:
1091
2
    case tok::kw_true:
1092
2
    case tok::kw_try:
1093
2
    case tok::kw_typeof:
1094
2
    case tok::kw_using:
1095
2
    case tok::kw_virtual:
1096
2
    case tok::kw_void:
1097
2
    case tok::kw_volatile:
1098
2
    case tok::kw_while:
1099
2
      return true;
1100
14
    default:
1101
14
      return Tok.is(tok::identifier) &&
1102
2
             CSharpExtraKeywords.find(Tok.Tok.getIdentifierInfo()) ==
1103
2
                 CSharpExtraKeywords.end();
1104
16
    }
1105
16
  }
1106
1107
private:
1108
  /// The JavaScript keywords beyond the C++ keyword set.
1109
  std::unordered_set<IdentifierInfo *> JsExtraKeywords;
1110
1111
  /// The C# keywords beyond the C++ keyword set
1112
  std::unordered_set<IdentifierInfo *> CSharpExtraKeywords;
1113
};
1114
1115
} // namespace format
1116
} // namespace clang
1117
1118
#endif