Coverage Report

Created: 2021-01-19 06:58

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