Coverage Report

Created: 2022-01-18 06:27

/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/include/clang/Basic/Diagnostic.h
Line
Count
Source (jump to first uncovered line)
1
//===- Diagnostic.h - C Language Family Diagnostic Handling -----*- 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
/// Defines the Diagnostic-related interfaces.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_CLANG_BASIC_DIAGNOSTIC_H
15
#define LLVM_CLANG_BASIC_DIAGNOSTIC_H
16
17
#include "clang/Basic/DiagnosticIDs.h"
18
#include "clang/Basic/DiagnosticOptions.h"
19
#include "clang/Basic/SourceLocation.h"
20
#include "clang/Basic/Specifiers.h"
21
#include "llvm/ADT/ArrayRef.h"
22
#include "llvm/ADT/DenseMap.h"
23
#include "llvm/ADT/IntrusiveRefCntPtr.h"
24
#include "llvm/ADT/Optional.h"
25
#include "llvm/ADT/SmallVector.h"
26
#include "llvm/ADT/StringRef.h"
27
#include "llvm/ADT/iterator_range.h"
28
#include "llvm/Support/Compiler.h"
29
#include <cassert>
30
#include <cstdint>
31
#include <limits>
32
#include <list>
33
#include <map>
34
#include <memory>
35
#include <string>
36
#include <type_traits>
37
#include <utility>
38
#include <vector>
39
40
namespace llvm {
41
class Error;
42
}
43
44
namespace clang {
45
46
class DeclContext;
47
class DiagnosticBuilder;
48
class DiagnosticConsumer;
49
class IdentifierInfo;
50
class LangOptions;
51
class Preprocessor;
52
class SourceManager;
53
class StoredDiagnostic;
54
55
namespace tok {
56
57
enum TokenKind : unsigned short;
58
59
} // namespace tok
60
61
/// Annotates a diagnostic with some code that should be
62
/// inserted, removed, or replaced to fix the problem.
63
///
64
/// This kind of hint should be used when we are certain that the
65
/// introduction, removal, or modification of a particular (small!)
66
/// amount of code will correct a compilation error. The compiler
67
/// should also provide full recovery from such errors, such that
68
/// suppressing the diagnostic output can still result in successful
69
/// compilation.
70
class FixItHint {
71
public:
72
  /// Code that should be replaced to correct the error. Empty for an
73
  /// insertion hint.
74
  CharSourceRange RemoveRange;
75
76
  /// Code in the specific range that should be inserted in the insertion
77
  /// location.
78
  CharSourceRange InsertFromRange;
79
80
  /// The actual code to insert at the insertion location, as a
81
  /// string.
82
  std::string CodeToInsert;
83
84
  bool BeforePreviousInsertions = false;
85
86
  /// Empty code modification hint, indicating that no code
87
  /// modification is known.
88
481k
  FixItHint() = default;
89
90
474k
  bool isNull() const {
91
474k
    return !RemoveRange.isValid();
92
474k
  }
93
94
  /// Create a code modification hint that inserts the given
95
  /// code string at a specific location.
96
  static FixItHint CreateInsertion(SourceLocation InsertionLoc,
97
                                   StringRef Code,
98
364k
                                   bool BeforePreviousInsertions = false) {
99
364k
    FixItHint Hint;
100
364k
    Hint.RemoveRange =
101
364k
      CharSourceRange::getCharRange(InsertionLoc, InsertionLoc);
102
364k
    Hint.CodeToInsert = std::string(Code);
103
364k
    Hint.BeforePreviousInsertions = BeforePreviousInsertions;
104
364k
    return Hint;
105
364k
  }
106
107
  /// Create a code modification hint that inserts the given
108
  /// code from \p FromRange at a specific location.
109
  static FixItHint CreateInsertionFromRange(SourceLocation InsertionLoc,
110
                                            CharSourceRange FromRange,
111
118
                                        bool BeforePreviousInsertions = false) {
112
118
    FixItHint Hint;
113
118
    Hint.RemoveRange =
114
118
      CharSourceRange::getCharRange(InsertionLoc, InsertionLoc);
115
118
    Hint.InsertFromRange = FromRange;
116
118
    Hint.BeforePreviousInsertions = BeforePreviousInsertions;
117
118
    return Hint;
118
118
  }
119
120
  /// Create a code modification hint that removes the given
121
  /// source range.
122
32.3k
  static FixItHint CreateRemoval(CharSourceRange RemoveRange) {
123
32.3k
    FixItHint Hint;
124
32.3k
    Hint.RemoveRange = RemoveRange;
125
32.3k
    return Hint;
126
32.3k
  }
127
31.7k
  static FixItHint CreateRemoval(SourceRange RemoveRange) {
128
31.7k
    return CreateRemoval(CharSourceRange::getTokenRange(RemoveRange));
129
31.7k
  }
130
131
  /// Create a code modification hint that replaces the given
132
  /// source range with the given code string.
133
  static FixItHint CreateReplacement(CharSourceRange RemoveRange,
134
34.6k
                                     StringRef Code) {
135
34.6k
    FixItHint Hint;
136
34.6k
    Hint.RemoveRange = RemoveRange;
137
34.6k
    Hint.CodeToInsert = std::string(Code);
138
34.6k
    return Hint;
139
34.6k
  }
140
141
  static FixItHint CreateReplacement(SourceRange RemoveRange,
142
9.70k
                                     StringRef Code) {
143
9.70k
    return CreateReplacement(CharSourceRange::getTokenRange(RemoveRange), Code);
144
9.70k
  }
145
};
146
147
struct DiagnosticStorage {
148
  enum {
149
    /// The maximum number of arguments we can hold. We
150
    /// currently only support up to 10 arguments (%0-%9).
151
    ///
152
    /// A single diagnostic with more than that almost certainly has to
153
    /// be simplified anyway.
154
    MaxArguments = 10
155
  };
156
157
  /// The number of entries in Arguments.
158
  unsigned char NumDiagArgs = 0;
159
160
  /// Specifies for each argument whether it is in DiagArgumentsStr
161
  /// or in DiagArguments.
162
  unsigned char DiagArgumentsKind[MaxArguments];
163
164
  /// The values for the various substitution positions.
165
  ///
166
  /// This is used when the argument is not an std::string. The specific value
167
  /// is mangled into an uint64_t and the interpretation depends on exactly
168
  /// what sort of argument kind it is.
169
  uint64_t DiagArgumentsVal[MaxArguments];
170
171
  /// The values for the various substitution positions that have
172
  /// string arguments.
173
  std::string DiagArgumentsStr[MaxArguments];
174
175
  /// The list of ranges added to this diagnostic.
176
  SmallVector<CharSourceRange, 8> DiagRanges;
177
178
  /// If valid, provides a hint with some code to insert, remove, or
179
  /// modify at a particular position.
180
  SmallVector<FixItHint, 6> FixItHints;
181
182
1.91M
  DiagnosticStorage() = default;
183
};
184
185
/// Concrete class used by the front-end to report problems and issues.
186
///
187
/// This massages the diagnostics (e.g. handling things like "report warnings
188
/// as errors" and passes them off to the DiagnosticConsumer for reporting to
189
/// the user. DiagnosticsEngine is tied to one translation unit and one
190
/// SourceManager.
191
class DiagnosticsEngine : public RefCountedBase<DiagnosticsEngine> {
192
public:
193
  /// The level of the diagnostic, after it has been through mapping.
194
  enum Level {
195
    Ignored = DiagnosticIDs::Ignored,
196
    Note = DiagnosticIDs::Note,
197
    Remark = DiagnosticIDs::Remark,
198
    Warning = DiagnosticIDs::Warning,
199
    Error = DiagnosticIDs::Error,
200
    Fatal = DiagnosticIDs::Fatal
201
  };
202
203
  enum ArgumentKind {
204
    /// std::string
205
    ak_std_string,
206
207
    /// const char *
208
    ak_c_string,
209
210
    /// int
211
    ak_sint,
212
213
    /// unsigned
214
    ak_uint,
215
216
    /// enum TokenKind : unsigned
217
    ak_tokenkind,
218
219
    /// IdentifierInfo
220
    ak_identifierinfo,
221
222
    /// address space
223
    ak_addrspace,
224
225
    /// Qualifiers
226
    ak_qual,
227
228
    /// QualType
229
    ak_qualtype,
230
231
    /// DeclarationName
232
    ak_declarationname,
233
234
    /// NamedDecl *
235
    ak_nameddecl,
236
237
    /// NestedNameSpecifier *
238
    ak_nestednamespec,
239
240
    /// DeclContext *
241
    ak_declcontext,
242
243
    /// pair<QualType, QualType>
244
    ak_qualtype_pair,
245
246
    /// Attr *
247
    ak_attr
248
  };
249
250
  /// Represents on argument value, which is a union discriminated
251
  /// by ArgumentKind, with a value.
252
  using ArgumentValue = std::pair<ArgumentKind, intptr_t>;
253
254
private:
255
  // Used by __extension__
256
  unsigned char AllExtensionsSilenced = 0;
257
258
  // Treat fatal errors like errors.
259
  bool FatalsAsError = false;
260
261
  // Suppress all diagnostics.
262
  bool SuppressAllDiagnostics = false;
263
264
  // Elide common types of templates.
265
  bool ElideType = true;
266
267
  // Print a tree when comparing templates.
268
  bool PrintTemplateTree = false;
269
270
  // Color printing is enabled.
271
  bool ShowColors = false;
272
273
  // Which overload candidates to show.
274
  OverloadsShown ShowOverloads = Ovl_All;
275
276
  // With Ovl_Best, the number of overload candidates to show when we encounter
277
  // an error.
278
  //
279
  // The value here is the number of candidates to show in the first nontrivial
280
  // error.  Future errors may show a different number of candidates.
281
  unsigned NumOverloadsToShow = 32;
282
283
  // Cap of # errors emitted, 0 -> no limit.
284
  unsigned ErrorLimit = 0;
285
286
  // Cap on depth of template backtrace stack, 0 -> no limit.
287
  unsigned TemplateBacktraceLimit = 0;
288
289
  // Cap on depth of constexpr evaluation backtrace stack, 0 -> no limit.
290
  unsigned ConstexprBacktraceLimit = 0;
291
292
  IntrusiveRefCntPtr<DiagnosticIDs> Diags;
293
  IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts;
294
  DiagnosticConsumer *Client = nullptr;
295
  std::unique_ptr<DiagnosticConsumer> Owner;
296
  SourceManager *SourceMgr = nullptr;
297
298
  /// Mapping information for diagnostics.
299
  ///
300
  /// Mapping info is packed into four bits per diagnostic.  The low three
301
  /// bits are the mapping (an instance of diag::Severity), or zero if unset.
302
  /// The high bit is set when the mapping was established as a user mapping.
303
  /// If the high bit is clear, then the low bits are set to the default
304
  /// value, and should be mapped with -pedantic, -Werror, etc.
305
  ///
306
  /// A new DiagState is created and kept around when diagnostic pragmas modify
307
  /// the state so that we know what is the diagnostic state at any given
308
  /// source location.
309
  class DiagState {
310
    llvm::DenseMap<unsigned, DiagnosticMapping> DiagMap;
311
312
  public:
313
    // "Global" configuration state that can actually vary between modules.
314
315
    // Ignore all warnings: -w
316
    unsigned IgnoreAllWarnings : 1;
317
318
    // Enable all warnings.
319
    unsigned EnableAllWarnings : 1;
320
321
    // Treat warnings like errors.
322
    unsigned WarningsAsErrors : 1;
323
324
    // Treat errors like fatal errors.
325
    unsigned ErrorsAsFatal : 1;
326
327
    // Suppress warnings in system headers.
328
    unsigned SuppressSystemWarnings : 1;
329
330
    // Map extensions to warnings or errors?
331
    diag::Severity ExtBehavior = diag::Severity::Ignored;
332
333
    DiagState()
334
        : IgnoreAllWarnings(false), EnableAllWarnings(false),
335
          WarningsAsErrors(false), ErrorsAsFatal(false),
336
399k
          SuppressSystemWarnings(false) {}
337
338
    using iterator = llvm::DenseMap<unsigned, DiagnosticMapping>::iterator;
339
    using const_iterator =
340
        llvm::DenseMap<unsigned, DiagnosticMapping>::const_iterator;
341
342
3.86M
    void setMapping(diag::kind Diag, DiagnosticMapping Info) {
343
3.86M
      DiagMap[Diag] = Info;
344
3.86M
    }
345
346
0
    DiagnosticMapping lookupMapping(diag::kind Diag) const {
347
0
      return DiagMap.lookup(Diag);
348
0
    }
349
350
    DiagnosticMapping &getOrAddMapping(diag::kind Diag);
351
352
11.9k
    const_iterator begin() const { return DiagMap.begin(); }
353
11.9k
    const_iterator end() const { return DiagMap.end(); }
354
  };
355
356
  /// Keeps and automatically disposes all DiagStates that we create.
357
  std::list<DiagState> DiagStates;
358
359
  /// A mapping from files to the diagnostic states for those files. Lazily
360
  /// built on demand for files in which the diagnostic state has not changed.
361
  class DiagStateMap {
362
  public:
363
    /// Add an initial diagnostic state.
364
    void appendFirst(DiagState *State);
365
366
    /// Add a new latest state point.
367
    void append(SourceManager &SrcMgr, SourceLocation Loc, DiagState *State);
368
369
    /// Look up the diagnostic state at a given source location.
370
    DiagState *lookup(SourceManager &SrcMgr, SourceLocation Loc) const;
371
372
    /// Determine whether this map is empty.
373
236k
    bool empty() const { return Files.empty(); }
374
375
    /// Clear out this map.
376
397k
    void clear() {
377
397k
      Files.clear();
378
397k
      FirstDiagState = CurDiagState = nullptr;
379
397k
      CurDiagStateLoc = SourceLocation();
380
397k
    }
381
382
    /// Produce a debugging dump of the diagnostic state.
383
    LLVM_DUMP_METHOD void dump(SourceManager &SrcMgr,
384
                               StringRef DiagName = StringRef()) const;
385
386
    /// Grab the most-recently-added state point.
387
33.2M
    DiagState *getCurDiagState() const { return CurDiagState; }
388
389
    /// Get the location at which a diagnostic state was last added.
390
1.23M
    SourceLocation getCurDiagStateLoc() const { return CurDiagStateLoc; }
391
392
  private:
393
    friend class ASTReader;
394
    friend class ASTWriter;
395
396
    /// Represents a point in source where the diagnostic state was
397
    /// modified because of a pragma.
398
    ///
399
    /// 'Loc' can be null if the point represents the diagnostic state
400
    /// modifications done through the command-line.
401
    struct DiagStatePoint {
402
      DiagState *State;
403
      unsigned Offset;
404
405
      DiagStatePoint(DiagState *State, unsigned Offset)
406
4.07M
          : State(State), Offset(Offset) {}
407
    };
408
409
    /// Description of the diagnostic states and state transitions for a
410
    /// particular FileID.
411
    struct File {
412
      /// The diagnostic state for the parent file. This is strictly redundant,
413
      /// as looking up the DecomposedIncludedLoc for the FileID in the Files
414
      /// map would give us this, but we cache it here for performance.
415
      File *Parent = nullptr;
416
417
      /// The offset of this file within its parent.
418
      unsigned ParentOffset = 0;
419
420
      /// Whether this file has any local (not imported from an AST file)
421
      /// diagnostic state transitions.
422
      bool HasLocalTransitions = false;
423
424
      /// The points within the file where the state changes. There will always
425
      /// be at least one of these (the state on entry to the file).
426
      llvm::SmallVector<DiagStatePoint, 4> StateTransitions;
427
428
      DiagState *lookup(unsigned Offset) const;
429
    };
430
431
    /// The diagnostic states for each file.
432
    mutable std::map<FileID, File> Files;
433
434
    /// The initial diagnostic state.
435
    DiagState *FirstDiagState;
436
437
    /// The current diagnostic state.
438
    DiagState *CurDiagState;
439
440
    /// The location at which the current diagnostic state was established.
441
    SourceLocation CurDiagStateLoc;
442
443
    /// Get the diagnostic state information for a file.
444
    File *getFile(SourceManager &SrcMgr, FileID ID) const;
445
  };
446
447
  DiagStateMap DiagStatesByLoc;
448
449
  /// Keeps the DiagState that was active during each diagnostic 'push'
450
  /// so we can get back at it when we 'pop'.
451
  std::vector<DiagState *> DiagStateOnPushStack;
452
453
25.4M
  DiagState *GetCurDiagState() const {
454
25.4M
    return DiagStatesByLoc.getCurDiagState();
455
25.4M
  }
456
457
  void PushDiagStatePoint(DiagState *State, SourceLocation L);
458
459
  /// Finds the DiagStatePoint that contains the diagnostic state of
460
  /// the given source location.
461
182M
  DiagState *GetDiagStateForLoc(SourceLocation Loc) const {
462
182M
    return SourceMgr ? 
DiagStatesByLoc.lookup(*SourceMgr, Loc)182M
463
182M
                     : 
DiagStatesByLoc.getCurDiagState()128k
;
464
182M
  }
465
466
  /// Sticky flag set to \c true when an error is emitted.
467
  bool ErrorOccurred;
468
469
  /// Sticky flag set to \c true when an "uncompilable error" occurs.
470
  /// I.e. an error that was not upgraded from a warning by -Werror.
471
  bool UncompilableErrorOccurred;
472
473
  /// Sticky flag set to \c true when a fatal error is emitted.
474
  bool FatalErrorOccurred;
475
476
  /// Indicates that an unrecoverable error has occurred.
477
  bool UnrecoverableErrorOccurred;
478
479
  /// Counts for DiagnosticErrorTrap to check whether an error occurred
480
  /// during a parsing section, e.g. during parsing a function.
481
  unsigned TrapNumErrorsOccurred;
482
  unsigned TrapNumUnrecoverableErrorsOccurred;
483
484
  /// The level of the last diagnostic emitted.
485
  ///
486
  /// This is used to emit continuation diagnostics with the same level as the
487
  /// diagnostic that they follow.
488
  DiagnosticIDs::Level LastDiagLevel;
489
490
  /// Number of warnings reported
491
  unsigned NumWarnings;
492
493
  /// Number of errors reported
494
  unsigned NumErrors;
495
496
  /// A function pointer that converts an opaque diagnostic
497
  /// argument to a strings.
498
  ///
499
  /// This takes the modifiers and argument that was present in the diagnostic.
500
  ///
501
  /// The PrevArgs array indicates the previous arguments formatted for this
502
  /// diagnostic.  Implementations of this function can use this information to
503
  /// avoid redundancy across arguments.
504
  ///
505
  /// This is a hack to avoid a layering violation between libbasic and libsema.
506
  using ArgToStringFnTy = void (*)(
507
      ArgumentKind Kind, intptr_t Val,
508
      StringRef Modifier, StringRef Argument,
509
      ArrayRef<ArgumentValue> PrevArgs,
510
      SmallVectorImpl<char> &Output,
511
      void *Cookie,
512
      ArrayRef<intptr_t> QualTypeVals);
513
514
  void *ArgToStringCookie = nullptr;
515
  ArgToStringFnTy ArgToStringFn;
516
517
  /// ID of the "delayed" diagnostic, which is a (typically
518
  /// fatal) diagnostic that had to be delayed because it was found
519
  /// while emitting another diagnostic.
520
  unsigned DelayedDiagID;
521
522
  /// First string argument for the delayed diagnostic.
523
  std::string DelayedDiagArg1;
524
525
  /// Second string argument for the delayed diagnostic.
526
  std::string DelayedDiagArg2;
527
528
  /// Third string argument for the delayed diagnostic.
529
  std::string DelayedDiagArg3;
530
531
  /// Optional flag value.
532
  ///
533
  /// Some flags accept values, for instance: -Wframe-larger-than=<value> and
534
  /// -Rpass=<value>. The content of this string is emitted after the flag name
535
  /// and '='.
536
  std::string FlagValue;
537
538
public:
539
  explicit DiagnosticsEngine(IntrusiveRefCntPtr<DiagnosticIDs> Diags,
540
                             IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts,
541
                             DiagnosticConsumer *client = nullptr,
542
                             bool ShouldOwnClient = true);
543
  DiagnosticsEngine(const DiagnosticsEngine &) = delete;
544
  DiagnosticsEngine &operator=(const DiagnosticsEngine &) = delete;
545
  ~DiagnosticsEngine();
546
547
  LLVM_DUMP_METHOD void dump() const;
548
  LLVM_DUMP_METHOD void dump(StringRef DiagName) const;
549
550
3.56M
  const IntrusiveRefCntPtr<DiagnosticIDs> &getDiagnosticIDs() const {
551
3.56M
    return Diags;
552
3.56M
  }
553
554
  /// Retrieve the diagnostic options.
555
22.2M
  DiagnosticOptions &getDiagnosticOptions() const { return *DiagOpts; }
556
557
  using diag_mapping_range = llvm::iterator_range<DiagState::const_iterator>;
558
559
  /// Get the current set of diagnostic mappings.
560
3.58k
  diag_mapping_range getDiagnosticMappings() const {
561
3.58k
    const DiagState &DS = *GetCurDiagState();
562
3.58k
    return diag_mapping_range(DS.begin(), DS.end());
563
3.58k
  }
564
565
19.3M
  DiagnosticConsumer *getClient() { return Client; }
566
0
  const DiagnosticConsumer *getClient() const { return Client; }
567
568
  /// Determine whether this \c DiagnosticsEngine object own its client.
569
17.6k
  bool ownsClient() const { return Owner != nullptr; }
570
571
  /// Return the current diagnostic client along with ownership of that
572
  /// client.
573
54.9k
  std::unique_ptr<DiagnosticConsumer> takeClient() { return std::move(Owner); }
574
575
425k
  bool hasSourceManager() const { return SourceMgr != nullptr; }
576
577
20.8M
  SourceManager &getSourceManager() const {
578
20.8M
    assert(SourceMgr && "SourceManager not set!");
579
0
    return *SourceMgr;
580
20.8M
  }
581
582
236k
  void setSourceManager(SourceManager *SrcMgr) {
583
236k
    assert(DiagStatesByLoc.empty() &&
584
236k
           "Leftover diag state from a different SourceManager.");
585
0
    SourceMgr = SrcMgr;
586
236k
  }
587
588
  //===--------------------------------------------------------------------===//
589
  //  DiagnosticsEngine characterization methods, used by a client to customize
590
  //  how diagnostics are emitted.
591
  //
592
593
  /// Copies the current DiagMappings and pushes the new copy
594
  /// onto the top of the stack.
595
  void pushMappings(SourceLocation Loc);
596
597
  /// Pops the current DiagMappings off the top of the stack,
598
  /// causing the new top of the stack to be the active mappings.
599
  ///
600
  /// \returns \c true if the pop happens, \c false if there is only one
601
  /// DiagMapping on the stack.
602
  bool popMappings(SourceLocation Loc);
603
604
  /// Set the diagnostic client associated with this diagnostic object.
605
  ///
606
  /// \param ShouldOwnClient true if the diagnostic object should take
607
  /// ownership of \c client.
608
  void setClient(DiagnosticConsumer *client, bool ShouldOwnClient = true);
609
610
  /// Specify a limit for the number of errors we should
611
  /// emit before giving up.
612
  ///
613
  /// Zero disables the limit.
614
57.9k
  void setErrorLimit(unsigned Limit) { ErrorLimit = Limit; }
615
616
  /// Specify the maximum number of template instantiation
617
  /// notes to emit along with a given diagnostic.
618
144k
  void setTemplateBacktraceLimit(unsigned Limit) {
619
144k
    TemplateBacktraceLimit = Limit;
620
144k
  }
621
622
  /// Retrieve the maximum number of template instantiation
623
  /// notes to emit along with a given diagnostic.
624
5.97k
  unsigned getTemplateBacktraceLimit() const {
625
5.97k
    return TemplateBacktraceLimit;
626
5.97k
  }
627
628
  /// Specify the maximum number of constexpr evaluation
629
  /// notes to emit along with a given diagnostic.
630
144k
  void setConstexprBacktraceLimit(unsigned Limit) {
631
144k
    ConstexprBacktraceLimit = Limit;
632
144k
  }
633
634
  /// Retrieve the maximum number of constexpr evaluation
635
  /// notes to emit along with a given diagnostic.
636
758k
  unsigned getConstexprBacktraceLimit() const {
637
758k
    return ConstexprBacktraceLimit;
638
758k
  }
639
640
  /// When set to true, any unmapped warnings are ignored.
641
  ///
642
  /// If this and WarningsAsErrors are both set, then this one wins.
643
191k
  void setIgnoreAllWarnings(bool Val) {
644
191k
    GetCurDiagState()->IgnoreAllWarnings = Val;
645
191k
  }
646
3.10M
  bool getIgnoreAllWarnings() const {
647
3.10M
    return GetCurDiagState()->IgnoreAllWarnings;
648
3.10M
  }
649
650
  /// When set to true, any unmapped ignored warnings are no longer
651
  /// ignored.
652
  ///
653
  /// If this and IgnoreAllWarnings are both set, then that one wins.
654
48
  void setEnableAllWarnings(bool Val) {
655
48
    GetCurDiagState()->EnableAllWarnings = Val;
656
48
  }
657
43
  bool getEnableAllWarnings() const {
658
43
    return GetCurDiagState()->EnableAllWarnings;
659
43
  }
660
661
  /// When set to true, any warnings reported are issued as errors.
662
4.75k
  void setWarningsAsErrors(bool Val) {
663
4.75k
    GetCurDiagState()->WarningsAsErrors = Val;
664
4.75k
  }
665
3.66k
  bool getWarningsAsErrors() const {
666
3.66k
    return GetCurDiagState()->WarningsAsErrors;
667
3.66k
  }
668
669
  /// When set to true, any error reported is made a fatal error.
670
2
  void setErrorsAsFatal(bool Val) { GetCurDiagState()->ErrorsAsFatal = Val; }
671
0
  bool getErrorsAsFatal() const { return GetCurDiagState()->ErrorsAsFatal; }
672
673
  /// \brief When set to true, any fatal error reported is made an error.
674
  ///
675
  /// This setting takes precedence over the setErrorsAsFatal setting above.
676
7
  void setFatalsAsError(bool Val) { FatalsAsError = Val; }
677
0
  bool getFatalsAsError() const { return FatalsAsError; }
678
679
  /// When set to true mask warnings that come from system headers.
680
144k
  void setSuppressSystemWarnings(bool Val) {
681
144k
    GetCurDiagState()->SuppressSystemWarnings = Val;
682
144k
  }
683
17.3M
  bool getSuppressSystemWarnings() const {
684
17.3M
    return GetCurDiagState()->SuppressSystemWarnings;
685
17.3M
  }
686
687
  /// Suppress all diagnostics, to silence the front end when we
688
  /// know that we don't want any more diagnostics to be passed along to the
689
  /// client
690
1.41k
  void setSuppressAllDiagnostics(bool Val) { SuppressAllDiagnostics = Val; }
691
3.58M
  bool getSuppressAllDiagnostics() const { return SuppressAllDiagnostics; }
692
693
  /// Set type eliding, to skip outputting same types occurring in
694
  /// template types.
695
144k
  void setElideType(bool Val) { ElideType = Val; }
696
0
  bool getElideType() { return ElideType; }
697
698
  /// Set tree printing, to outputting the template difference in a
699
  /// tree format.
700
144k
  void setPrintTemplateTree(bool Val) { PrintTemplateTree = Val; }
701
0
  bool getPrintTemplateTree() { return PrintTemplateTree; }
702
703
  /// Set color printing, so the type diffing will inject color markers
704
  /// into the output.
705
144k
  void setShowColors(bool Val) { ShowColors = Val; }
706
1.63k
  bool getShowColors() { return ShowColors; }
707
708
  /// Specify which overload candidates to show when overload resolution
709
  /// fails.
710
  ///
711
  /// By default, we show all candidates.
712
144k
  void setShowOverloads(OverloadsShown Val) {
713
144k
    ShowOverloads = Val;
714
144k
  }
715
35.8k
  OverloadsShown getShowOverloads() const { return ShowOverloads; }
716
717
  /// When a call or operator fails, print out up to this many candidate
718
  /// overloads as suggestions.
719
  ///
720
  /// With Ovl_Best, we set a high limit for the first nontrivial overload set
721
  /// we print, and a lower limit for later sets.  This way the user has a
722
  /// chance of diagnosing at least one callsite in their program without
723
  /// having to recompile with -fshow-overloads=all.
724
17.3k
  unsigned getNumOverloadCandidatesToShow() const {
725
17.3k
    switch (getShowOverloads()) {
726
17.2k
    case Ovl_All:
727
      // INT_MAX rather than UINT_MAX so that we don't have to think about the
728
      // effect of implicit conversions on this value. In practice we'll never
729
      // hit 2^31 candidates anyway.
730
17.2k
      return std::numeric_limits<int>::max();
731
74
    case Ovl_Best:
732
74
      return NumOverloadsToShow;
733
17.3k
    }
734
0
    llvm_unreachable("invalid OverloadsShown kind");
735
0
  }
736
737
  /// Call this after showing N overload candidates.  This influences the value
738
  /// returned by later calls to getNumOverloadCandidatesToShow().
739
18.5k
  void overloadCandidatesShown(unsigned N) {
740
    // Current heuristic: Start out with a large value for NumOverloadsToShow,
741
    // and then once we print one nontrivially-large overload set, decrease it
742
    // for future calls.
743
18.5k
    if (N > 4) {
744
461
      NumOverloadsToShow = 4;
745
461
    }
746
18.5k
  }
747
748
  /// Pretend that the last diagnostic issued was ignored, so any
749
  /// subsequent notes will be suppressed, or restore a prior ignoring
750
  /// state after ignoring some diagnostics and their notes, possibly in
751
  /// the middle of another diagnostic.
752
  ///
753
  /// This can be used by clients who suppress diagnostics themselves.
754
2.34M
  void setLastDiagnosticIgnored(bool Ignored) {
755
2.34M
    if (LastDiagLevel == DiagnosticIDs::Fatal)
756
8
      FatalErrorOccurred = true;
757
2.34M
    LastDiagLevel = Ignored ? 
DiagnosticIDs::Ignored2.14M
:
DiagnosticIDs::Warning202k
;
758
2.34M
  }
759
760
  /// Determine whether the previous diagnostic was ignored. This can
761
  /// be used by clients that want to determine whether notes attached to a
762
  /// diagnostic will be suppressed.
763
2.18M
  bool isLastDiagnosticIgnored() const {
764
2.18M
    return LastDiagLevel == DiagnosticIDs::Ignored;
765
2.18M
  }
766
767
  /// Controls whether otherwise-unmapped extension diagnostics are
768
  /// mapped onto ignore/warning/error.
769
  ///
770
  /// This corresponds to the GCC -pedantic and -pedantic-errors option.
771
144k
  void setExtensionHandlingBehavior(diag::Severity H) {
772
144k
    GetCurDiagState()->ExtBehavior = H;
773
144k
  }
774
9.14k
  diag::Severity getExtensionHandlingBehavior() const {
775
9.14k
    return GetCurDiagState()->ExtBehavior;
776
9.14k
  }
777
778
  /// Counter bumped when an __extension__  block is/ encountered.
779
  ///
780
  /// When non-zero, all extension diagnostics are entirely silenced, no
781
  /// matter how they are mapped.
782
34.6k
  void IncrementAllExtensionsSilenced() { ++AllExtensionsSilenced; }
783
34.6k
  void DecrementAllExtensionsSilenced() { --AllExtensionsSilenced; }
784
130M
  bool hasAllExtensionsSilenced() { return AllExtensionsSilenced != 0; }
785
786
  /// This allows the client to specify that certain warnings are
787
  /// ignored.
788
  ///
789
  /// Notes can never be mapped, errors can only be mapped to fatal, and
790
  /// WARNINGs and EXTENSIONs can be mapped arbitrarily.
791
  ///
792
  /// \param Loc The source location that this change of diagnostic state should
793
  /// take affect. It can be null if we are setting the latest state.
794
  void setSeverity(diag::kind Diag, diag::Severity Map, SourceLocation Loc);
795
796
  /// Change an entire diagnostic group (e.g. "unknown-pragmas") to
797
  /// have the specified mapping.
798
  ///
799
  /// \returns true (and ignores the request) if "Group" was unknown, false
800
  /// otherwise.
801
  ///
802
  /// \param Flavor The flavor of group to affect. -Rfoo does not affect the
803
  /// state of the -Wfoo group and vice versa.
804
  ///
805
  /// \param Loc The source location that this change of diagnostic state should
806
  /// take affect. It can be null if we are setting the state from command-line.
807
  bool setSeverityForGroup(diag::Flavor Flavor, StringRef Group,
808
                           diag::Severity Map,
809
                           SourceLocation Loc = SourceLocation());
810
  bool setSeverityForGroup(diag::Flavor Flavor, diag::Group Group,
811
                           diag::Severity Map,
812
                           SourceLocation Loc = SourceLocation());
813
814
  /// Set the warning-as-error flag for the given diagnostic group.
815
  ///
816
  /// This function always only operates on the current diagnostic state.
817
  ///
818
  /// \returns True if the given group is unknown, false otherwise.
819
  bool setDiagnosticGroupWarningAsError(StringRef Group, bool Enabled);
820
821
  /// Set the error-as-fatal flag for the given diagnostic group.
822
  ///
823
  /// This function always only operates on the current diagnostic state.
824
  ///
825
  /// \returns True if the given group is unknown, false otherwise.
826
  bool setDiagnosticGroupErrorAsFatal(StringRef Group, bool Enabled);
827
828
  /// Add the specified mapping to all diagnostics of the specified
829
  /// flavor.
830
  ///
831
  /// Mainly to be used by -Wno-everything to disable all warnings but allow
832
  /// subsequent -W options to enable specific warnings.
833
  void setSeverityForAll(diag::Flavor Flavor, diag::Severity Map,
834
                         SourceLocation Loc = SourceLocation());
835
836
22.5M
  bool hasErrorOccurred() const { return ErrorOccurred; }
837
838
  /// Errors that actually prevent compilation, not those that are
839
  /// upgraded from a warning by -Werror.
840
11.2M
  bool hasUncompilableErrorOccurred() const {
841
11.2M
    return UncompilableErrorOccurred;
842
11.2M
  }
843
6.41M
  bool hasFatalErrorOccurred() const { return FatalErrorOccurred; }
844
845
  /// Determine whether any kind of unrecoverable error has occurred.
846
101
  bool hasUnrecoverableErrorOccurred() const {
847
101
    return FatalErrorOccurred || 
UnrecoverableErrorOccurred99
;
848
101
  }
849
850
3.96M
  unsigned getNumErrors() const { return NumErrors; }
851
69.5k
  unsigned getNumWarnings() const { return NumWarnings; }
852
853
492
  void setNumWarnings(unsigned NumWarnings) {
854
492
    this->NumWarnings = NumWarnings;
855
492
  }
856
857
  /// Return an ID for a diagnostic with the specified format string and
858
  /// level.
859
  ///
860
  /// If this is the first request for this diagnostic, it is registered and
861
  /// created, otherwise the existing ID is returned.
862
  ///
863
  /// \param FormatString A fixed diagnostic format string that will be hashed
864
  /// and mapped to a unique DiagID.
865
  template <unsigned N>
866
4.37k
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
4.37k
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
4.37k
                                  StringRef(FormatString, N - 1));
869
4.37k
  }
unsigned int clang::DiagnosticsEngine::getCustomDiagID<27u>(clang::DiagnosticsEngine::Level, char const (&) [27u])
Line
Count
Source
866
33
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
33
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
33
                                  StringRef(FormatString, N - 1));
869
33
  }
unsigned int clang::DiagnosticsEngine::getCustomDiagID<37u>(clang::DiagnosticsEngine::Level, char const (&) [37u])
Line
Count
Source
866
2
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
2
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
2
                                  StringRef(FormatString, N - 1));
869
2
  }
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<58u>(clang::DiagnosticsEngine::Level, char const (&) [58u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<38u>(clang::DiagnosticsEngine::Level, char const (&) [38u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<63u>(clang::DiagnosticsEngine::Level, char const (&) [63u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<39u>(clang::DiagnosticsEngine::Level, char const (&) [39u])
unsigned int clang::DiagnosticsEngine::getCustomDiagID<50u>(clang::DiagnosticsEngine::Level, char const (&) [50u])
Line
Count
Source
866
2
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
2
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
2
                                  StringRef(FormatString, N - 1));
869
2
  }
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<62u>(clang::DiagnosticsEngine::Level, char const (&) [62u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<46u>(clang::DiagnosticsEngine::Level, char const (&) [46u])
unsigned int clang::DiagnosticsEngine::getCustomDiagID<40u>(clang::DiagnosticsEngine::Level, char const (&) [40u])
Line
Count
Source
866
2
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
2
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
2
                                  StringRef(FormatString, N - 1));
869
2
  }
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<34u>(clang::DiagnosticsEngine::Level, char const (&) [34u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<35u>(clang::DiagnosticsEngine::Level, char const (&) [35u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<66u>(clang::DiagnosticsEngine::Level, char const (&) [66u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<52u>(clang::DiagnosticsEngine::Level, char const (&) [52u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<44u>(clang::DiagnosticsEngine::Level, char const (&) [44u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<43u>(clang::DiagnosticsEngine::Level, char const (&) [43u])
unsigned int clang::DiagnosticsEngine::getCustomDiagID<60u>(clang::DiagnosticsEngine::Level, char const (&) [60u])
Line
Count
Source
866
2
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
2
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
2
                                  StringRef(FormatString, N - 1));
869
2
  }
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<51u>(clang::DiagnosticsEngine::Level, char const (&) [51u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<42u>(clang::DiagnosticsEngine::Level, char const (&) [42u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<36u>(clang::DiagnosticsEngine::Level, char const (&) [36u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<49u>(clang::DiagnosticsEngine::Level, char const (&) [49u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<41u>(clang::DiagnosticsEngine::Level, char const (&) [41u])
unsigned int clang::DiagnosticsEngine::getCustomDiagID<61u>(clang::DiagnosticsEngine::Level, char const (&) [61u])
Line
Count
Source
866
164
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
164
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
164
                                  StringRef(FormatString, N - 1));
869
164
  }
unsigned int clang::DiagnosticsEngine::getCustomDiagID<20u>(clang::DiagnosticsEngine::Level, char const (&) [20u])
Line
Count
Source
866
2
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
2
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
2
                                  StringRef(FormatString, N - 1));
869
2
  }
unsigned int clang::DiagnosticsEngine::getCustomDiagID<3u>(clang::DiagnosticsEngine::Level, char const (&) [3u])
Line
Count
Source
866
3.62k
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
3.62k
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
3.62k
                                  StringRef(FormatString, N - 1));
869
3.62k
  }
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<47u>(clang::DiagnosticsEngine::Level, char const (&) [47u])
unsigned int clang::DiagnosticsEngine::getCustomDiagID<88u>(clang::DiagnosticsEngine::Level, char const (&) [88u])
Line
Count
Source
866
1
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
1
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
1
                                  StringRef(FormatString, N - 1));
869
1
  }
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<133u>(clang::DiagnosticsEngine::Level, char const (&) [133u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<26u>(clang::DiagnosticsEngine::Level, char const (&) [26u])
unsigned int clang::DiagnosticsEngine::getCustomDiagID<54u>(clang::DiagnosticsEngine::Level, char const (&) [54u])
Line
Count
Source
866
250
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
250
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
250
                                  StringRef(FormatString, N - 1));
869
250
  }
unsigned int clang::DiagnosticsEngine::getCustomDiagID<68u>(clang::DiagnosticsEngine::Level, char const (&) [68u])
Line
Count
Source
866
78
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
78
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
78
                                  StringRef(FormatString, N - 1));
869
78
  }
unsigned int clang::DiagnosticsEngine::getCustomDiagID<113u>(clang::DiagnosticsEngine::Level, char const (&) [113u])
Line
Count
Source
866
164
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
164
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
164
                                  StringRef(FormatString, N - 1));
869
164
  }
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<73u>(clang::DiagnosticsEngine::Level, char const (&) [73u])
unsigned int clang::DiagnosticsEngine::getCustomDiagID<82u>(clang::DiagnosticsEngine::Level, char const (&) [82u])
Line
Count
Source
866
6
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
6
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
6
                                  StringRef(FormatString, N - 1));
869
6
  }
unsigned int clang::DiagnosticsEngine::getCustomDiagID<141u>(clang::DiagnosticsEngine::Level, char const (&) [141u])
Line
Count
Source
866
22
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
22
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
22
                                  StringRef(FormatString, N - 1));
869
22
  }
unsigned int clang::DiagnosticsEngine::getCustomDiagID<96u>(clang::DiagnosticsEngine::Level, char const (&) [96u])
Line
Count
Source
866
2
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
2
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
2
                                  StringRef(FormatString, N - 1));
869
2
  }
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<86u>(clang::DiagnosticsEngine::Level, char const (&) [86u])
Unexecuted instantiation: unsigned int clang::DiagnosticsEngine::getCustomDiagID<83u>(clang::DiagnosticsEngine::Level, char const (&) [83u])
unsigned int clang::DiagnosticsEngine::getCustomDiagID<30u>(clang::DiagnosticsEngine::Level, char const (&) [30u])
Line
Count
Source
866
1
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
1
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
1
                                  StringRef(FormatString, N - 1));
869
1
  }
unsigned int clang::DiagnosticsEngine::getCustomDiagID<124u>(clang::DiagnosticsEngine::Level, char const (&) [124u])
Line
Count
Source
866
10
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
10
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
10
                                  StringRef(FormatString, N - 1));
869
10
  }
unsigned int clang::DiagnosticsEngine::getCustomDiagID<95u>(clang::DiagnosticsEngine::Level, char const (&) [95u])
Line
Count
Source
866
2
  unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
867
2
    return Diags->getCustomDiagID((DiagnosticIDs::Level)L,
868
2
                                  StringRef(FormatString, N - 1));
869
2
  }
870
871
  /// Converts a diagnostic argument (as an intptr_t) into the string
872
  /// that represents it.
873
  void ConvertArgToString(ArgumentKind Kind, intptr_t Val,
874
                          StringRef Modifier, StringRef Argument,
875
                          ArrayRef<ArgumentValue> PrevArgs,
876
                          SmallVectorImpl<char> &Output,
877
168k
                          ArrayRef<intptr_t> QualTypeVals) const {
878
168k
    ArgToStringFn(Kind, Val, Modifier, Argument, PrevArgs, Output,
879
168k
                  ArgToStringCookie, QualTypeVals);
880
168k
  }
881
882
85.5k
  void SetArgToStringFn(ArgToStringFnTy Fn, void *Cookie) {
883
85.5k
    ArgToStringFn = Fn;
884
85.5k
    ArgToStringCookie = Cookie;
885
85.5k
  }
886
887
  /// Note that the prior diagnostic was emitted by some other
888
  /// \c DiagnosticsEngine, and we may be attaching a note to that diagnostic.
889
1.16M
  void notePriorDiagnosticFrom(const DiagnosticsEngine &Other) {
890
1.16M
    LastDiagLevel = Other.LastDiagLevel;
891
1.16M
  }
892
893
  /// Reset the state of the diagnostic object to its initial
894
  /// configuration.
895
  void Reset();
896
897
  //===--------------------------------------------------------------------===//
898
  // DiagnosticsEngine classification and reporting interfaces.
899
  //
900
901
  /// Determine whether the diagnostic is known to be ignored.
902
  ///
903
  /// This can be used to opportunistically avoid expensive checks when it's
904
  /// known for certain that the diagnostic has been suppressed at the
905
  /// specified location \p Loc.
906
  ///
907
  /// \param Loc The source location we are interested in finding out the
908
  /// diagnostic state. Can be null in order to query the latest state.
909
171M
  bool isIgnored(unsigned DiagID, SourceLocation Loc) const {
910
171M
    return Diags->getDiagnosticSeverity(DiagID, Loc, *this) ==
911
171M
           diag::Severity::Ignored;
912
171M
  }
913
914
  /// Based on the way the client configured the DiagnosticsEngine
915
  /// object, classify the specified diagnostic ID into a Level, consumable by
916
  /// the DiagnosticConsumer.
917
  ///
918
  /// To preserve invariant assumptions, this function should not be used to
919
  /// influence parse or semantic analysis actions. Instead consider using
920
  /// \c isIgnored().
921
  ///
922
  /// \param Loc The source location we are interested in finding out the
923
  /// diagnostic state. Can be null in order to query the latest state.
924
3.17M
  Level getDiagnosticLevel(unsigned DiagID, SourceLocation Loc) const {
925
3.17M
    return (Level)Diags->getDiagnosticLevel(DiagID, Loc, *this);
926
3.17M
  }
927
928
  /// Issue the message to the client.
929
  ///
930
  /// This actually returns an instance of DiagnosticBuilder which emits the
931
  /// diagnostics (through @c ProcessDiag) when it is destroyed.
932
  ///
933
  /// \param DiagID A member of the @c diag::kind enum.
934
  /// \param Loc Represents the source location associated with the diagnostic,
935
  /// which can be an invalid location if no position information is available.
936
  inline DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID);
937
  inline DiagnosticBuilder Report(unsigned DiagID);
938
939
  void Report(const StoredDiagnostic &storedDiag);
940
941
  /// Determine whethere there is already a diagnostic in flight.
942
21
  bool isDiagnosticInFlight() const {
943
21
    return CurDiagID != std::numeric_limits<unsigned>::max();
944
21
  }
945
946
  /// Set the "delayed" diagnostic that will be emitted once
947
  /// the current diagnostic completes.
948
  ///
949
  ///  If a diagnostic is already in-flight but the front end must
950
  ///  report a problem (e.g., with an inconsistent file system
951
  ///  state), this routine sets a "delayed" diagnostic that will be
952
  ///  emitted after the current diagnostic completes. This should
953
  ///  only be used for fatal errors detected at inconvenient
954
  ///  times. If emitting a delayed diagnostic causes a second delayed
955
  ///  diagnostic to be introduced, that second delayed diagnostic
956
  ///  will be ignored.
957
  ///
958
  /// \param DiagID The ID of the diagnostic being delayed.
959
  ///
960
  /// \param Arg1 A string argument that will be provided to the
961
  /// diagnostic. A copy of this string will be stored in the
962
  /// DiagnosticsEngine object itself.
963
  ///
964
  /// \param Arg2 A string argument that will be provided to the
965
  /// diagnostic. A copy of this string will be stored in the
966
  /// DiagnosticsEngine object itself.
967
  ///
968
  /// \param Arg3 A string argument that will be provided to the
969
  /// diagnostic. A copy of this string will be stored in the
970
  /// DiagnosticsEngine object itself.
971
  void SetDelayedDiagnostic(unsigned DiagID, StringRef Arg1 = "",
972
                            StringRef Arg2 = "", StringRef Arg3 = "");
973
974
  /// Clear out the current diagnostic.
975
9.51M
  void Clear() { CurDiagID = std::numeric_limits<unsigned>::max(); }
976
977
  /// Return the value associated with this diagnostic flag.
978
11.2k
  StringRef getFlagValue() const { return FlagValue; }
979
980
private:
981
  // This is private state used by DiagnosticBuilder.  We put it here instead of
982
  // in DiagnosticBuilder in order to keep DiagnosticBuilder a small lightweight
983
  // object.  This implementation choice means that we can only have one
984
  // diagnostic "in flight" at a time, but this seems to be a reasonable
985
  // tradeoff to keep these objects small.  Assertions verify that only one
986
  // diagnostic is in flight at a time.
987
  friend class Diagnostic;
988
  friend class DiagnosticBuilder;
989
  friend class DiagnosticErrorTrap;
990
  friend class DiagnosticIDs;
991
  friend class PartialDiagnostic;
992
993
  /// Report the delayed diagnostic.
994
  void ReportDelayed();
995
996
  /// The location of the current diagnostic that is in flight.
997
  SourceLocation CurDiagLoc;
998
999
  /// The ID of the current diagnostic that is in flight.
1000
  ///
1001
  /// This is set to std::numeric_limits<unsigned>::max() when there is no
1002
  /// diagnostic in flight.
1003
  unsigned CurDiagID;
1004
1005
  enum {
1006
    /// The maximum number of arguments we can hold.
1007
    ///
1008
    /// We currently only support up to 10 arguments (%0-%9).  A single
1009
    /// diagnostic with more than that almost certainly has to be simplified
1010
    /// anyway.
1011
    MaxArguments = DiagnosticStorage::MaxArguments,
1012
  };
1013
1014
  DiagnosticStorage DiagStorage;
1015
1016
3.86M
  DiagnosticMapping makeUserMapping(diag::Severity Map, SourceLocation L) {
1017
3.86M
    bool isPragma = L.isValid();
1018
3.86M
    DiagnosticMapping Mapping =
1019
3.86M
        DiagnosticMapping::Make(Map, /*IsUser=*/true, isPragma);
1020
1021
    // If this is a pragma mapping, then set the diagnostic mapping flags so
1022
    // that we override command line options.
1023
3.86M
    if (isPragma) {
1024
1.23M
      Mapping.setNoWarningAsError(true);
1025
1.23M
      Mapping.setNoErrorAsFatal(true);
1026
1.23M
    }
1027
1028
3.86M
    return Mapping;
1029
3.86M
  }
1030
1031
  /// Used to report a diagnostic that is finally fully formed.
1032
  ///
1033
  /// \returns true if the diagnostic was emitted, false if it was suppressed.
1034
9.35M
  bool ProcessDiag() {
1035
9.35M
    return Diags->ProcessDiag(*this);
1036
9.35M
  }
1037
1038
  /// @name Diagnostic Emission
1039
  /// @{
1040
protected:
1041
  friend class ASTReader;
1042
  friend class ASTWriter;
1043
1044
  // Sema requires access to the following functions because the current design
1045
  // of SFINAE requires it to use its own SemaDiagnosticBuilder, which needs to
1046
  // access us directly to ensure we minimize the emitted code for the common
1047
  // Sema::Diag() patterns.
1048
  friend class Sema;
1049
1050
  /// Emit the current diagnostic and clear the diagnostic state.
1051
  ///
1052
  /// \param Force Emit the diagnostic regardless of suppression settings.
1053
  bool EmitCurrentDiagnostic(bool Force = false);
1054
1055
163k
  unsigned getCurrentDiagID() const { return CurDiagID; }
1056
1057
99
  SourceLocation getCurrentDiagLoc() const { return CurDiagLoc; }
1058
1059
  /// @}
1060
};
1061
1062
/// RAII class that determines when any errors have occurred
1063
/// between the time the instance was created and the time it was
1064
/// queried.
1065
///
1066
/// Note that you almost certainly do not want to use this. It's usually
1067
/// meaningless to ask whether a particular scope triggered an error message,
1068
/// because error messages outside that scope can mark things invalid (or cause
1069
/// us to reach an error limit), which can suppress errors within that scope.
1070
class DiagnosticErrorTrap {
1071
  DiagnosticsEngine &Diag;
1072
  unsigned NumErrors;
1073
  unsigned NumUnrecoverableErrors;
1074
1075
public:
1076
  explicit DiagnosticErrorTrap(DiagnosticsEngine &Diag)
1077
1.10M
      : Diag(Diag) { reset(); }
1078
1079
  /// Determine whether any errors have occurred since this
1080
  /// object instance was created.
1081
70
  bool hasErrorOccurred() const {
1082
70
    return Diag.TrapNumErrorsOccurred > NumErrors;
1083
70
  }
1084
1085
  /// Determine whether any unrecoverable errors have occurred since this
1086
  /// object instance was created.
1087
92.2M
  bool hasUnrecoverableErrorOccurred() const {
1088
92.2M
    return Diag.TrapNumUnrecoverableErrorsOccurred > NumUnrecoverableErrors;
1089
92.2M
  }
1090
1091
  /// Set to initial state of "no errors occurred".
1092
43.2M
  void reset() {
1093
43.2M
    NumErrors = Diag.TrapNumErrorsOccurred;
1094
43.2M
    NumUnrecoverableErrors = Diag.TrapNumUnrecoverableErrorsOccurred;
1095
43.2M
  }
1096
};
1097
1098
/// The streaming interface shared between DiagnosticBuilder and
1099
/// PartialDiagnostic. This class is not intended to be constructed directly
1100
/// but only as base class of DiagnosticBuilder and PartialDiagnostic builder.
1101
///
1102
/// Any new type of argument accepted by DiagnosticBuilder and PartialDiagnostic
1103
/// should be implemented as a '<<' operator of StreamingDiagnostic, e.g.
1104
///
1105
/// const StreamingDiagnostic&
1106
/// operator<<(const StreamingDiagnostic&, NewArgType);
1107
///
1108
class StreamingDiagnostic {
1109
public:
1110
  /// An allocator for DiagnosticStorage objects, which uses a small cache to
1111
  /// objects, used to reduce malloc()/free() traffic for partial diagnostics.
1112
  class DiagStorageAllocator {
1113
    static const unsigned NumCached = 16;
1114
    DiagnosticStorage Cached[NumCached];
1115
    DiagnosticStorage *FreeList[NumCached];
1116
    unsigned NumFreeListEntries;
1117
1118
  public:
1119
    DiagStorageAllocator();
1120
    ~DiagStorageAllocator();
1121
1122
    /// Allocate new storage.
1123
1.50M
    DiagnosticStorage *Allocate() {
1124
1.50M
      if (NumFreeListEntries == 0)
1125
26.2k
        return new DiagnosticStorage;
1126
1127
1.48M
      DiagnosticStorage *Result = FreeList[--NumFreeListEntries];
1128
1.48M
      Result->NumDiagArgs = 0;
1129
1.48M
      Result->DiagRanges.clear();
1130
1.48M
      Result->FixItHints.clear();
1131
1.48M
      return Result;
1132
1.50M
    }
1133
1134
    /// Free the given storage object.
1135
1.50M
    void Deallocate(DiagnosticStorage *S) {
1136
1.50M
      if (S >= Cached && 
S <= Cached + NumCached1.48M
) {
1137
1.48M
        FreeList[NumFreeListEntries++] = S;
1138
1.48M
        return;
1139
1.48M
      }
1140
1141
24.5k
      delete S;
1142
24.5k
    }
1143
  };
1144
1145
protected:
1146
  mutable DiagnosticStorage *DiagStorage = nullptr;
1147
1148
  /// Allocator used to allocate storage for this diagnostic.
1149
  DiagStorageAllocator *Allocator = nullptr;
1150
1151
public:
1152
  /// Retrieve storage for this particular diagnostic.
1153
1.50M
  DiagnosticStorage *getStorage() const {
1154
1.50M
    if (DiagStorage)
1155
4
      return DiagStorage;
1156
1157
1.50M
    assert(Allocator);
1158
0
    DiagStorage = Allocator->Allocate();
1159
1.50M
    return DiagStorage;
1160
1.50M
  }
1161
1162
24.5M
  void freeStorage() {
1163
24.5M
    if (!DiagStorage)
1164
7.38M
      return;
1165
1166
    // The hot path for PartialDiagnostic is when we just used it to wrap an ID
1167
    // (typically so we have the flexibility of passing a more complex
1168
    // diagnostic into the callee, but that does not commonly occur).
1169
    //
1170
    // Split this out into a slow function for silly compilers (*cough*) which
1171
    // can't do decent partial inlining.
1172
17.1M
    freeStorageSlow();
1173
17.1M
  }
1174
1175
17.1M
  void freeStorageSlow() {
1176
17.1M
    if (!Allocator)
1177
15.6M
      return;
1178
1.50M
    Allocator->Deallocate(DiagStorage);
1179
1.50M
    DiagStorage = nullptr;
1180
1.50M
  }
1181
1182
5.36M
  void AddTaggedVal(uint64_t V, DiagnosticsEngine::ArgumentKind Kind) const {
1183
5.36M
    if (!DiagStorage)
1184
1.26M
      DiagStorage = getStorage();
1185
1186
5.36M
    assert(DiagStorage->NumDiagArgs < DiagnosticStorage::MaxArguments &&
1187
5.36M
           "Too many arguments to diagnostic!");
1188
0
    DiagStorage->DiagArgumentsKind[DiagStorage->NumDiagArgs] = Kind;
1189
5.36M
    DiagStorage->DiagArgumentsVal[DiagStorage->NumDiagArgs++] = V;
1190
5.36M
  }
1191
1192
1.94M
  void AddString(StringRef V) const {
1193
1.94M
    if (!DiagStorage)
1194
105k
      DiagStorage = getStorage();
1195
1196
1.94M
    assert(DiagStorage->NumDiagArgs < DiagnosticStorage::MaxArguments &&
1197
1.94M
           "Too many arguments to diagnostic!");
1198
0
    DiagStorage->DiagArgumentsKind[DiagStorage->NumDiagArgs] =
1199
1.94M
        DiagnosticsEngine::ak_std_string;
1200
1.94M
    DiagStorage->DiagArgumentsStr[DiagStorage->NumDiagArgs++] = std::string(V);
1201
1.94M
  }
1202
1203
1.79M
  void AddSourceRange(const CharSourceRange &R) const {
1204
1.79M
    if (!DiagStorage)
1205
38.4k
      DiagStorage = getStorage();
1206
1207
1.79M
    DiagStorage->DiagRanges.push_back(R);
1208
1.79M
  }
1209
1210
474k
  void AddFixItHint(const FixItHint &Hint) const {
1211
474k
    if (Hint.isNull())
1212
47.5k
      return;
1213
1214
427k
    if (!DiagStorage)
1215
123
      DiagStorage = getStorage();
1216
1217
427k
    DiagStorage->FixItHints.push_back(Hint);
1218
427k
  }
1219
1220
  /// Conversion of StreamingDiagnostic to bool always returns \c true.
1221
  ///
1222
  /// This allows is to be used in boolean error contexts (where \c true is
1223
  /// used to indicate that an error has occurred), like:
1224
  /// \code
1225
  /// return Diag(...);
1226
  /// \endcode
1227
116
  operator bool() const { return true; }
1228
1229
protected:
1230
10.2M
  StreamingDiagnostic() = default;
1231
1232
  /// Construct with an external storage not owned by itself. The allocator
1233
  /// is a null pointer in this case.
1234
  explicit StreamingDiagnostic(DiagnosticStorage *Storage)
1235
9.51M
      : DiagStorage(Storage) {}
1236
1237
  /// Construct with a storage allocator which will manage the storage. The
1238
  /// allocator is not a null pointer in this case.
1239
  explicit StreamingDiagnostic(DiagStorageAllocator &Alloc)
1240
3.82M
      : Allocator(&Alloc) {}
1241
1242
  StreamingDiagnostic(const StreamingDiagnostic &Diag) = default;
1243
  StreamingDiagnostic(StreamingDiagnostic &&Diag) = default;
1244
1245
23.5M
  ~StreamingDiagnostic() { freeStorage(); }
1246
};
1247
1248
//===----------------------------------------------------------------------===//
1249
// DiagnosticBuilder
1250
//===----------------------------------------------------------------------===//
1251
1252
/// A little helper class used to produce diagnostics.
1253
///
1254
/// This is constructed by the DiagnosticsEngine::Report method, and
1255
/// allows insertion of extra information (arguments and source ranges) into
1256
/// the currently "in flight" diagnostic.  When the temporary for the builder
1257
/// is destroyed, the diagnostic is issued.
1258
///
1259
/// Note that many of these will be created as temporary objects (many call
1260
/// sites), so we want them to be small and we never want their address taken.
1261
/// This ensures that compilers with somewhat reasonable optimizers will promote
1262
/// the common fields to registers, eliminating increments of the NumArgs field,
1263
/// for example.
1264
class DiagnosticBuilder : public StreamingDiagnostic {
1265
  friend class DiagnosticsEngine;
1266
  friend class PartialDiagnostic;
1267
1268
  mutable DiagnosticsEngine *DiagObj = nullptr;
1269
1270
  /// Status variable indicating if this diagnostic is still active.
1271
  ///
1272
  // NOTE: This field is redundant with DiagObj (IsActive iff (DiagObj == 0)),
1273
  // but LLVM is not currently smart enough to eliminate the null check that
1274
  // Emit() would end up with if we used that as our status variable.
1275
  mutable bool IsActive = false;
1276
1277
  /// Flag indicating that this diagnostic is being emitted via a
1278
  /// call to ForceEmit.
1279
  mutable bool IsForceEmit = false;
1280
1281
  DiagnosticBuilder() = default;
1282
1283
  explicit DiagnosticBuilder(DiagnosticsEngine *diagObj)
1284
      : StreamingDiagnostic(&diagObj->DiagStorage), DiagObj(diagObj),
1285
9.51M
        IsActive(true) {
1286
9.51M
    assert(diagObj && "DiagnosticBuilder requires a valid DiagnosticsEngine!");
1287
0
    assert(DiagStorage &&
1288
9.51M
           "DiagnosticBuilder requires a valid DiagnosticStorage!");
1289
0
    DiagStorage->NumDiagArgs = 0;
1290
9.51M
    DiagStorage->DiagRanges.clear();
1291
9.51M
    DiagStorage->FixItHints.clear();
1292
9.51M
  }
1293
1294
protected:
1295
  /// Clear out the current diagnostic.
1296
15.6M
  void Clear() const {
1297
15.6M
    DiagObj = nullptr;
1298
15.6M
    IsActive = false;
1299
15.6M
    IsForceEmit = false;
1300
15.6M
  }
1301
1302
  /// Determine whether this diagnostic is still active.
1303
28.9M
  bool isActive() const { return IsActive; }
1304
1305
  /// Force the diagnostic builder to emit the diagnostic now.
1306
  ///
1307
  /// Once this function has been called, the DiagnosticBuilder object
1308
  /// should not be used again before it is destroyed.
1309
  ///
1310
  /// \returns true if a diagnostic was emitted, false if the
1311
  /// diagnostic was suppressed.
1312
15.6M
  bool Emit() {
1313
    // If this diagnostic is inactive, then its soul was stolen by the copy ctor
1314
    // (or by a subclass, as in SemaDiagnosticBuilder).
1315
15.6M
    if (!isActive()) 
return false9.14M
;
1316
1317
    // Process the diagnostic.
1318
6.50M
    bool Result = DiagObj->EmitCurrentDiagnostic(IsForceEmit);
1319
1320
    // This diagnostic is dead.
1321
6.50M
    Clear();
1322
1323
6.50M
    return Result;
1324
15.6M
  }
1325
1326
public:
1327
  /// Copy constructor.  When copied, this "takes" the diagnostic info from the
1328
  /// input and neuters it.
1329
6.12M
  DiagnosticBuilder(const DiagnosticBuilder &D) : StreamingDiagnostic() {
1330
6.12M
    DiagObj = D.DiagObj;
1331
6.12M
    DiagStorage = D.DiagStorage;
1332
6.12M
    IsActive = D.IsActive;
1333
6.12M
    IsForceEmit = D.IsForceEmit;
1334
6.12M
    D.Clear();
1335
6.12M
  }
1336
1337
3.28M
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3.28M
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3.28M
    DB << V;
1341
3.28M
    return *this;
1342
3.28M
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::comments::CommandMarkerKind>(clang::comments::CommandMarkerKind const&) const
Line
Count
Source
1337
81
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
81
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
81
    DB << V;
1341
81
    return *this;
1342
81
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<int>(int const&) const
Line
Count
Source
1337
23.3k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
23.3k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
23.3k
    DB << V;
1341
23.3k
    return *this;
1342
23.3k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::SourceRange>(clang::SourceRange const&) const
Line
Count
Source
1337
238k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
238k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
238k
    DB << V;
1341
238k
    return *this;
1342
238k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<unsigned int>(unsigned int const&) const
Line
Count
Source
1337
94.6k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
94.6k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
94.6k
    DB << V;
1341
94.6k
    return *this;
1342
94.6k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CXXRecordDecl const*>(clang::CXXRecordDecl const* const&) const
Line
Count
Source
1337
189
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
189
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
189
    DB << V;
1341
189
    return *this;
1342
189
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CXXMethodDecl const*>(clang::CXXMethodDecl const* const&) const
Line
Count
Source
1337
47
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
47
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
47
    DB << V;
1341
47
    return *this;
1342
47
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char const*>(char const* const&) const
Line
Count
Source
1337
8.49k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
8.49k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
8.49k
    DB << V;
1341
8.49k
    return *this;
1342
8.49k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [21]>(char const (&) [21]) const
Line
Count
Source
1337
4.59k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4.59k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4.59k
    DB << V;
1341
4.59k
    return *this;
1342
4.59k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [17]>(char const (&) [17]) const
Line
Count
Source
1337
161
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
161
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
161
    DB << V;
1341
161
    return *this;
1342
161
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::SmallString<256u> >(llvm::SmallString<256u> const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [9]>(char const (&) [9]) const
Line
Count
Source
1337
19.5k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
19.5k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
19.5k
    DB << V;
1341
19.5k
    return *this;
1342
19.5k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [10]>(char const (&) [10]) const
Line
Count
Source
1337
338
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
338
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
338
    DB << V;
1341
338
    return *this;
1342
338
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [12]>(char const (&) [12]) const
Line
Count
Source
1337
297
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
297
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
297
    DB << V;
1341
297
    return *this;
1342
297
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [38]>(char const (&) [38]) const
Line
Count
Source
1337
14
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
14
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
14
    DB << V;
1341
14
    return *this;
1342
14
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [11]>(char const (&) [11]) const
Line
Count
Source
1337
53
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
53
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
53
    DB << V;
1341
53
    return *this;
1342
53
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [84]>(char const (&) [84]) const
Line
Count
Source
1337
16
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
16
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
16
    DB << V;
1341
16
    return *this;
1342
16
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [16]>(char const (&) [16]) const
Line
Count
Source
1337
449
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
449
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
449
    DB << V;
1341
449
    return *this;
1342
449
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [14]>(char const (&) [14]) const
Line
Count
Source
1337
90
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
90
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
90
    DB << V;
1341
90
    return *this;
1342
90
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [15]>(char const (&) [15]) const
Line
Count
Source
1337
31
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
31
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
31
    DB << V;
1341
31
    return *this;
1342
31
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [25]>(char const (&) [25]) const
Line
Count
Source
1337
19
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
19
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
19
    DB << V;
1341
19
    return *this;
1342
19
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [23]>(char const (&) [23]) const
Line
Count
Source
1337
78
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
78
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
78
    DB << V;
1341
78
    return *this;
1342
78
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [8]>(char const (&) [8]) const
Line
Count
Source
1337
126
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
126
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
126
    DB << V;
1341
126
    return *this;
1342
126
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [3]>(char const (&) [3]) const
Line
Count
Source
1337
262
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
262
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
262
    DB << V;
1341
262
    return *this;
1342
262
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [6]>(char const (&) [6]) const
Line
Count
Source
1337
1.66k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1.66k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1.66k
    DB << V;
1341
1.66k
    return *this;
1342
1.66k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [27]>(char const (&) [27]) const
Line
Count
Source
1337
15
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
15
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
15
    DB << V;
1341
15
    return *this;
1342
15
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [33]>(char const (&) [33]) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [13]>(char const (&) [13]) const
Line
Count
Source
1337
54
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
54
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
54
    DB << V;
1341
54
    return *this;
1342
54
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [4]>(char const (&) [4]) const
Line
Count
Source
1337
194
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
194
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
194
    DB << V;
1341
194
    return *this;
1342
194
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<bool>(bool const&) const
Line
Count
Source
1337
122k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
122k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
122k
    DB << V;
1341
122k
    return *this;
1342
122k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NamedDecl const*>(clang::NamedDecl const* const&) const
Line
Count
Source
1337
164k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
164k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
164k
    DB << V;
1341
164k
    return *this;
1342
164k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::StringRef>(llvm::StringRef const&) const
Line
Count
Source
1337
69.5k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
69.5k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
69.5k
    DB << V;
1341
69.5k
    return *this;
1342
69.5k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const
Line
Count
Source
1337
1.41M
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1.41M
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1.41M
    DB << V;
1341
1.41M
    return *this;
1342
1.41M
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CharSourceRange>(clang::CharSourceRange const&) const
Line
Count
Source
1337
5.49k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5.49k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5.49k
    DB << V;
1341
5.49k
    return *this;
1342
5.49k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::SmallString<5u> >(llvm::SmallString<5u> const&) const
Line
Count
Source
1337
76
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
76
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
76
    DB << V;
1341
76
    return *this;
1342
76
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [2]>(char const (&) [2]) const
Line
Count
Source
1337
390
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
390
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
390
    DB << V;
1341
390
    return *this;
1342
390
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NumericLiteralParser::CheckSeparatorKind>(clang::NumericLiteralParser::CheckSeparatorKind const&) const
Line
Count
Source
1337
36
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
36
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
36
    DB << V;
1341
36
    return *this;
1342
36
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::IdentifierInfo*>(clang::IdentifierInfo* const&) const
Line
Count
Source
1337
100k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
100k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
100k
    DB << V;
1341
100k
    return *this;
1342
100k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::FixItHint>(clang::FixItHint const&) const
Line
Count
Source
1337
63.6k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
63.6k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
63.6k
    DB << V;
1341
63.6k
    return *this;
1342
63.6k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::SmallString<128u> >(llvm::SmallString<128u> const&) const
Line
Count
Source
1337
11.7k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
11.7k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
11.7k
    DB << V;
1341
11.7k
    return *this;
1342
11.7k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<PPElifDiag>(PPElifDiag const&) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [1]>(char const (&) [1]) const
Line
Count
Source
1337
114
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
114
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
114
    DB << V;
1341
114
    return *this;
1342
114
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::SmallString<32u> >(llvm::SmallString<32u> const&) const
Line
Count
Source
1337
391
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
391
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
391
    DB << V;
1341
391
    return *this;
1342
391
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::IdentifierInfo const*>(clang::IdentifierInfo const* const&) const
Line
Count
Source
1337
791
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
791
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
791
    DB << V;
1341
791
    return *this;
1342
791
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::PPCallbacks::PragmaMessageKind>(clang::PPCallbacks::PragmaMessageKind const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [45]>(char const (&) [45]) const
Line
Count
Source
1337
90
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
90
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
90
    DB << V;
1341
90
    return *this;
1342
90
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [28]>(char const (&) [28]) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [19]>(char const (&) [19]) const
Line
Count
Source
1337
290
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
290
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
290
    DB << V;
1341
290
    return *this;
1342
290
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [26]>(char const (&) [26]) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [31]>(char const (&) [31]) const
Line
Count
Source
1337
16
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
16
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
16
    DB << V;
1341
16
    return *this;
1342
16
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [18]>(char const (&) [18]) const
Line
Count
Source
1337
68
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
68
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
68
    DB << V;
1341
68
    return *this;
1342
68
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [24]>(char const (&) [24]) const
Line
Count
Source
1337
36
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
36
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
36
    DB << V;
1341
36
    return *this;
1342
36
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [29]>(char const (&) [29]) const
Line
Count
Source
1337
63
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
63
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
63
    DB << V;
1341
63
    return *this;
1342
63
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [34]>(char const (&) [34]) const
Line
Count
Source
1337
45
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
45
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
45
    DB << V;
1341
45
    return *this;
1342
45
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [39]>(char const (&) [39]) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [36]>(char const (&) [36]) const
Line
Count
Source
1337
14
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
14
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
14
    DB << V;
1341
14
    return *this;
1342
14
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [54]>(char const (&) [54]) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [60]>(char const (&) [60]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [53]>(char const (&) [53]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [42]>(char const (&) [42]) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [22]>(char const (&) [22]) const
Line
Count
Source
1337
42
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
42
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
42
    DB << V;
1341
42
    return *this;
1342
42
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [35]>(char const (&) [35]) const
Line
Count
Source
1337
22
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
22
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
22
    DB << V;
1341
22
    return *this;
1342
22
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [70]>(char const (&) [70]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [49]>(char const (&) [49]) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [7]>(char const (&) [7]) const
Line
Count
Source
1337
338
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
338
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
338
    DB << V;
1341
338
    return *this;
1342
338
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [32]>(char const (&) [32]) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [63]>(char const (&) [63]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [75]>(char const (&) [75]) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [37]>(char const (&) [37]) const
Line
Count
Source
1337
9
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
9
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
9
    DB << V;
1341
9
    return *this;
1342
9
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [47]>(char const (&) [47]) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [5]>(char const (&) [5]) const
Line
Count
Source
1337
2.27k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2.27k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2.27k
    DB << V;
1341
2.27k
    return *this;
1342
2.27k
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [52]>(char const (&) [52]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [62]>(char const (&) [62]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [44]>(char const (&) [44]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [51]>(char const (&) [51]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [76]>(char const (&) [76]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [100]>(char const (&) [100]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [50]>(char const (&) [50]) const
Line
Count
Source
1337
20
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
20
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
20
    DB << V;
1341
20
    return *this;
1342
20
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [66]>(char const (&) [66]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [81]>(char const (&) [81]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [79]>(char const (&) [79]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [48]>(char const (&) [48]) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [65]>(char const (&) [65]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [43]>(char const (&) [43]) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [59]>(char const (&) [59]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [57]>(char const (&) [57]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [166]>(char const (&) [166]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [40]>(char const (&) [40]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [141]>(char const (&) [141]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [87]>(char const (&) [87]) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [94]>(char const (&) [94]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [102]>(char const (&) [102]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [113]>(char const (&) [113]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [111]>(char const (&) [111]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [112]>(char const (&) [112]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [61]>(char const (&) [61]) const
Line
Count
Source
1337
17
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
17
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
17
    DB << V;
1341
17
    return *this;
1342
17
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [96]>(char const (&) [96]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [83]>(char const (&) [83]) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [98]>(char const (&) [98]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [20]>(char const (&) [20]) const
Line
Count
Source
1337
201
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
201
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
201
    DB << V;
1341
201
    return *this;
1342
201
  }
ASTReader.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ASTReader::diagnoseOdrViolations()::ODRDefinitionDataDifference>(clang::ASTReader::diagnoseOdrViolations()::ODRDefinitionDataDifference const&) const
Line
Count
Source
1337
20
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
20
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
20
    DB << V;
1341
20
    return *this;
1342
20
  }
ASTReader.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ASTReader::diagnoseOdrViolations()::ODRTemplateDifference>(clang::ASTReader::diagnoseOdrViolations()::ODRTemplateDifference const&) const
Line
Count
Source
1337
12
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
12
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
12
    DB << V;
1341
12
    return *this;
1342
12
  }
ASTReader.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ASTReader::diagnoseOdrViolations()::ODRMismatchDeclDifference>(clang::ASTReader::diagnoseOdrViolations()::ODRMismatchDeclDifference const&) const
Line
Count
Source
1337
194
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
194
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
194
    DB << V;
1341
194
    return *this;
1342
194
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::FunctionDecl*>(clang::FunctionDecl* const&) const
Line
Count
Source
1337
220k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
220k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
220k
    DB << V;
1341
220k
    return *this;
1342
220k
  }
ASTReader.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ASTReader::diagnoseOdrViolations()::ODRFunctionDifference>(clang::ASTReader::diagnoseOdrViolations()::ODRFunctionDifference const&) const
Line
Count
Source
1337
70
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
70
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
70
    DB << V;
1341
70
    return *this;
1342
70
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::EnumDecl*>(clang::EnumDecl* const&) const
Line
Count
Source
1337
65
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
65
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
65
    DB << V;
1341
65
    return *this;
1342
65
  }
ASTReader.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ASTReader::diagnoseOdrViolations()::ODREnumDifference>(clang::ASTReader::diagnoseOdrViolations()::ODREnumDifference const&) const
Line
Count
Source
1337
26
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
26
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
26
    DB << V;
1341
26
    return *this;
1342
26
  }
ASTReader.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ASTReader::getInputFile(clang::serialization::ModuleFile&, unsigned int, bool)::Change::ModificationKind>(clang::ASTReader::getInputFile(clang::serialization::ModuleFile&, unsigned int, bool)::Change::ModificationKind const&) const
Line
Count
Source
1337
10
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
10
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
10
    DB << V;
1341
10
    return *this;
1342
10
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NamedDecl*>(clang::NamedDecl* const&) const
Line
Count
Source
1337
117k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
117k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
117k
    DB << V;
1341
117k
    return *this;
1342
117k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DeclContext*>(clang::DeclContext* const&) const
Line
Count
Source
1337
46.8k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
46.8k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
46.8k
    DB << V;
1341
46.8k
    return *this;
1342
46.8k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::QualType>(clang::QualType const&) const
Line
Count
Source
1337
294k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
294k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
294k
    DB << V;
1341
294k
    return *this;
1342
294k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DeclarationName>(clang::DeclarationName const&) const
Line
Count
Source
1337
22.6k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
22.6k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
22.6k
    DB << V;
1341
22.6k
    return *this;
1342
22.6k
  }
ASTReader.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ASTReader::diagnoseOdrViolations()::ODRMismatchDecl>(clang::ASTReader::diagnoseOdrViolations()::ODRMismatchDecl const&) const
Line
Count
Source
1337
88
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
88
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
88
    DB << V;
1341
88
    return *this;
1342
88
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CXXRecordDecl*>(clang::CXXRecordDecl* const&) const
Line
Count
Source
1337
8.51k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
8.51k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
8.51k
    DB << V;
1341
8.51k
    return *this;
1342
8.51k
  }
ASTReader.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ASTReader::diagnoseOdrViolations()::$_10>(clang::ASTReader::diagnoseOdrViolations()::$_10 const&) const
Line
Count
Source
1337
68
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
68
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
68
    DB << V;
1341
68
    return *this;
1342
68
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TemplateArgument>(clang::TemplateArgument const&) const
Line
Count
Source
1337
716
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
716
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
716
    DB << V;
1341
716
    return *this;
1342
716
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::FunctionTemplateDecl*>(clang::FunctionTemplateDecl* const&) const
Line
Count
Source
1337
121
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
121
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
121
    DB << V;
1341
121
    return *this;
1342
121
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Expr*>(clang::Expr* const&) const
Line
Count
Source
1337
313
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
313
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
313
    DB << V;
1341
313
    return *this;
1342
313
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::EnumConstantDecl const*>(clang::EnumConstantDecl const* const&) const
Line
Count
Source
1337
8
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
8
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
8
    DB << V;
1341
8
    return *this;
1342
8
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [69]>(char const (&) [69]) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [68]>(char const (&) [68]) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [107]>(char const (&) [107]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [41]>(char const (&) [41]) const
Line
Count
Source
1337
8
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
8
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
8
    DB << V;
1341
8
    return *this;
1342
8
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [144]>(char const (&) [144]) const
Line
Count
Source
1337
28
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
28
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
28
    DB << V;
1341
28
    return *this;
1342
28
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [30]>(char const (&) [30]) const
Line
Count
Source
1337
30
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
30
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
30
    DB << V;
1341
30
    return *this;
1342
30
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [56]>(char const (&) [56]) const
Line
Count
Source
1337
45
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
45
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
45
    DB << V;
1341
45
    return *this;
1342
45
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::SmallString<64u> >(llvm::SmallString<64u> const&) const
Line
Count
Source
1337
46
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
46
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
46
    DB << V;
1341
46
    return *this;
1342
46
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::SmallString<512u> >(llvm::SmallString<512u> const&) const
Line
Count
Source
1337
200
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
200
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
200
    DB << V;
1341
200
    return *this;
1342
200
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::MSPropertyDecl const*>(clang::MSPropertyDecl const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
ParseOpenMP.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<(anonymous namespace)::OMPContextLvl>((anonymous namespace)::OMPContextLvl const&) const
Line
Count
Source
1337
172
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
172
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
172
    DB << V;
1341
172
    return *this;
1342
172
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::PragmaClangSectionKind>(clang::Sema::PragmaClangSectionKind const&) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
ParsePragma.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<(anonymous namespace)::TokFPAnnotValue::FlagKinds>((anonymous namespace)::TokFPAnnotValue::FlagKinds const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
ParseStmt.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<(anonymous namespace)::MisleadingStatementKind>((anonymous namespace)::MisleadingStatementKind const&) const
Line
Count
Source
1337
46
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
46
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
46
    DB << V;
1341
46
    return *this;
1342
46
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::tok::TokenKind>(clang::tok::TokenKind const&) const
Line
Count
Source
1337
43.2k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
43.2k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
43.2k
    DB << V;
1341
43.2k
    return *this;
1342
43.2k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Parser::ExtraSemiKind>(clang::Parser::ExtraSemiKind const&) const
Line
Count
Source
1337
1.38k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1.38k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1.38k
    DB << V;
1341
1.38k
    return *this;
1342
1.38k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCMethodDecl const*>(clang::ObjCMethodDecl const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [46]>(char const (&) [46]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NoDestroyAttr const*>(clang::NoDestroyAttr const* const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NotTailCalledAttr const*>(clang::NotTailCalledAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [86]>(char const (&) [86]) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CFUnknownTransferAttr const*>(clang::CFUnknownTransferAttr const* const&) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CFAuditedTransferAttr const*>(clang::CFAuditedTransferAttr const* const&) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TargetClonesAttr const*>(clang::TargetClonesAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TargetAttr const*>(clang::TargetAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CPUSpecificAttr const*>(clang::CPUSpecificAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CPUDispatchAttr const*>(clang::CPUDispatchAttr const* const&) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CUDASharedAttr const*>(clang::CUDASharedAttr const* const&) const
Line
Count
Source
1337
6
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
6
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
6
    DB << V;
1341
6
    return *this;
1342
6
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::HIPManagedAttr const*>(clang::HIPManagedAttr const* const&) const
Line
Count
Source
1337
8
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
8
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
8
    DB << V;
1341
8
    return *this;
1342
8
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CUDAGlobalAttr const*>(clang::CUDAGlobalAttr const* const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CUDADeviceBuiltinTextureTypeAttr const*>(clang::CUDADeviceBuiltinTextureTypeAttr const* const&) const
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CUDADeviceBuiltinSurfaceTypeAttr const*>(clang::CUDADeviceBuiltinSurfaceTypeAttr const* const&) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CUDADeviceAttr const*>(clang::CUDADeviceAttr const* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CUDAHostAttr const*>(clang::CUDAHostAttr const* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CUDAConstantAttr const*>(clang::CUDAConstantAttr const* const&) const
Line
Count
Source
1337
8
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
8
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
8
    DB << V;
1341
8
    return *this;
1342
8
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::HotAttr const*>(clang::HotAttr const* const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::InternalLinkageAttr const*>(clang::InternalLinkageAttr const* const&) const
Line
Count
Source
1337
6
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
6
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
6
    DB << V;
1341
6
    return *this;
1342
6
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [58]>(char const (&) [58]) const
Line
Count
Source
1337
230
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
230
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
230
    DB << V;
1341
230
    return *this;
1342
230
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NakedAttr const*>(clang::NakedAttr const* const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ColdAttr const*>(clang::ColdAttr const* const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CommonAttr const*>(clang::CommonAttr const* const&) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Mips16Attr const*>(clang::Mips16Attr const* const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::MipsInterruptAttr const*>(clang::MipsInterruptAttr const* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::MicroMipsAttr const*>(clang::MicroMipsAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::MipsShortCallAttr const*>(clang::MipsShortCallAttr const* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::MipsLongCallAttr const*>(clang::MipsLongCallAttr const* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DisableTailCallsAttr const*>(clang::DisableTailCallsAttr const* const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AlwaysDestroyAttr const*>(clang::AlwaysDestroyAttr const* const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::SpeculativeLoadHardeningAttr const*>(clang::SpeculativeLoadHardeningAttr const* const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AlwaysInlineAttr const*>(clang::AlwaysInlineAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [71]>(char const (&) [71]) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [92]>(char const (&) [92]) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [67]>(char const (&) [67]) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::PointerAttr const*>(clang::PointerAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::OwnerAttr const*>(clang::OwnerAttr const* const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [77]>(char const (&) [77]) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NoSpeculativeLoadHardeningAttr const*>(clang::NoSpeculativeLoadHardeningAttr const* const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char [150]>(char const (&) [150]) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ValueDecl*>(clang::ValueDecl* const&) const
Line
Count
Source
1337
7.80k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
7.80k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
7.80k
    DB << V;
1341
7.80k
    return *this;
1342
7.80k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CanonicalDeclPtr<clang::FunctionDecl> >(clang::CanonicalDeclPtr<clang::FunctionDecl> const&) const
Line
Count
Source
1337
116
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
116
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
116
    DB << V;
1341
116
    return *this;
1342
116
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::FunctionDecl const*>(clang::FunctionDecl const* const&) const
Line
Count
Source
1337
10.4k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
10.4k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
10.4k
    DB << V;
1341
10.4k
    return *this;
1342
10.4k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::VarDecl const*>(clang::VarDecl const* const&) const
Line
Count
Source
1337
5.08k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5.08k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5.08k
    DB << V;
1341
5.08k
    return *this;
1342
5.08k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ASTContext::SectionInfo>(clang::ASTContext::SectionInfo const&) const
Line
Count
Source
1337
23
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
23
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
23
    DB << V;
1341
23
    return *this;
1342
23
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ParsedAttr>(clang::ParsedAttr const&) const
Line
Count
Source
1337
18.6k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
18.6k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
18.6k
    DB << V;
1341
18.6k
    return *this;
1342
18.6k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::SmallVector<clang::FixItHint, 12u> >(llvm::SmallVector<clang::FixItHint, 12u> const&) const
Line
Count
Source
1337
29.4k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
29.4k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
29.4k
    DB << V;
1341
29.4k
    return *this;
1342
29.4k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<CastType>(CastType const&) const
Line
Count
Source
1337
399
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
399
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
399
    DB << V;
1341
399
    return *this;
1342
399
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::SmallString<16u> >(llvm::SmallString<16u> const&) const
Line
Count
Source
1337
223
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
223
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
223
    DB << V;
1341
223
    return *this;
1342
223
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::ArrayRef<clang::FixItHint> >(llvm::ArrayRef<clang::FixItHint> const&) const
Line
Count
Source
1337
26.3k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
26.3k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
26.3k
    DB << V;
1341
26.3k
    return *this;
1342
26.3k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<AbsoluteValueKind>(AbsoluteValueKind const&) const
Line
Count
Source
1337
768
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
768
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
768
    DB << V;
1341
768
    return *this;
1342
768
  }
SemaChecking.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::DiagnoseAlwaysNonNullPointer(clang::Expr*, clang::Expr::NullPointerConstantKind, bool, clang::SourceRange)::$_19>(clang::Sema::DiagnoseAlwaysNonNullPointer(clang::Expr*, clang::Expr::NullPointerConstantKind, bool, clang::SourceRange)::$_19 const&) const
Line
Count
Source
1337
253
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
253
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
253
    DB << V;
1341
253
    return *this;
1342
253
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ConceptSpecializationExpr*>(clang::ConceptSpecializationExpr* const&) const
Line
Count
Source
1337
38
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
38
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
38
    DB << V;
1341
38
    return *this;
1342
38
  }
SemaCoroutine.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<isValidCoroutineContext(clang::Sema&, clang::SourceLocation, llvm::StringRef)::InvalidFuncDiag>(isValidCoroutineContext(clang::Sema&, clang::SourceLocation, llvm::StringRef)::InvalidFuncDiag const&) const
Line
Count
Source
1337
42
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
42
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
42
    DB << V;
1341
42
    return *this;
1342
42
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::LabelDecl*>(clang::LabelDecl* const&) const
Line
Count
Source
1337
377
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
377
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
377
    DB << V;
1341
377
    return *this;
1342
377
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AlignedAttr const*>(clang::AlignedAttr const* const&) const
Line
Count
Source
1337
8
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
8
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
8
    DB << V;
1341
8
    return *this;
1342
8
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AlignedAttr*>(clang::AlignedAttr* const&) const
Line
Count
Source
1337
27
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
27
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
27
    DB << V;
1341
27
    return *this;
1342
27
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DLLImportAttr const*>(clang::DLLImportAttr const* const&) const
Line
Count
Source
1337
511
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
511
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
511
    DB << V;
1341
511
    return *this;
1342
511
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Attr const*>(clang::Attr const* const&) const
Line
Count
Source
1337
19
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
19
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
19
    DB << V;
1341
19
    return *this;
1342
19
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::FieldDecl const*>(clang::FieldDecl const* const&) const
Line
Count
Source
1337
159
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
159
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
159
    DB << V;
1341
159
    return *this;
1342
159
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ErrorAttr*>(clang::ErrorAttr* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AnyX86NoCallerSavedRegistersAttr*>(clang::AnyX86NoCallerSavedRegistersAttr* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CXX11NoReturnAttr const*>(clang::CXX11NoReturnAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::VarDecl*>(clang::VarDecl* const&) const
Line
Count
Source
1337
7.46k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
7.46k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
7.46k
    DB << V;
1341
7.46k
    return *this;
1342
7.46k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TypedefNameDecl*>(clang::TypedefNameDecl* const&) const
Line
Count
Source
1337
75
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
75
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
75
    DB << V;
1341
75
    return *this;
1342
75
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TemplateName>(clang::TemplateName const&) const
Line
Count
Source
1337
379
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
379
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
379
    DB << V;
1341
379
    return *this;
1342
379
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::InheritableAttr const*>(clang::InheritableAttr const* const&) const
Line
Count
Source
1337
431
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
431
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
431
    DB << V;
1341
431
    return *this;
1342
431
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<ShadowedDeclKind>(ShadowedDeclKind const&) const
Line
Count
Source
1337
149
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
149
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
149
    DB << V;
1341
149
    return *this;
1342
149
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DeclContext const*>(clang::DeclContext const* const&) const
Line
Count
Source
1337
52
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
52
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
52
    DB << V;
1341
52
    return *this;
1342
52
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::StorageClass>(clang::StorageClass const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::NonTrivialCUnionContext>(clang::Sema::NonTrivialCUnionContext const&) const
Line
Count
Source
1337
81
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
81
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
81
    DB << V;
1341
81
    return *this;
1342
81
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::SmallVector<clang::FixItHint, 1u> >(llvm::SmallVector<clang::FixItHint, 1u> const&) const
Line
Count
Source
1337
17
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
17
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
17
    DB << V;
1341
17
    return *this;
1342
17
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::UsedAttr*>(clang::UsedAttr* const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::RetainAttr*>(clang::RetainAttr* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ParmVarDecl*>(clang::ParmVarDecl* const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ParmVarDecl const*>(clang::ParmVarDecl const* const&) const
Line
Count
Source
1337
49
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
49
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
49
    DB << V;
1341
49
    return *this;
1342
49
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TypedefDecl*>(clang::TypedefDecl* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TagTypeKind>(clang::TagTypeKind const&) const
Line
Count
Source
1337
80
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
80
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
80
    DB << V;
1341
80
    return *this;
1342
80
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::NonTagKind>(clang::Sema::NonTagKind const&) const
Line
Count
Source
1337
28
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
28
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
28
    DB << V;
1341
28
    return *this;
1342
28
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TagDecl*>(clang::TagDecl* const&) const
Line
Count
Source
1337
12
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
12
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
12
    DB << V;
1341
12
    return *this;
1342
12
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::CXXSpecialMember>(clang::Sema::CXXSpecialMember const&) const
Line
Count
Source
1337
621
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
621
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
621
    DB << V;
1341
621
    return *this;
1342
621
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::RecordDecl*>(clang::RecordDecl* const&) const
Line
Count
Source
1337
23
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
23
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
23
    DB << V;
1341
23
    return *this;
1342
23
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::EnumConstantDecl*>(clang::EnumConstantDecl* const&) const
Line
Count
Source
1337
25
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
25
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
25
    DB << V;
1341
25
    return *this;
1342
25
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AttributeArgumentNType>(clang::AttributeArgumentNType const&) const
Line
Count
Source
1337
7
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
7
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
7
    DB << V;
1341
7
    return *this;
1342
7
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::OwnershipAttr const*>(clang::OwnershipAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::VecReturnAttr*>(clang::VecReturnAttr* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AttributeDeclKind>(clang::AttributeDeclKind const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
SemaDeclAttr.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<handleXReturnsXRetainedAttr(clang::Sema&, clang::Decl*, clang::ParsedAttr const&)::$_3>(handleXReturnsXRetainedAttr(clang::Sema&, clang::Decl*, clang::ParsedAttr const&)::$_3 const&) const
Line
Count
Source
1337
13
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
13
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
13
    DB << V;
1341
13
    return *this;
1342
13
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::SwiftAsyncAttr const*>(clang::SwiftAsyncAttr const* const&) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::SwiftAsyncErrorAttr const*>(clang::SwiftAsyncErrorAttr const* const&) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<unsigned long long>(unsigned long long const&) const
Line
Count
Source
1337
22
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
22
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
22
    DB << V;
1341
22
    return *this;
1342
22
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AttributeCommonInfo>(clang::AttributeCommonInfo const&) const
Line
Count
Source
1337
9
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
9
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
9
    DB << V;
1341
9
    return *this;
1342
9
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ErrorAttr const*>(clang::ErrorAttr const* const&) const
Line
Count
Source
1337
11
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
11
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
11
    DB << V;
1341
11
    return *this;
1342
11
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::SwiftNameAttr const*>(clang::SwiftNameAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AlwaysInlineAttr*>(clang::AlwaysInlineAttr* const&) const
Line
Count
Source
1337
6
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
6
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
6
    DB << V;
1341
6
    return *this;
1342
6
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::MinSizeAttr*>(clang::MinSizeAttr* const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ParameterABIAttr*>(clang::ParameterABIAttr* const&) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DLLImportAttr*>(clang::DLLImportAttr* const&) const
Line
Count
Source
1337
169
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
169
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
169
    DB << V;
1341
169
    return *this;
1342
169
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ReqdWorkGroupSizeAttr const*>(clang::ReqdWorkGroupSizeAttr const* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::WorkGroupSizeHintAttr const*>(clang::WorkGroupSizeHintAttr const* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::VecTypeHintAttr const*>(clang::VecTypeHintAttr const* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::OpenCLIntelReqdSubGroupSizeAttr const*>(clang::OpenCLIntelReqdSubGroupSizeAttr const* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AMDGPUFlatWorkGroupSizeAttr const*>(clang::AMDGPUFlatWorkGroupSizeAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AMDGPUWavesPerEUAttr const*>(clang::AMDGPUWavesPerEUAttr const* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AMDGPUNumSGPRAttr const*>(clang::AMDGPUNumSGPRAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AMDGPUNumVGPRAttr const*>(clang::AMDGPUNumVGPRAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::AbstractDiagSelID>(clang::Sema::AbstractDiagSelID const&) const
Line
Count
Source
1337
16
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
16
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
16
    DB << V;
1341
16
    return *this;
1342
16
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ClassTemplateDecl*>(clang::ClassTemplateDecl* const&) const
Line
Count
Source
1337
62
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
62
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
62
    DB << V;
1341
62
    return *this;
1342
62
  }
SemaDeclCXX.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<(anonymous namespace)::DefaultedComparisonSubobject::$_8>((anonymous namespace)::DefaultedComparisonSubobject::$_8 const&) const
Line
Count
Source
1337
40
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
40
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
40
    DB << V;
1341
40
    return *this;
1342
40
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<TrivialSubobjectKind>(TrivialSubobjectKind const&) const
Line
Count
Source
1337
215
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
215
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
215
    DB << V;
1341
215
    return *this;
1342
215
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CXXConstructorDecl*>(clang::CXXConstructorDecl* const&) const
Line
Count
Source
1337
7
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
7
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
7
    DB << V;
1341
7
    return *this;
1342
7
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DecompositionDecl*>(clang::DecompositionDecl* const&) const
Line
Count
Source
1337
7
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
7
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
7
    DB << V;
1341
7
    return *this;
1342
7
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AccessSpecifier>(clang::AccessSpecifier const&) const
Line
Count
Source
1337
8
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
8
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
8
    DB << V;
1341
8
    return *this;
1342
8
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Attr*>(clang::Attr* const&) const
Line
Count
Source
1337
40
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
40
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
40
    DB << V;
1341
40
    return *this;
1342
40
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::InheritableAttr*>(clang::InheritableAttr* const&) const
Line
Count
Source
1337
24
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
24
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
24
    DB << V;
1341
24
    return *this;
1342
24
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ClassTemplateSpecializationDecl*>(clang::ClassTemplateSpecializationDecl* const&) const
Line
Count
Source
1337
79
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
79
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
79
    DB << V;
1341
79
    return *this;
1342
79
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::FieldDecl*>(clang::FieldDecl* const&) const
Line
Count
Source
1337
602
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
602
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
602
    DB << V;
1341
602
    return *this;
1342
602
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TemplateDecl*>(clang::TemplateDecl* const&) const
Line
Count
Source
1337
1.17k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1.17k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1.17k
    DB << V;
1341
1.17k
    return *this;
1342
1.17k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCMethodDecl*>(clang::ObjCMethodDecl* const&) const
Line
Count
Source
1337
2.65k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2.65k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2.65k
    DB << V;
1341
2.65k
    return *this;
1342
2.65k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCInterfaceDecl const*>(clang::ObjCInterfaceDecl const* const&) const
Line
Count
Source
1337
8
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
8
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
8
    DB << V;
1341
8
    return *this;
1342
8
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCCategoryDecl*>(clang::ObjCCategoryDecl* const&) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCProtocolDecl const*>(clang::ObjCProtocolDecl const* const&) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCMethodFamily>(clang::ObjCMethodFamily const&) const
Line
Count
Source
1337
48
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
48
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
48
    DB << V;
1341
48
    return *this;
1342
48
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCProtocolDecl*>(clang::ObjCProtocolDecl* const&) const
Line
Count
Source
1337
39
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
39
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
39
    DB << V;
1341
39
    return *this;
1342
39
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Selector>(clang::Selector const&) const
Line
Count
Source
1337
3.64k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3.64k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3.64k
    DB << V;
1341
3.64k
    return *this;
1342
3.64k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCIvarDecl const*>(clang::ObjCIvarDecl const* const&) const
Line
Count
Source
1337
10
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
10
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
10
    DB << V;
1341
10
    return *this;
1342
10
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ValueDecl const*>(clang::ValueDecl const* const&) const
Line
Count
Source
1337
11.2k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
11.2k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
11.2k
    DB << V;
1341
11.2k
    return *this;
1342
11.2k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CanQual<clang::Type> >(clang::CanQual<clang::Type> const&) const
Line
Count
Source
1337
91
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
91
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
91
    DB << V;
1341
91
    return *this;
1342
91
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::SmallString<40u> >(llvm::SmallString<40u> const&) const
Line
Count
Source
1337
8.71k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
8.71k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
8.71k
    DB << V;
1341
8.71k
    return *this;
1342
8.71k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::SourceLocation>(clang::SourceLocation const&) const
Line
Count
Source
1337
645
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
645
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
645
    DB << V;
1341
645
    return *this;
1342
645
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<OriginalExprKind>(OriginalExprKind const&) const
Line
Count
Source
1337
11
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
11
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
11
    DB << V;
1341
11
    return *this;
1342
11
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TypeAliasTemplateDecl*>(clang::TypeAliasTemplateDecl* const&) const
Line
Count
Source
1337
7
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
7
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
7
    DB << V;
1341
7
    return *this;
1342
7
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::UsingPackDecl*>(clang::UsingPackDecl* const&) const
Line
Count
Source
1337
2
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
2
    DB << V;
1341
2
    return *this;
1342
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::VariadicCallType>(clang::Sema::VariadicCallType const&) const
Line
Count
Source
1337
6
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
6
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
6
    DB << V;
1341
6
    return *this;
1342
6
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::AssignmentAction>(clang::Sema::AssignmentAction const&) const
Line
Count
Source
1337
13
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
13
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
13
    DB << V;
1341
13
    return *this;
1342
13
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::ObjCLiteralKind>(clang::Sema::ObjCLiteralKind const&) const
Line
Count
Source
1337
79
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
79
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
79
    DB << V;
1341
79
    return *this;
1342
79
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCBridgeCastKind>(clang::ObjCBridgeCastKind const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
SemaInit.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<(anonymous namespace)::ReferenceKind>((anonymous namespace)::ReferenceKind const&) const
Line
Count
Source
1337
126
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
126
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
126
    DB << V;
1341
126
    return *this;
1342
126
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Qualifiers::ObjCLifetime>(clang::Qualifiers::ObjCLifetime const&) const
Line
Count
Source
1337
251
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
251
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
251
    DB << V;
1341
251
    return *this;
1342
251
  }
SemaObjCProperty.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<SelectPropertyForSynthesisFromProtocols(clang::Sema&, clang::SourceLocation, clang::ObjCInterfaceDecl*, clang::ObjCPropertyDecl*)::MismatchKind>(SelectPropertyForSynthesisFromProtocols(clang::Sema&, clang::SourceLocation, clang::ObjCInterfaceDecl*, clang::ObjCPropertyDecl*)::MismatchKind const&) const
Line
Count
Source
1337
24
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
24
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
24
    DB << V;
1341
24
    return *this;
1342
24
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCPropertyDecl*>(clang::ObjCPropertyDecl* const&) const
Line
Count
Source
1337
31
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
31
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
31
    DB << V;
1341
31
    return *this;
1342
31
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCIvarDecl*>(clang::ObjCIvarDecl* const&) const
Line
Count
Source
1337
46
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
46
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
46
    DB << V;
1341
46
    return *this;
1342
46
  }
SemaOpenMP.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<reportOriginalDsa(clang::Sema&, (anonymous namespace)::DSAStackTy const*, clang::ValueDecl const*, (anonymous namespace)::DSAStackTy::DSAVarData const&, bool)::$_38>(reportOriginalDsa(clang::Sema&, (anonymous namespace)::DSAStackTy const*, clang::ValueDecl const*, (anonymous namespace)::DSAStackTy::DSAVarData const&, bool)::$_38 const&) const
Line
Count
Source
1337
1.08k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1.08k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1.08k
    DB << V;
1341
1.08k
    return *this;
1342
1.08k
  }
SemaOpenMP.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<getPrivateItem(clang::Sema&, clang::Expr*&, clang::SourceLocation&, clang::SourceRange&, bool)::$_42>(getPrivateItem(clang::Sema&, clang::Expr*&, clang::SourceLocation&, clang::SourceRange&, bool)::$_42 const&) const
Line
Count
Source
1337
24
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
24
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
24
    DB << V;
1341
24
    return *this;
1342
24
  }
SemaOpenMP.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<checkNestingOfRegions(clang::Sema&, (anonymous namespace)::DSAStackTy const*, llvm::omp::Directive, clang::DeclarationNameInfo const&, llvm::omp::Directive, clang::OpenMPBindClauseKind, clang::SourceLocation)::$_41>(checkNestingOfRegions(clang::Sema&, (anonymous namespace)::DSAStackTy const*, llvm::omp::Directive, clang::DeclarationNameInfo const&, llvm::omp::Directive, clang::OpenMPBindClauseKind, clang::SourceLocation)::$_41 const&) const
Line
Count
Source
1337
6.16k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
6.16k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
6.16k
    DB << V;
1341
6.16k
    return *this;
1342
6.16k
  }
SemaOpenMP.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<(anonymous namespace)::OpenMPAtomicUpdateChecker::ExprAnalysisErrorCode>((anonymous namespace)::OpenMPAtomicUpdateChecker::ExprAnalysisErrorCode const&) const
Line
Count
Source
1337
904
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
904
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
904
    DB << V;
1341
904
    return *this;
1342
904
  }
SemaOpenMP.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::ActOnOpenMPAtomicDirective(llvm::ArrayRef<clang::OMPClause*>, clang::Stmt*, clang::SourceLocation, clang::SourceLocation)::$_19>(clang::Sema::ActOnOpenMPAtomicDirective(llvm::ArrayRef<clang::OMPClause*>, clang::Stmt*, clang::SourceLocation, clang::SourceLocation)::$_19 const&) const
Line
Count
Source
1337
98
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
98
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
98
    DB << V;
1341
98
    return *this;
1342
98
  }
SemaOpenMP.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::ActOnOpenMPAtomicDirective(llvm::ArrayRef<clang::OMPClause*>, clang::Stmt*, clang::SourceLocation, clang::SourceLocation)::$_20>(clang::Sema::ActOnOpenMPAtomicDirective(llvm::ArrayRef<clang::OMPClause*>, clang::Stmt*, clang::SourceLocation, clang::SourceLocation)::$_20 const&) const
Line
Count
Source
1337
64
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
64
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
64
    DB << V;
1341
64
    return *this;
1342
64
  }
SemaOpenMP.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::ActOnOpenMPAtomicDirective(llvm::ArrayRef<clang::OMPClause*>, clang::Stmt*, clang::SourceLocation, clang::SourceLocation)::$_21>(clang::Sema::ActOnOpenMPAtomicDirective(llvm::ArrayRef<clang::OMPClause*>, clang::Stmt*, clang::SourceLocation, clang::SourceLocation)::$_21 const&) const
Line
Count
Source
1337
96
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
96
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
96
    DB << V;
1341
96
    return *this;
1342
96
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::CCEKind>(clang::Sema::CCEKind const&) const
Line
Count
Source
1337
137
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
137
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
137
    DB << V;
1341
137
    return *this;
1342
137
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Qualifiers>(clang::Qualifiers const&) const
Line
Count
Source
1337
9
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
9
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
9
    DB << V;
1341
9
    return *this;
1342
9
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::CUDAFunctionTarget>(clang::Sema::CUDAFunctionTarget const&) const
Line
Count
Source
1337
254
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
254
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
254
    DB << V;
1341
254
    return *this;
1342
254
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CXXMethodDecl*>(clang::CXXMethodDecl* const&) const
Line
Count
Source
1337
23
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
23
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
23
    DB << V;
1341
23
    return *this;
1342
23
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::WarnUnusedResultAttr const*>(clang::WarnUnusedResultAttr const* const&) const
Line
Count
Source
1337
125
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
125
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
125
    DB << V;
1341
125
    return *this;
1342
125
  }
SemaStmt.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<(anonymous namespace)::BeginEndFunction>((anonymous namespace)::BeginEndFunction const&) const
Line
Count
Source
1337
40
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
40
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
40
    DB << V;
1341
40
    return *this;
1342
40
  }
SemaStmt.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::checkMustTailAttr(clang::Stmt const*, clang::Attr const&)::FuncType::$_6>(clang::Sema::checkMustTailAttr(clang::Stmt const*, clang::Attr const&)::FuncType::$_6 const&) const
Line
Count
Source
1337
12
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
12
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
12
    DB << V;
1341
12
    return *this;
1342
12
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::sema::FunctionScopeInfo::'unnamed'>(clang::sema::FunctionScopeInfo::'unnamed' const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
SemaStmtAsm.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<checkExprMemoryConstraintCompat(clang::Sema&, clang::Expr*, clang::TargetInfo::ConstraintInfo&, bool)::$_2>(checkExprMemoryConstraintCompat(clang::Sema&, clang::Expr*, clang::TargetInfo::ConstraintInfo&, bool)::$_2 const&) const
Line
Count
Source
1337
6
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
6
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
6
    DB << V;
1341
6
    return *this;
1342
6
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::LikelyAttr const*>(clang::LikelyAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::UnlikelyAttr const*>(clang::UnlikelyAttr const* const&) const
Line
Count
Source
1337
1
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
1
    DB << V;
1341
1
    return *this;
1342
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NamespaceDecl*>(clang::NamespaceDecl* const&) const
Line
Count
Source
1337
39
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
39
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
39
    DB << V;
1341
39
    return *this;
1342
39
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NestedNameSpecifier*>(clang::NestedNameSpecifier* const&) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ConceptDecl*>(clang::ConceptDecl* const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::VarTemplateSpecializationDecl*>(clang::VarTemplateSpecializationDecl* const&) const
Line
Count
Source
1337
3
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
3
    DB << V;
1341
3
    return *this;
1342
3
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TemplateTemplateParmDecl*>(clang::TemplateTemplateParmDecl* const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
SemaTemplate.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::CheckDependentFunctionTemplateSpecialization(clang::FunctionDecl*, clang::TemplateArgumentListInfo const&, clang::LookupResult&)::DiscardReason>(clang::Sema::CheckDependentFunctionTemplateSpecialization(clang::FunctionDecl*, clang::TemplateArgumentListInfo const&, clang::LookupResult&)::DiscardReason const&) const
Line
Count
Source
1337
4
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
4
    DB << V;
1341
4
    return *this;
1342
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::VarTemplateDecl*>(clang::VarTemplateDecl* const&) const
Line
Count
Source
1337
21
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
21
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
21
    DB << V;
1341
21
    return *this;
1342
21
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DeducedTemplateArgument>(clang::DeducedTemplateArgument const&) const
Line
Count
Source
1337
19
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
19
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
19
    DB << V;
1341
19
    return *this;
1342
19
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::MSPropertyDecl*>(clang::MSPropertyDecl* const&) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCInterfaceDecl*>(clang::ObjCInterfaceDecl* const&) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
SemaType.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<(anonymous namespace)::QualifiedFunctionKind>((anonymous namespace)::QualifiedFunctionKind const&) const
Line
Count
Source
1337
24
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
24
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
24
    DB << V;
1341
24
    return *this;
1342
24
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<TypeDiagSelector>(TypeDiagSelector const&) const
Line
Count
Source
1337
32
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
32
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
32
    DB << V;
1341
32
    return *this;
1342
32
  }
SemaType.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<GetFullTypeForDeclarator((anonymous namespace)::TypeProcessingState&, clang::QualType, clang::TypeSourceInfo*)::$_7>(GetFullTypeForDeclarator((anonymous namespace)::TypeProcessingState&, clang::QualType, clang::TypeSourceInfo*)::$_7 const&) const
Line
Count
Source
1337
50
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
50
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
50
    DB << V;
1341
50
    return *this;
1342
50
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ArrayType::ArraySizeModifier>(clang::ArrayType::ArraySizeModifier const&) const
Line
Count
Source
1337
5
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
5
    DB << V;
1341
5
    return *this;
1342
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::ArrayRef<clang::SourceRange> >(llvm::ArrayRef<clang::SourceRange> const&) const
Line
Count
Source
1337
20.9k
  template <typename T> const DiagnosticBuilder &operator<<(const T &V) const {
1338
20.9k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1339
0
    const StreamingDiagnostic &DB = *this;
1340
20.9k
    DB << V;
1341
20.9k
    return *this;
1342
20.9k
  }
1343
1344
  // It is necessary to limit this to rvalue reference to avoid calling this
1345
  // function with a bitfield lvalue argument since non-const reference to
1346
  // bitfield is not allowed.
1347
  template <typename T, typename = typename std::enable_if<
1348
                            !std::is_lvalue_reference<T>::value>::type>
1349
3.87M
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
3.87M
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
3.87M
    DB << std::move(V);
1353
3.87M
    return *this;
1354
3.87M
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::comments::CommandMarkerKind, void>(clang::comments::CommandMarkerKind&&) const
Line
Count
Source
1349
498
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
498
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
498
    DB << std::move(V);
1353
498
    return *this;
1354
498
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<unsigned int, void>(unsigned int&&) const
Line
Count
Source
1349
1.10M
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
1.10M
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
1.10M
    DB << std::move(V);
1353
1.10M
    return *this;
1354
1.10M
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::QualType, void>(clang::QualType&&) const
Line
Count
Source
1349
110k
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
110k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
110k
    DB << std::move(V);
1353
110k
    return *this;
1354
110k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::IdentifierInfo*, void>(clang::IdentifierInfo*&&) const
Line
Count
Source
1349
155k
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
155k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
155k
    DB << std::move(V);
1353
155k
    return *this;
1354
155k
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::VTableComponent::Kind, void>(clang::VTableComponent::Kind&&) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::Error, void>(llvm::Error&&) const
Line
Count
Source
1349
6
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
6
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
6
    DB << std::move(V);
1353
6
    return *this;
1354
6
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::SourceRange, void>(clang::SourceRange&&) const
Line
Count
Source
1349
1.09M
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
1.09M
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
1.09M
    DB << std::move(V);
1353
1.09M
    return *this;
1354
1.09M
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<char const*, void>(char const*&&) const
Line
Count
Source
1349
14.1k
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
14.1k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
14.1k
    DB << std::move(V);
1353
14.1k
    return *this;
1354
14.1k
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DiagnosticOptions::'unnamed', void>(clang::DiagnosticOptions::'unnamed'&&) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&&) const
Line
Count
Source
1349
166k
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
166k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
166k
    DB << std::move(V);
1353
166k
    return *this;
1354
166k
  }
Lexer.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<maybeDiagnoseIDCharCompat(clang::DiagnosticsEngine&, unsigned int, clang::CharSourceRange, bool)::$_0, void>(maybeDiagnoseIDCharCompat(clang::DiagnosticsEngine&, unsigned int, clang::CharSourceRange, bool)::$_0&&) const
Line
Count
Source
1349
7
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
7
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
7
    DB << std::move(V);
1353
7
    return *this;
1354
7
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::StringRef, void>(llvm::StringRef&&) const
Line
Count
Source
1349
117k
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
117k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
117k
    DB << std::move(V);
1353
117k
    return *this;
1354
117k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<int, void>(int&&) const
Line
Count
Source
1349
552k
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
552k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
552k
    DB << std::move(V);
1353
552k
    return *this;
1354
552k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::FixItHint, void>(clang::FixItHint&&) const
Line
Count
Source
1349
408k
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
408k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
408k
    DB << std::move(V);
1353
408k
    return *this;
1354
408k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CharSourceRange, void>(clang::CharSourceRange&&) const
Line
Count
Source
1349
549
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
549
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
549
    DB << std::move(V);
1353
549
    return *this;
1354
549
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<PPElifDiag, void>(PPElifDiag&&) const
Line
Count
Source
1349
1
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
1
    DB << std::move(V);
1353
1
    return *this;
1354
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<bool, void>(bool&&) const
Line
Count
Source
1349
81.6k
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
81.6k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
81.6k
    DB << std::move(V);
1353
81.6k
    return *this;
1354
81.6k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::SourceLocation, void>(clang::SourceLocation&&) const
Line
Count
Source
1349
353
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
353
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
353
    DB << std::move(V);
1353
353
    return *this;
1354
353
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::tok::TokenKind, void>(clang::tok::TokenKind&&) const
Line
Count
Source
1349
962
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
962
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
962
    DB << std::move(V);
1353
962
    return *this;
1354
962
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&&) const
Line
Count
Source
1349
3
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
3
    DB << std::move(V);
1353
3
    return *this;
1354
3
  }
ASTReader.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ASTReader::diagnoseOdrViolations()::$_11, void>(clang::ASTReader::diagnoseOdrViolations()::$_11&&) const
Line
Count
Source
1349
6
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
6
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
6
    DB << std::move(V);
1353
6
    return *this;
1354
6
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DeclarationName, void>(clang::DeclarationName&&) const
Line
Count
Source
1349
57.3k
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
57.3k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
57.3k
    DB << std::move(V);
1353
57.3k
    return *this;
1354
57.3k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::ObjCContainerKind, void>(clang::Sema::ObjCContainerKind&&) const
Line
Count
Source
1349
37
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
37
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
37
    DB << std::move(V);
1353
37
    return *this;
1354
37
  }
ParseOpenMP.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<(anonymous namespace)::OMPContextLvl, void>((anonymous namespace)::OMPContextLvl&&) const
Line
Count
Source
1349
606
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
606
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
606
    DB << std::move(V);
1353
606
    return *this;
1354
606
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AttributeDeclKind, void>(clang::AttributeDeclKind&&) const
Line
Count
Source
1349
69
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
69
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
69
    DB << std::move(V);
1353
69
    return *this;
1354
69
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<CastType, void>(CastType&&) const
Line
Count
Source
1349
138
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
138
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
138
    DB << std::move(V);
1353
138
    return *this;
1354
138
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Expr*, void>(clang::Expr*&&) const
Line
Count
Source
1349
59
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
59
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
59
    DB << std::move(V);
1353
59
    return *this;
1354
59
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::AssignmentAction, void>(clang::Sema::AssignmentAction&&) const
Line
Count
Source
1349
114
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
114
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
114
    DB << std::move(V);
1353
114
    return *this;
1354
114
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ConceptDecl*, void>(clang::ConceptDecl*&&) const
Line
Count
Source
1349
56
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
56
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
56
    DB << std::move(V);
1353
56
    return *this;
1354
56
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::VarDecl*, void>(clang::VarDecl*&&) const
Line
Count
Source
1349
515
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
515
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
515
    DB << std::move(V);
1353
515
    return *this;
1354
515
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Attr const*, void>(clang::Attr const*&&) const
Line
Count
Source
1349
841
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
841
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
841
    DB << std::move(V);
1353
841
    return *this;
1354
841
  }
SemaDecl.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<CheckMultiVersionValue(clang::Sema&, clang::FunctionDecl const*)::ErrType, void>(CheckMultiVersionValue(clang::Sema&, clang::FunctionDecl const*)::ErrType&&) const
Line
Count
Source
1349
1
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
1
    DB << std::move(V);
1353
1
    return *this;
1354
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NestedNameSpecifier*, void>(clang::NestedNameSpecifier*&&) const
Line
Count
Source
1349
386
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
386
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
386
    DB << std::move(V);
1353
386
    return *this;
1354
386
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::RecordDecl const*, void>(clang::RecordDecl const*&&) const
Line
Count
Source
1349
4
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
4
    DB << std::move(V);
1353
4
    return *this;
1354
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::DeclContext*, void>(clang::DeclContext*&&) const
Line
Count
Source
1349
180
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
180
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
180
    DB << std::move(V);
1353
180
    return *this;
1354
180
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<ShadowedDeclKind, void>(ShadowedDeclKind&&) const
Line
Count
Source
1349
48
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
48
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
48
    DB << std::move(V);
1353
48
    return *this;
1354
48
  }
SemaDecl.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::areMultiversionVariantFunctionsCompatible(clang::FunctionDecl const*, clang::FunctionDecl const*, clang::PartialDiagnostic const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, bool, bool, bool)::DoesntSupport, void>(clang::Sema::areMultiversionVariantFunctionsCompatible(clang::FunctionDecl const*, clang::FunctionDecl const*, clang::PartialDiagnostic const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, bool, bool, bool)::DoesntSupport&&) const
Line
Count
Source
1349
28
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
28
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
28
    DB << std::move(V);
1353
28
    return *this;
1354
28
  }
SemaDecl.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::areMultiversionVariantFunctionsCompatible(clang::FunctionDecl const*, clang::FunctionDecl const*, clang::PartialDiagnostic const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, bool, bool, bool)::Different, void>(clang::Sema::areMultiversionVariantFunctionsCompatible(clang::FunctionDecl const*, clang::FunctionDecl const*, clang::PartialDiagnostic const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, std::__1::pair<clang::SourceLocation, clang::PartialDiagnostic> const&, bool, bool, bool)::Different&&) const
Line
Count
Source
1349
27
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
27
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
27
    DB << std::move(V);
1353
27
    return *this;
1354
27
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NamedDecl const*, void>(clang::NamedDecl const*&&) const
Line
Count
Source
1349
44
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
44
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
44
    DB << std::move(V);
1353
44
    return *this;
1354
44
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CUDALaunchBoundsAttr const*, void>(clang::CUDALaunchBoundsAttr const*&&) const
Line
Count
Source
1349
7
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
7
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
7
    DB << std::move(V);
1353
7
    return *this;
1354
7
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AMDGPUFlatWorkGroupSizeAttr const*, void>(clang::AMDGPUFlatWorkGroupSizeAttr const*&&) const
Line
Count
Source
1349
11
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
11
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
11
    DB << std::move(V);
1353
11
    return *this;
1354
11
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AMDGPUWavesPerEUAttr const*, void>(clang::AMDGPUWavesPerEUAttr const*&&) const
Line
Count
Source
1349
11
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
11
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
11
    DB << std::move(V);
1353
11
    return *this;
1354
11
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ParsedAttr const*, void>(clang::ParsedAttr const*&&) const
Line
Count
Source
1349
85
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
85
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
85
    DB << std::move(V);
1353
85
    return *this;
1354
85
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<AttributeLangSupport::LANG, void>(AttributeLangSupport::LANG&&) const
Line
Count
Source
1349
3
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
3
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
3
    DB << std::move(V);
1353
3
    return *this;
1354
3
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TypedefNameDecl*, void>(clang::TypedefNameDecl*&&) const
Line
Count
Source
1349
30
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
30
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
30
    DB << std::move(V);
1353
30
    return *this;
1354
30
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AssumeAlignedAttr*, void>(clang::AssumeAlignedAttr*&&) const
Line
Count
Source
1349
5
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
5
    DB << std::move(V);
1353
5
    return *this;
1354
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AllocAlignAttr*, void>(clang::AllocAlignAttr*&&) const
Line
Count
Source
1349
5
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
5
    DB << std::move(V);
1353
5
    return *this;
1354
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AllocAlignAttr const*, void>(clang::AllocAlignAttr const*&&) const
Line
Count
Source
1349
5
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
5
    DB << std::move(V);
1353
5
    return *this;
1354
5
  }
SemaDeclAttr.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::checkTargetAttr(clang::SourceLocation, llvm::StringRef)::FirstParam, void>(clang::Sema::checkTargetAttr(clang::SourceLocation, llvm::StringRef)::FirstParam&&) const
Line
Count
Source
1349
13
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
13
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
13
    DB << std::move(V);
1353
13
    return *this;
1354
13
  }
SemaDeclAttr.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::checkTargetAttr(clang::SourceLocation, llvm::StringRef)::SecondParam, void>(clang::Sema::checkTargetAttr(clang::SourceLocation, llvm::StringRef)::SecondParam&&) const
Line
Count
Source
1349
13
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
13
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
13
    DB << std::move(V);
1353
13
    return *this;
1354
13
  }
SemaDeclAttr.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::checkTargetAttr(clang::SourceLocation, llvm::StringRef)::ThirdParam, void>(clang::Sema::checkTargetAttr(clang::SourceLocation, llvm::StringRef)::ThirdParam&&) const
Line
Count
Source
1349
13
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
13
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
13
    DB << std::move(V);
1353
13
    return *this;
1354
13
  }
SemaDeclAttr.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::checkTargetClonesAttrString(clang::SourceLocation, llvm::StringRef, clang::StringLiteral const*, bool&, bool&, llvm::SmallVectorImpl<llvm::StringRef>&)::FirstParam, void>(clang::Sema::checkTargetClonesAttrString(clang::SourceLocation, llvm::StringRef, clang::StringLiteral const*, bool&, bool&, llvm::SmallVectorImpl<llvm::StringRef>&)::FirstParam&&) const
Line
Count
Source
1349
5
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
5
    DB << std::move(V);
1353
5
    return *this;
1354
5
  }
SemaDeclAttr.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::checkTargetClonesAttrString(clang::SourceLocation, llvm::StringRef, clang::StringLiteral const*, bool&, bool&, llvm::SmallVectorImpl<llvm::StringRef>&)::SecondParam, void>(clang::Sema::checkTargetClonesAttrString(clang::SourceLocation, llvm::StringRef, clang::StringLiteral const*, bool&, bool&, llvm::SmallVectorImpl<llvm::StringRef>&)::SecondParam&&) const
Line
Count
Source
1349
5
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
5
    DB << std::move(V);
1353
5
    return *this;
1354
5
  }
SemaDeclAttr.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::checkTargetClonesAttrString(clang::SourceLocation, llvm::StringRef, clang::StringLiteral const*, bool&, bool&, llvm::SmallVectorImpl<llvm::StringRef>&)::ThirdParam, void>(clang::Sema::checkTargetClonesAttrString(clang::SourceLocation, llvm::StringRef, clang::StringLiteral const*, bool&, bool&, llvm::SmallVectorImpl<llvm::StringRef>&)::ThirdParam&&) const
Line
Count
Source
1349
5
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
5
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
5
    DB << std::move(V);
1353
5
    return *this;
1354
5
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AlignValueAttr*, void>(clang::AlignValueAttr*&&) const
Line
Count
Source
1349
1
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
1
    DB << std::move(V);
1353
1
    return *this;
1354
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AlignedAttr*, void>(clang::AlignedAttr*&&) const
Line
Count
Source
1349
18
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
18
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
18
    DB << std::move(V);
1353
18
    return *this;
1354
18
  }
Unexecuted instantiation: clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::InternalLinkageAttr const*, void>(clang::InternalLinkageAttr const*&&) const
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::SwiftNameAttr const*, void>(clang::SwiftNameAttr const*&&) const
Line
Count
Source
1349
1
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
1
    DB << std::move(V);
1353
1
    return *this;
1354
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::FieldDecl*, void>(clang::FieldDecl*&&) const
Line
Count
Source
1349
388
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
388
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
388
    DB << std::move(V);
1353
388
    return *this;
1354
388
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AccessSpecifier, void>(clang::AccessSpecifier&&) const
Line
Count
Source
1349
8
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
8
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
8
    DB << std::move(V);
1353
8
    return *this;
1354
8
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NamespaceDecl*, void>(clang::NamespaceDecl*&&) const
Line
Count
Source
1349
1
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
1
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
1
    DB << std::move(V);
1353
1
    return *this;
1354
1
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CanQual<clang::Type>, void>(clang::CanQual<clang::Type>&&) const
Line
Count
Source
1349
11
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
11
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
11
    DB << std::move(V);
1353
11
    return *this;
1354
11
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<std::__1::pair<clang::NullabilityKind, bool>, void>(std::__1::pair<clang::NullabilityKind, bool>&&) const
Line
Count
Source
1349
144
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
144
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
144
    DB << std::move(V);
1353
144
    return *this;
1354
144
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TagTypeKind, void>(clang::TagTypeKind&&) const
Line
Count
Source
1349
275
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
275
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
275
    DB << std::move(V);
1353
275
    return *this;
1354
275
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ObjCMethodDecl const*, void>(clang::ObjCMethodDecl const*&&) const
Line
Count
Source
1349
2
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
2
    DB << std::move(V);
1353
2
    return *this;
1354
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Selector, void>(clang::Selector&&) const
Line
Count
Source
1349
170
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
170
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
170
    DB << std::move(V);
1353
170
    return *this;
1354
170
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::IdentifierInfo const*, void>(clang::IdentifierInfo const*&&) const
Line
Count
Source
1349
140
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
140
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
140
    DB << std::move(V);
1353
140
    return *this;
1354
140
  }
SemaExpr.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<$_14, void>($_14&&) const
Line
Count
Source
1349
347
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
347
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
347
    DB << std::move(V);
1353
347
    return *this;
1354
347
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::NonTagKind, void>(clang::Sema::NonTagKind&&) const
Line
Count
Source
1349
7
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
7
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
7
    DB << std::move(V);
1353
7
    return *this;
1354
7
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ValueDecl const*, void>(clang::ValueDecl const*&&) const
Line
Count
Source
1349
64
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
64
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
64
    DB << std::move(V);
1353
64
    return *this;
1354
64
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ValueDecl*, void>(clang::ValueDecl*&&) const
Line
Count
Source
1349
242
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
242
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
242
    DB << std::move(V);
1353
242
    return *this;
1354
242
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Qualifiers, void>(clang::Qualifiers&&) const
Line
Count
Source
1349
72
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
72
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
72
    DB << std::move(V);
1353
72
    return *this;
1354
72
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::QualType const, void>(clang::QualType const&&) const
Line
Count
Source
1349
42
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
42
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
42
    DB << std::move(V);
1353
42
    return *this;
1354
42
  }
SemaOpenMP.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::checkOpenMPDeclareVariantFunction(clang::OpaquePtr<clang::DeclGroupRef>, clang::Expr*, clang::OMPTraitInfo&, unsigned int, clang::SourceRange)::DoesntSupport, void>(clang::Sema::checkOpenMPDeclareVariantFunction(clang::OpaquePtr<clang::DeclGroupRef>, clang::Expr*, clang::OMPTraitInfo&, unsigned int, clang::SourceRange)::DoesntSupport&&) const
Line
Count
Source
1349
12
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
12
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
12
    DB << std::move(V);
1353
12
    return *this;
1354
12
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CXXRecordDecl*, void>(clang::CXXRecordDecl*&&) const
Line
Count
Source
1349
670
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
670
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
670
    DB << std::move(V);
1353
670
    return *this;
1354
670
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::ParmVarDecl*, void>(clang::ParmVarDecl*&&) const
Line
Count
Source
1349
383
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
383
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
383
    DB << std::move(V);
1353
383
    return *this;
1354
383
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::LangAS, void>(clang::LangAS&&) const
Line
Count
Source
1349
104
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
104
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
104
    DB << std::move(V);
1353
104
    return *this;
1354
104
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Qualifiers::ObjCLifetime, void>(clang::Qualifiers::ObjCLifetime&&) const
Line
Count
Source
1349
34
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
34
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
34
    DB << std::move(V);
1353
34
    return *this;
1354
34
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Qualifiers::GC, void>(clang::Qualifiers::GC&&) const
Line
Count
Source
1349
4
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
4
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
4
    DB << std::move(V);
1353
4
    return *this;
1354
4
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TemplateDecl*, void>(clang::TemplateDecl*&&) const
Line
Count
Source
1349
6
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
6
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
6
    DB << std::move(V);
1353
6
    return *this;
1354
6
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::RefQualifierKind, void>(clang::RefQualifierKind&&) const
Line
Count
Source
1349
22
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
22
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
22
    DB << std::move(V);
1353
22
    return *this;
1354
22
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::NamedDecl*, void>(clang::NamedDecl*&&) const
Line
Count
Source
1349
490
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
490
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
490
    DB << std::move(V);
1353
490
    return *this;
1354
490
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::CXXSpecialMember, void>(clang::Sema::CXXSpecialMember&&) const
Line
Count
Source
1349
1.06k
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
1.06k
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
1.06k
    DB << std::move(V);
1353
1.06k
    return *this;
1354
1.06k
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::CXXRecordDecl const*, void>(clang::CXXRecordDecl const*&&) const
Line
Count
Source
1349
52
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
52
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
52
    DB << std::move(V);
1353
52
    return *this;
1354
52
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::MSPropertyDecl*, void>(clang::MSPropertyDecl*&&) const
Line
Count
Source
1349
25
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
25
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
25
    DB << std::move(V);
1353
25
    return *this;
1354
25
  }
SemaStmt.cpp:clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<(anonymous namespace)::BeginEndFunction, void>((anonymous namespace)::BeginEndFunction&&) const
Line
Count
Source
1349
6
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
6
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
6
    DB << std::move(V);
1353
6
    return *this;
1354
6
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::TypeAliasTemplateDecl*, void>(clang::TypeAliasTemplateDecl*&&) const
Line
Count
Source
1349
14
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
14
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
14
    DB << std::move(V);
1353
14
    return *this;
1354
14
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::FunctionDecl*, void>(clang::FunctionDecl*&&) const
Line
Count
Source
1349
299
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
299
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
299
    DB << std::move(V);
1353
299
    return *this;
1354
299
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::BindingDecl*, void>(clang::BindingDecl*&&) const
Line
Count
Source
1349
10
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
10
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
10
    DB << std::move(V);
1353
10
    return *this;
1354
10
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<TypeDiagSelector, void>(TypeDiagSelector&&) const
Line
Count
Source
1349
25
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
25
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
25
    DB << std::move(V);
1353
25
    return *this;
1354
25
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<llvm::IntegerType::'unnamed', void>(llvm::IntegerType::'unnamed'&&) const
Line
Count
Source
1349
2
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
2
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
2
    DB << std::move(V);
1353
2
    return *this;
1354
2
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::Sema::CUDAFunctionTarget, void>(clang::Sema::CUDAFunctionTarget&&) const
Line
Count
Source
1349
99
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
99
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
99
    DB << std::move(V);
1353
99
    return *this;
1354
99
  }
clang::DiagnosticBuilder const& clang::DiagnosticBuilder::operator<<<clang::AttributeArgumentNType, void>(clang::AttributeArgumentNType&&) const
Line
Count
Source
1349
172
  const DiagnosticBuilder &operator<<(T &&V) const {
1350
172
    assert(isActive() && "Clients must not add to cleared diagnostic!");
1351
0
    const StreamingDiagnostic &DB = *this;
1352
172
    DB << std::move(V);
1353
172
    return *this;
1354
172
  }
1355
1356
  DiagnosticBuilder &operator=(const DiagnosticBuilder &) = delete;
1357
1358
  /// Emits the diagnostic.
1359
15.6M
  ~DiagnosticBuilder() { Emit(); }
1360
1361
  /// Forces the diagnostic to be emitted.
1362
125
  const DiagnosticBuilder &setForceEmit() const {
1363
125
    IsForceEmit = true;
1364
125
    return *this;
1365
125
  }
1366
1367
2.56k
  void addFlagValue(StringRef V) const { DiagObj->FlagValue = std::string(V); }
1368
};
1369
1370
struct AddFlagValue {
1371
  StringRef Val;
1372
1373
2.56k
  explicit AddFlagValue(StringRef V) : Val(V) {}
1374
};
1375
1376
/// Register a value for the flag in the current diagnostic. This
1377
/// value will be shown as the suffix "=value" after the flag name. It is
1378
/// useful in cases where the diagnostic flag accepts values (e.g.,
1379
/// -Rpass or -Wframe-larger-than).
1380
inline const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB,
1381
2.56k
                                           const AddFlagValue V) {
1382
2.56k
  DB.addFlagValue(V.Val);
1383
2.56k
  return DB;
1384
2.56k
}
1385
1386
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1387
1.85M
                                             StringRef S) {
1388
1.85M
  DB.AddString(S);
1389
1.85M
  return DB;
1390
1.85M
}
1391
1392
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1393
56.2k
                                             const char *Str) {
1394
56.2k
  DB.AddTaggedVal(reinterpret_cast<intptr_t>(Str),
1395
56.2k
                  DiagnosticsEngine::ak_c_string);
1396
56.2k
  return DB;
1397
56.2k
}
1398
1399
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1400
681k
                                             int I) {
1401
681k
  DB.AddTaggedVal(I, DiagnosticsEngine::ak_sint);
1402
681k
  return DB;
1403
681k
}
1404
1405
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1406
0
                                             int64_t I) {
1407
0
  DB.AddTaggedVal(I, DiagnosticsEngine::ak_sint);
1408
0
  return DB;
1409
0
}
1410
1411
// We use enable_if here to prevent that this overload is selected for
1412
// pointers or other arguments that are implicitly convertible to bool.
1413
template <typename T>
1414
inline std::enable_if_t<std::is_same<T, bool>::value,
1415
                        const StreamingDiagnostic &>
1416
399k
operator<<(const StreamingDiagnostic &DB, T I) {
1417
399k
  DB.AddTaggedVal(I, DiagnosticsEngine::ak_sint);
1418
399k
  return DB;
1419
399k
}
1420
1421
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1422
1.25M
                                             unsigned I) {
1423
1.25M
  DB.AddTaggedVal(I, DiagnosticsEngine::ak_uint);
1424
1.25M
  return DB;
1425
1.25M
}
1426
1427
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1428
22
                                             uint64_t I) {
1429
22
  DB.AddTaggedVal(I, DiagnosticsEngine::ak_uint);
1430
22
  return DB;
1431
22
}
1432
1433
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1434
44.2k
                                             tok::TokenKind I) {
1435
44.2k
  DB.AddTaggedVal(static_cast<unsigned>(I), DiagnosticsEngine::ak_tokenkind);
1436
44.2k
  return DB;
1437
44.2k
}
1438
1439
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1440
257k
                                             const IdentifierInfo *II) {
1441
257k
  DB.AddTaggedVal(reinterpret_cast<intptr_t>(II),
1442
257k
                  DiagnosticsEngine::ak_identifierinfo);
1443
257k
  return DB;
1444
257k
}
1445
1446
// Adds a DeclContext to the diagnostic. The enable_if template magic is here
1447
// so that we only match those arguments that are (statically) DeclContexts;
1448
// other arguments that derive from DeclContext (e.g., RecordDecls) will not
1449
// match.
1450
template <typename T>
1451
inline std::enable_if_t<
1452
    std::is_same<std::remove_const_t<T>, DeclContext>::value,
1453
    const StreamingDiagnostic &>
1454
47.3k
operator<<(const StreamingDiagnostic &DB, T *DC) {
1455
47.3k
  DB.AddTaggedVal(reinterpret_cast<intptr_t>(DC),
1456
47.3k
                  DiagnosticsEngine::ak_declcontext);
1457
47.3k
  return DB;
1458
47.3k
}
std::__1::enable_if<std::is_same<std::__1::remove_const<clang::DeclContext>::type, clang::DeclContext>::value, clang::StreamingDiagnostic const&>::type clang::operator<<<clang::DeclContext>(clang::StreamingDiagnostic const&, clang::DeclContext*)
Line
Count
Source
1454
47.3k
operator<<(const StreamingDiagnostic &DB, T *DC) {
1455
47.3k
  DB.AddTaggedVal(reinterpret_cast<intptr_t>(DC),
1456
47.3k
                  DiagnosticsEngine::ak_declcontext);
1457
47.3k
  return DB;
1458
47.3k
}
std::__1::enable_if<std::is_same<std::__1::remove_const<clang::DeclContext const>::type, clang::DeclContext>::value, clang::StreamingDiagnostic const&>::type clang::operator<<<clang::DeclContext const>(clang::StreamingDiagnostic const&, clang::DeclContext const*)
Line
Count
Source
1454
52
operator<<(const StreamingDiagnostic &DB, T *DC) {
1455
52
  DB.AddTaggedVal(reinterpret_cast<intptr_t>(DC),
1456
52
                  DiagnosticsEngine::ak_declcontext);
1457
52
  return DB;
1458
52
}
1459
1460
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1461
1.50M
                                             SourceRange R) {
1462
1.50M
  DB.AddSourceRange(CharSourceRange::getTokenRange(R));
1463
1.50M
  return DB;
1464
1.50M
}
1465
1466
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1467
20.9k
                                             ArrayRef<SourceRange> Ranges) {
1468
20.9k
  for (SourceRange R : Ranges)
1469
31.7k
    DB.AddSourceRange(CharSourceRange::getTokenRange(R));
1470
20.9k
  return DB;
1471
20.9k
}
1472
1473
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1474
9.60k
                                             const CharSourceRange &R) {
1475
9.60k
  DB.AddSourceRange(R);
1476
9.60k
  return DB;
1477
9.60k
}
1478
1479
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1480
472k
                                             const FixItHint &Hint) {
1481
472k
  DB.AddFixItHint(Hint);
1482
472k
  return DB;
1483
472k
}
1484
1485
inline const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1486
55.8k
                                             ArrayRef<FixItHint> Hints) {
1487
55.8k
  for (const FixItHint &Hint : Hints)
1488
1.34k
    DB.AddFixItHint(Hint);
1489
55.8k
  return DB;
1490
55.8k
}
1491
1492
inline const StreamingDiagnostic &
1493
operator<<(const StreamingDiagnostic &DB,
1494
0
           const llvm::Optional<SourceRange> &Opt) {
1495
0
  if (Opt)
1496
0
    DB << *Opt;
1497
0
  return DB;
1498
0
}
1499
1500
inline const StreamingDiagnostic &
1501
operator<<(const StreamingDiagnostic &DB,
1502
0
           const llvm::Optional<CharSourceRange> &Opt) {
1503
0
  if (Opt)
1504
0
    DB << *Opt;
1505
0
  return DB;
1506
0
}
1507
1508
inline const StreamingDiagnostic &
1509
operator<<(const StreamingDiagnostic &DB,
1510
0
           const llvm::Optional<FixItHint> &Opt) {
1511
0
  if (Opt)
1512
0
    DB << *Opt;
1513
0
  return DB;
1514
0
}
1515
1516
/// A nullability kind paired with a bit indicating whether it used a
1517
/// context-sensitive keyword.
1518
using DiagNullabilityKind = std::pair<NullabilityKind, bool>;
1519
1520
const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1521
                                      DiagNullabilityKind nullability);
1522
1523
inline DiagnosticBuilder DiagnosticsEngine::Report(SourceLocation Loc,
1524
9.51M
                                                   unsigned DiagID) {
1525
9.51M
  assert(CurDiagID == std::numeric_limits<unsigned>::max() &&
1526
9.51M
         "Multiple diagnostics in flight at once!");
1527
0
  CurDiagLoc = Loc;
1528
9.51M
  CurDiagID = DiagID;
1529
9.51M
  FlagValue.clear();
1530
9.51M
  return DiagnosticBuilder(this);
1531
9.51M
}
1532
1533
const StreamingDiagnostic &operator<<(const StreamingDiagnostic &DB,
1534
                                      llvm::Error &&E);
1535
1536
148k
inline DiagnosticBuilder DiagnosticsEngine::Report(unsigned DiagID) {
1537
148k
  return Report(SourceLocation(), DiagID);
1538
148k
}
1539
1540
//===----------------------------------------------------------------------===//
1541
// Diagnostic
1542
//===----------------------------------------------------------------------===//
1543
1544
/// A little helper class (which is basically a smart pointer that forwards
1545
/// info from DiagnosticsEngine) that allows clients to enquire about the
1546
/// currently in-flight diagnostic.
1547
class Diagnostic {
1548
  const DiagnosticsEngine *DiagObj;
1549
  StringRef StoredDiagMessage;
1550
1551
public:
1552
11.0M
  explicit Diagnostic(const DiagnosticsEngine *DO) : DiagObj(DO) {}
1553
  Diagnostic(const DiagnosticsEngine *DO, StringRef storedDiagMessage)
1554
150
      : DiagObj(DO), StoredDiagMessage(storedDiagMessage) {}
1555
1556
635k
  const DiagnosticsEngine *getDiags() const { return DiagObj; }
1557
9.97M
  unsigned getID() const { return DiagObj->CurDiagID; }
1558
10.3M
  const SourceLocation &getLocation() const { return DiagObj->CurDiagLoc; }
1559
408k
  bool hasSourceManager() const { return DiagObj->hasSourceManager(); }
1560
772k
  SourceManager &getSourceManager() const { return DiagObj->getSourceManager();}
1561
1562
4.75M
  unsigned getNumArgs() const { return DiagObj->DiagStorage.NumDiagArgs; }
1563
1564
  /// Return the kind of the specified index.
1565
  ///
1566
  /// Based on the kind of argument, the accessors below can be used to get
1567
  /// the value.
1568
  ///
1569
  /// \pre Idx < getNumArgs()
1570
3.99M
  DiagnosticsEngine::ArgumentKind getArgKind(unsigned Idx) const {
1571
3.99M
    assert(Idx < getNumArgs() && "Argument index out of range!");
1572
0
    return (DiagnosticsEngine::ArgumentKind)
1573
3.99M
        DiagObj->DiagStorage.DiagArgumentsKind[Idx];
1574
3.99M
  }
1575
1576
  /// Return the provided argument string specified by \p Idx.
1577
  /// \pre getArgKind(Idx) == DiagnosticsEngine::ak_std_string
1578
318k
  const std::string &getArgStdStr(unsigned Idx) const {
1579
318k
    assert(getArgKind(Idx) == DiagnosticsEngine::ak_std_string &&
1580
318k
           "invalid argument accessor!");
1581
0
    return DiagObj->DiagStorage.DiagArgumentsStr[Idx];
1582
318k
  }
1583
1584
  /// Return the specified C string argument.
1585
  /// \pre getArgKind(Idx) == DiagnosticsEngine::ak_c_string
1586
17.2k
  const char *getArgCStr(unsigned Idx) const {
1587
17.2k
    assert(getArgKind(Idx) == DiagnosticsEngine::ak_c_string &&
1588
17.2k
           "invalid argument accessor!");
1589
0
    return reinterpret_cast<const char *>(
1590
17.2k
        DiagObj->DiagStorage.DiagArgumentsVal[Idx]);
1591
17.2k
  }
1592
1593
  /// Return the specified signed integer argument.
1594
  /// \pre getArgKind(Idx) == DiagnosticsEngine::ak_sint
1595
122k
  int64_t getArgSInt(unsigned Idx) const {
1596
122k
    assert(getArgKind(Idx) == DiagnosticsEngine::ak_sint &&
1597
122k
           "invalid argument accessor!");
1598
0
    return (int64_t)DiagObj->DiagStorage.DiagArgumentsVal[Idx];
1599
122k
  }
1600
1601
  /// Return the specified unsigned integer argument.
1602
  /// \pre getArgKind(Idx) == DiagnosticsEngine::ak_uint
1603
81.1k
  uint64_t getArgUInt(unsigned Idx) const {
1604
81.1k
    assert(getArgKind(Idx) == DiagnosticsEngine::ak_uint &&
1605
81.1k
           "invalid argument accessor!");
1606
0
    return DiagObj->DiagStorage.DiagArgumentsVal[Idx];
1607
81.1k
  }
1608
1609
  /// Return the specified IdentifierInfo argument.
1610
  /// \pre getArgKind(Idx) == DiagnosticsEngine::ak_identifierinfo
1611
13.7k
  const IdentifierInfo *getArgIdentifier(unsigned Idx) const {
1612
13.7k
    assert(getArgKind(Idx) == DiagnosticsEngine::ak_identifierinfo &&
1613
13.7k
           "invalid argument accessor!");
1614
0
    return reinterpret_cast<IdentifierInfo *>(
1615
13.7k
        DiagObj->DiagStorage.DiagArgumentsVal[Idx]);
1616
13.7k
  }
1617
1618
  /// Return the specified non-string argument in an opaque form.
1619
  /// \pre getArgKind(Idx) != DiagnosticsEngine::ak_std_string
1620
1.03M
  uint64_t getRawArg(unsigned Idx) const {
1621
1.03M
    assert(getArgKind(Idx) != DiagnosticsEngine::ak_std_string &&
1622
1.03M
           "invalid argument accessor!");
1623
0
    return DiagObj->DiagStorage.DiagArgumentsVal[Idx];
1624
1.03M
  }
1625
1626
  /// Return the number of source ranges associated with this diagnostic.
1627
280k
  unsigned getNumRanges() const {
1628
280k
    return DiagObj->DiagStorage.DiagRanges.size();
1629
280k
  }
1630
1631
  /// \pre Idx < getNumRanges()
1632
134k
  const CharSourceRange &getRange(unsigned Idx) const {
1633
134k
    assert(Idx < getNumRanges() && "Invalid diagnostic range index!");
1634
0
    return DiagObj->DiagStorage.DiagRanges[Idx];
1635
134k
  }
1636
1637
  /// Return an array reference for this diagnostic's ranges.
1638
44.0k
  ArrayRef<CharSourceRange> getRanges() const {
1639
44.0k
    return DiagObj->DiagStorage.DiagRanges;
1640
44.0k
  }
1641
1642
148k
  unsigned getNumFixItHints() const {
1643
148k
    return DiagObj->DiagStorage.FixItHints.size();
1644
148k
  }
1645
1646
1.05k
  const FixItHint &getFixItHint(unsigned Idx) const {
1647
1.05k
    assert(Idx < getNumFixItHints() && "Invalid index!");
1648
0
    return DiagObj->DiagStorage.FixItHints[Idx];
1649
1.05k
  }
1650
1651
44.4k
  ArrayRef<FixItHint> getFixItHints() const {
1652
44.4k
    return DiagObj->DiagStorage.FixItHints;
1653
44.4k
  }
1654
1655
  /// Format this diagnostic into a string, substituting the
1656
  /// formal arguments into the %0 slots.
1657
  ///
1658
  /// The result is appended onto the \p OutStr array.
1659
  void FormatDiagnostic(SmallVectorImpl<char> &OutStr) const;
1660
1661
  /// Format the given format-string into the output buffer using the
1662
  /// arguments stored in this diagnostic.
1663
  void FormatDiagnostic(const char *DiagStr, const char *DiagEnd,
1664
                        SmallVectorImpl<char> &OutStr) const;
1665
};
1666
1667
/**
1668
 * Represents a diagnostic in a form that can be retained until its
1669
 * corresponding source manager is destroyed.
1670
 */
1671
class StoredDiagnostic {
1672
  unsigned ID;
1673
  DiagnosticsEngine::Level Level;
1674
  FullSourceLoc Loc;
1675
  std::string Message;
1676
  std::vector<CharSourceRange> Ranges;
1677
  std::vector<FixItHint> FixIts;
1678
1679
public:
1680
  StoredDiagnostic() = default;
1681
  StoredDiagnostic(DiagnosticsEngine::Level Level, const Diagnostic &Info);
1682
  StoredDiagnostic(DiagnosticsEngine::Level Level, unsigned ID,
1683
                   StringRef Message);
1684
  StoredDiagnostic(DiagnosticsEngine::Level Level, unsigned ID,
1685
                   StringRef Message, FullSourceLoc Loc,
1686
                   ArrayRef<CharSourceRange> Ranges,
1687
                   ArrayRef<FixItHint> Fixits);
1688
1689
  /// Evaluates true when this object stores a diagnostic.
1690
0
  explicit operator bool() const { return !Message.empty(); }
1691
1692
22.6k
  unsigned getID() const { return ID; }
1693
9.53k
  DiagnosticsEngine::Level getLevel() const { return Level; }
1694
27.5k
  const FullSourceLoc &getLocation() const { return Loc; }
1695
2.07k
  StringRef getMessage() const { return Message; }
1696
1697
97
  void setLocation(FullSourceLoc Loc) { this->Loc = Loc; }
1698
1699
  using range_iterator = std::vector<CharSourceRange>::const_iterator;
1700
1701
253
  range_iterator range_begin() const { return Ranges.begin(); }
1702
151
  range_iterator range_end() const { return Ranges.end(); }
1703
883
  unsigned range_size() const { return Ranges.size(); }
1704
1705
666
  ArrayRef<CharSourceRange> getRanges() const {
1706
666
    return llvm::makeArrayRef(Ranges);
1707
666
  }
1708
1709
  using fixit_iterator = std::vector<FixItHint>::const_iterator;
1710
1711
189
  fixit_iterator fixit_begin() const { return FixIts.begin(); }
1712
150
  fixit_iterator fixit_end() const { return FixIts.end(); }
1713
820
  unsigned fixit_size() const { return FixIts.size(); }
1714
1715
664
  ArrayRef<FixItHint> getFixIts() const {
1716
664
    return llvm::makeArrayRef(FixIts);
1717
664
  }
1718
};
1719
1720
/// Abstract interface, implemented by clients of the front-end, which
1721
/// formats and prints fully processed diagnostics.
1722
class DiagnosticConsumer {
1723
protected:
1724
  unsigned NumWarnings = 0;       ///< Number of warnings reported
1725
  unsigned NumErrors = 0;         ///< Number of errors reported
1726
1727
public:
1728
445k
  DiagnosticConsumer() = default;
1729
  virtual ~DiagnosticConsumer();
1730
1731
141k
  unsigned getNumErrors() const { return NumErrors; }
1732
61.0k
  unsigned getNumWarnings() const { return NumWarnings; }
1733
197
  virtual void clear() { NumWarnings = NumErrors = 0; }
1734
1735
  /// Callback to inform the diagnostic client that processing
1736
  /// of a source file is beginning.
1737
  ///
1738
  /// Note that diagnostics may be emitted outside the processing of a source
1739
  /// file, for example during the parsing of command line options. However,
1740
  /// diagnostics with source range information are required to only be emitted
1741
  /// in between BeginSourceFile() and EndSourceFile().
1742
  ///
1743
  /// \param LangOpts The language options for the source file being processed.
1744
  /// \param PP The preprocessor object being used for the source; this is
1745
  /// optional, e.g., it may not be present when processing AST source files.
1746
  virtual void BeginSourceFile(const LangOptions &LangOpts,
1747
1.99k
                               const Preprocessor *PP = nullptr) {}
1748
1749
  /// Callback to inform the diagnostic client that processing
1750
  /// of a source file has ended.
1751
  ///
1752
  /// The diagnostic client should assume that any objects made available via
1753
  /// BeginSourceFile() are inaccessible.
1754
4.88k
  virtual void EndSourceFile() {}
1755
1756
  /// Callback to inform the diagnostic client that processing of all
1757
  /// source files has ended.
1758
79.5k
  virtual void finish() {}
1759
1760
  /// Indicates whether the diagnostics handled by this
1761
  /// DiagnosticConsumer should be included in the number of diagnostics
1762
  /// reported by DiagnosticsEngine.
1763
  ///
1764
  /// The default implementation returns true.
1765
  virtual bool IncludeInDiagnosticCounts() const;
1766
1767
  /// Handle this diagnostic, reporting it to the user or
1768
  /// capturing it to a log as needed.
1769
  ///
1770
  /// The default implementation just keeps track of the total number of
1771
  /// warnings and errors.
1772
  virtual void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
1773
                                const Diagnostic &Info);
1774
};
1775
1776
/// A diagnostic client that ignores all diagnostics.
1777
class IgnoringDiagConsumer : public DiagnosticConsumer {
1778
  virtual void anchor();
1779
1780
  void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
1781
62
                        const Diagnostic &Info) override {
1782
    // Just ignore it.
1783
62
  }
1784
};
1785
1786
/// Diagnostic consumer that forwards diagnostics along to an
1787
/// existing, already-initialized diagnostic consumer.
1788
///
1789
class ForwardingDiagnosticConsumer : public DiagnosticConsumer {
1790
  DiagnosticConsumer &Target;
1791
1792
public:
1793
1.79k
  ForwardingDiagnosticConsumer(DiagnosticConsumer &Target) : Target(Target) {}
1794
  ~ForwardingDiagnosticConsumer() override;
1795
1796
  void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel,
1797
                        const Diagnostic &Info) override;
1798
  void clear() override;
1799
1800
  bool IncludeInDiagnosticCounts() const override;
1801
};
1802
1803
// Struct used for sending info about how a type should be printed.
1804
struct TemplateDiffTypes {
1805
  intptr_t FromType;
1806
  intptr_t ToType;
1807
  unsigned PrintTree : 1;
1808
  unsigned PrintFromType : 1;
1809
  unsigned ElideType : 1;
1810
  unsigned ShowColors : 1;
1811
1812
  // The printer sets this variable to true if the template diff was used.
1813
  unsigned TemplateDiffUsed : 1;
1814
};
1815
1816
/// Special character that the diagnostic printer will use to toggle the bold
1817
/// attribute.  The character itself will be not be printed.
1818
const char ToggleHighlight = 127;
1819
1820
/// ProcessWarningOptions - Initialize the diagnostic client and process the
1821
/// warning options specified on the command line.
1822
void ProcessWarningOptions(DiagnosticsEngine &Diags,
1823
                           const DiagnosticOptions &Opts,
1824
                           bool ReportDiags = true);
1825
1826
} // namespace clang
1827
1828
#endif // LLVM_CLANG_BASIC_DIAGNOSTIC_H