Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/include/llvm/Support/Format.h
Line
Count
Source (jump to first uncovered line)
1
//===- Format.h - Efficient printf-style formatting for streams -*- 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
// This file implements the format() function, which can be used with other
10
// LLVM subsystems to provide printf-style formatting.  This gives all the power
11
// and risk of printf.  This can be used like this (with raw_ostreams as an
12
// example):
13
//
14
//    OS << "mynumber: " << format("%4.5f", 1234.412) << '\n';
15
//
16
// Or if you prefer:
17
//
18
//  OS << format("mynumber: %4.5f\n", 1234.412);
19
//
20
//===----------------------------------------------------------------------===//
21
22
#ifndef LLVM_SUPPORT_FORMAT_H
23
#define LLVM_SUPPORT_FORMAT_H
24
25
#include "llvm/ADT/ArrayRef.h"
26
#include "llvm/ADT/STLExtras.h"
27
#include "llvm/ADT/StringRef.h"
28
#include "llvm/Support/DataTypes.h"
29
#include <cassert>
30
#include <cstdio>
31
#include <tuple>
32
33
namespace llvm {
34
35
/// This is a helper class used for handling formatted output.  It is the
36
/// abstract base class of a templated derived class.
37
class format_object_base {
38
protected:
39
  const char *Fmt;
40
  ~format_object_base() = default; // Disallow polymorphic deletion.
41
  format_object_base(const format_object_base &) = default;
42
  virtual void home(); // Out of line virtual method.
43
44
  /// Call snprintf() for this object, on the given buffer and size.
45
  virtual int snprint(char *Buffer, unsigned BufferSize) const = 0;
46
47
public:
48
6.87M
  format_object_base(const char *fmt) : Fmt(fmt) {}
49
50
  /// Format the object into the specified buffer.  On success, this returns
51
  /// the length of the formatted string.  If the buffer is too small, this
52
  /// returns a length to retry with, which will be larger than BufferSize.
53
6.84M
  unsigned print(char *Buffer, unsigned BufferSize) const {
54
6.84M
    assert(BufferSize && "Invalid buffer size!");
55
6.84M
56
6.84M
    // Print the string, leaving room for the terminating null.
57
6.84M
    int N = snprint(Buffer, BufferSize);
58
6.84M
59
6.84M
    // VC++ and old GlibC return negative on overflow, just double the size.
60
6.84M
    if (N < 0)
61
0
      return BufferSize * 2;
62
6.84M
63
6.84M
    // Other implementations yield number of bytes needed, not including the
64
6.84M
    // final '\0'.
65
6.84M
    if (unsigned(N) >= BufferSize)
66
520
      return N + 1;
67
6.84M
68
6.84M
    // Otherwise N is the length of output (not including the final '\0').
69
6.84M
    return N;
70
6.84M
  }
71
};
72
73
/// These are templated helper classes used by the format function that
74
/// capture the object to be formatted and the format string. When actually
75
/// printed, this synthesizes the string into a temporary buffer provided and
76
/// returns whether or not it is big enough.
77
78
// Helper to validate that format() parameters are scalars or pointers.
79
template <typename... Args> struct validate_format_parameters;
80
template <typename Arg, typename... Args>
81
struct validate_format_parameters<Arg, Args...> {
82
  static_assert(std::is_scalar<Arg>::value,
83
                "format can't be used with non fundamental / non pointer type");
84
6.97M
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<long long>::validate_format_parameters()
Line
Count
Source
84
841k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<float>::validate_format_parameters()
Line
Count
Source
84
2.01k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long long>::validate_format_parameters()
Line
Count
Source
84
612k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*, unsigned int>::validate_format_parameters()
Line
Count
Source
84
92
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int>::validate_format_parameters()
Line
Count
Source
84
609k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned short>::validate_format_parameters()
Line
Count
Source
84
141k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<double>::validate_format_parameters()
Line
Count
Source
84
253k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned char>::validate_format_parameters()
Line
Count
Source
84
4.38M
  validate_format_parameters() { validate_format_parameters<Args...>(); }
Unexecuted instantiation: llvm::validate_format_parameters<unsigned int, char const*, char const*>::validate_format_parameters()
llvm::validate_format_parameters<char const*, char const*>::validate_format_parameters()
Line
Count
Source
84
539
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*>::validate_format_parameters()
Line
Count
Source
84
8.60k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, double>::validate_format_parameters()
Line
Count
Source
84
939
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, double>::validate_format_parameters()
Line
Count
Source
84
939
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<long>::validate_format_parameters()
Line
Count
Source
84
332
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<int, double>::validate_format_parameters()
Line
Count
Source
84
154
  validate_format_parameters() { validate_format_parameters<Args...>(); }
Unexecuted instantiation: llvm::validate_format_parameters<unsigned int, unsigned int, unsigned int, char const*, char const*>::validate_format_parameters()
Unexecuted instantiation: llvm::validate_format_parameters<unsigned int, unsigned int, char const*, char const*>::validate_format_parameters()
llvm::validate_format_parameters<double, double>::validate_format_parameters()
Line
Count
Source
84
14.2k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<int>::validate_format_parameters()
Line
Count
Source
84
11.5k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
Unexecuted instantiation: llvm::validate_format_parameters<int, char const*>::validate_format_parameters()
Unexecuted instantiation: llvm::validate_format_parameters<int, unsigned long>::validate_format_parameters()
llvm::validate_format_parameters<unsigned long>::validate_format_parameters()
Line
Count
Source
84
4.43k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long, unsigned long>::validate_format_parameters()
Line
Count
Source
84
3
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int>::validate_format_parameters()
Line
Count
Source
84
57.7k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
12
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<llvm::dwarf::Tag>::validate_format_parameters()
Line
Count
Source
84
2
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<llvm::dwarf::Attribute>::validate_format_parameters()
Line
Count
Source
84
4
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<llvm::dwarf::Form>::validate_format_parameters()
Line
Count
Source
84
2
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
1.62k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
1.73k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<llvm::dwarf::Index>::validate_format_parameters()
Line
Count
Source
84
2
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, char const*>::validate_format_parameters()
Line
Count
Source
84
2.93k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned short, unsigned int>::validate_format_parameters()
Line
Count
Source
84
33
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned short, unsigned short>::validate_format_parameters()
Line
Count
Source
84
1
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned short, unsigned short>::validate_format_parameters()
Line
Count
Source
84
31
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned char>::validate_format_parameters()
Line
Count
Source
84
5
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned char, unsigned char>::validate_format_parameters()
Line
Count
Source
84
111
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned char, unsigned char>::validate_format_parameters()
Line
Count
Source
84
171
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, unsigned char>::validate_format_parameters()
Line
Count
Source
84
1
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned short, unsigned char, unsigned char>::validate_format_parameters()
Line
Count
Source
84
32
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned short, unsigned char, unsigned char>::validate_format_parameters()
Line
Count
Source
84
32
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned short>::validate_format_parameters()
Line
Count
Source
84
1.96k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, unsigned int>::validate_format_parameters()
Line
Count
Source
84
287
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, int>::validate_format_parameters()
Line
Count
Source
84
290
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, int>::validate_format_parameters()
Line
Count
Source
84
290
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<int, unsigned int, unsigned int>::validate_format_parameters()
Line
Count
Source
84
290
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<signed char>::validate_format_parameters()
Line
Count
Source
84
384
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*, unsigned char>::validate_format_parameters()
Line
Count
Source
84
4.42k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long long, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
876
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long long, unsigned short>::validate_format_parameters()
Line
Count
Source
84
14
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long long, unsigned int>::validate_format_parameters()
Line
Count
Source
84
63
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long long, unsigned long long, unsigned int>::validate_format_parameters()
Line
Count
Source
84
35
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long long, unsigned int, unsigned short>::validate_format_parameters()
Line
Count
Source
84
1.85k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned short, unsigned char, unsigned int>::validate_format_parameters()
Line
Count
Source
84
1.85k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned char, unsigned int>::validate_format_parameters()
Line
Count
Source
84
1.89k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned char, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
2
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned char, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
2
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned long long, unsigned int>::validate_format_parameters()
Line
Count
Source
84
6
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, unsigned long long, unsigned int, unsigned int, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
28
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned long long, unsigned int, unsigned int, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
28
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long long, unsigned int, unsigned int, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
28
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned long long, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
122
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*, unsigned long, char>::validate_format_parameters()
Line
Count
Source
84
44
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long, char>::validate_format_parameters()
Line
Count
Source
84
44
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char>::validate_format_parameters()
Line
Count
Source
84
4.40k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<int, int, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
5
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<int, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
5
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, char>::validate_format_parameters()
Line
Count
Source
84
4.28k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*, unsigned long long>::validate_format_parameters()
Line
Count
Source
84
218
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long long, unsigned long long, unsigned long long, unsigned int>::validate_format_parameters()
Line
Count
Source
84
15
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*, unsigned int, unsigned int>::validate_format_parameters()
Line
Count
Source
84
35
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*, unsigned short, unsigned int>::validate_format_parameters()
Line
Count
Source
84
1
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*, unsigned int, unsigned char>::validate_format_parameters()
Line
Count
Source
84
2
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*, unsigned int, unsigned short, unsigned char, unsigned char, unsigned int>::validate_format_parameters()
Line
Count
Source
84
26
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned short, unsigned char, unsigned char, unsigned int>::validate_format_parameters()
Line
Count
Source
84
26
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned short, unsigned char, unsigned char, unsigned int>::validate_format_parameters()
Line
Count
Source
84
26
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned char, unsigned char, unsigned int>::validate_format_parameters()
Line
Count
Source
84
29
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, char const*>::validate_format_parameters()
Line
Count
Source
84
1
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, char const*>::validate_format_parameters()
Line
Count
Source
84
1
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, char const*>::validate_format_parameters()
Line
Count
Source
84
1
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, char const*>::validate_format_parameters()
Line
Count
Source
84
1
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, unsigned int, unsigned int, char const*>::validate_format_parameters()
Line
Count
Source
84
1
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, unsigned int, char const*>::validate_format_parameters()
Line
Count
Source
84
1
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned int, unsigned int, char const*>::validate_format_parameters()
Line
Count
Source
84
1
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<char const*, int, int>::validate_format_parameters()
Line
Count
Source
84
8
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<int, int>::validate_format_parameters()
Line
Count
Source
84
2.24k
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<int, int, int>::validate_format_parameters()
Line
Count
Source
84
7
  validate_format_parameters() { validate_format_parameters<Args...>(); }
llvm::validate_format_parameters<unsigned long, unsigned int>::validate_format_parameters()
Line
Count
Source
84
744
  validate_format_parameters() { validate_format_parameters<Args...>(); }
85
};
86
template <> struct validate_format_parameters<> {};
87
88
template <typename... Ts>
89
class format_object final : public format_object_base {
90
  std::tuple<Ts...> Vals;
91
92
  template <std::size_t... Is>
93
  int snprint_tuple(char *Buffer, unsigned BufferSize,
94
6.86M
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
6.86M
#endif
100
6.86M
  }
int llvm::format_object<unsigned int>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
548k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
548k
#endif
100
548k
  }
int llvm::format_object<long long>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
841k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
841k
#endif
100
841k
  }
int llvm::format_object<float>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
1.86k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
1.86k
#endif
100
1.86k
  }
int llvm::format_object<unsigned long long>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
609k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
609k
#endif
100
609k
  }
int llvm::format_object<char const*, unsigned int>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
36
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
36
#endif
100
36
  }
int llvm::format_object<unsigned short>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
139k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
139k
#endif
100
139k
  }
int llvm::format_object<double>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
237k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
237k
#endif
100
237k
  }
int llvm::format_object<unsigned char>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
4.37M
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
4.37M
#endif
100
4.37M
  }
Unexecuted instantiation: int llvm::format_object<unsigned int, char const*, char const*>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
int llvm::format_object<unsigned int, unsigned int, double>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
939
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
939
#endif
100
939
  }
int llvm::format_object<long>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
332
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
332
#endif
100
332
  }
int llvm::format_object<int, double>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
154
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
154
#endif
100
154
  }
Unexecuted instantiation: int llvm::format_object<unsigned int, unsigned int, unsigned int, char const*, char const*>::snprint_tuple<0ul, 1ul, 2ul, 3ul, 4ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul, 3ul, 4ul>) const
int llvm::format_object<double, double>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
14.2k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
14.2k
#endif
100
14.2k
  }
int llvm::format_object<int>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
9.04k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
9.04k
#endif
100
9.04k
  }
Unexecuted instantiation: int llvm::format_object<int, char const*>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Unexecuted instantiation: int llvm::format_object<int, unsigned long>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
int llvm::format_object<unsigned long, unsigned long>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
3
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
3
#endif
100
3
  }
int llvm::format_object<unsigned int, unsigned int>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
57.3k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
57.3k
#endif
100
57.3k
  }
int llvm::format_object<unsigned long, unsigned long long>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
12
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
12
#endif
100
12
  }
int llvm::format_object<char const*>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
3.58k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
3.58k
#endif
100
3.58k
  }
int llvm::format_object<char const*, char const*>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
598
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
598
#endif
100
598
  }
int llvm::format_object<llvm::dwarf::Tag>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
2
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
2
#endif
100
2
  }
int llvm::format_object<llvm::dwarf::Attribute>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
4
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
4
#endif
100
4
  }
int llvm::format_object<llvm::dwarf::Form>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
2
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
2
#endif
100
2
  }
int llvm::format_object<unsigned int, unsigned int, unsigned long long>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
1.59k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
1.59k
#endif
100
1.59k
  }
int llvm::format_object<llvm::dwarf::Index>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
2
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
2
#endif
100
2
  }
int llvm::format_object<unsigned int, unsigned long long>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
118
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
118
#endif
100
118
  }
int llvm::format_object<unsigned int, char const*>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
2.93k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
2.93k
#endif
100
2.93k
  }
int llvm::format_object<unsigned short, unsigned int>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
1
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
1
#endif
100
1
  }
int llvm::format_object<unsigned int, unsigned short, unsigned short>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
1
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
1
#endif
100
1
  }
int llvm::format_object<unsigned int, unsigned char>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
2
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
2
#endif
100
2
  }
int llvm::format_object<unsigned int, unsigned char, unsigned char>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
111
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
111
#endif
100
111
  }
int llvm::format_object<unsigned int, unsigned int, unsigned char>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
1
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
1
#endif
100
1
  }
int llvm::format_object<unsigned int, unsigned short, unsigned char, unsigned char>::snprint_tuple<0ul, 1ul, 2ul, 3ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul, 3ul>) const
Line
Count
Source
94
32
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
32
#endif
100
32
  }
int llvm::format_object<unsigned int, unsigned short>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
110
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
110
#endif
100
110
  }
int llvm::format_object<unsigned int, unsigned int, unsigned int>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
162
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
162
#endif
100
162
  }
int llvm::format_object<unsigned int, unsigned int, int>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
290
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
290
#endif
100
290
  }
int llvm::format_object<int, unsigned int, unsigned int>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
290
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
290
#endif
100
290
  }
int llvm::format_object<signed char>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
384
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
384
#endif
100
384
  }
int llvm::format_object<char const*, unsigned char>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
4.42k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
4.42k
#endif
100
4.42k
  }
int llvm::format_object<unsigned long long, unsigned long long>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
131
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
131
#endif
100
131
  }
int llvm::format_object<unsigned long long, unsigned short>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
14
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
14
#endif
100
14
  }
int llvm::format_object<unsigned long long, unsigned int>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
22
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
22
#endif
100
22
  }
int llvm::format_object<unsigned long long, unsigned long long, unsigned int>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
20
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
20
#endif
100
20
  }
int llvm::format_object<unsigned long long, unsigned int, unsigned short>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
1.85k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
1.85k
#endif
100
1.85k
  }
int llvm::format_object<unsigned short, unsigned char, unsigned int>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
1.86k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
1.86k
#endif
100
1.86k
  }
int llvm::format_object<unsigned int, unsigned char, unsigned long long>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
2
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
2
#endif
100
2
  }
int llvm::format_object<unsigned int, unsigned long long, unsigned int>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
6
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
6
#endif
100
6
  }
int llvm::format_object<unsigned int, unsigned int, unsigned long long, unsigned int, unsigned int, unsigned long long>::snprint_tuple<0ul, 1ul, 2ul, 3ul, 4ul, 5ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul, 3ul, 4ul, 5ul>) const
Line
Count
Source
94
28
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
28
#endif
100
28
  }
int llvm::format_object<unsigned int, unsigned long long, unsigned long long>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
122
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
122
#endif
100
122
  }
int llvm::format_object<char const*, unsigned long, char>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
44
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
44
#endif
100
44
  }
int llvm::format_object<int, int, unsigned long long>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
5
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
5
#endif
100
5
  }
int llvm::format_object<unsigned int, char>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
4.28k
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
4.28k
#endif
100
4.28k
  }
int llvm::format_object<char const*, unsigned long long>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
218
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
218
#endif
100
218
  }
int llvm::format_object<unsigned long long, unsigned long long, unsigned long long, unsigned int>::snprint_tuple<0ul, 1ul, 2ul, 3ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul, 3ul>) const
Line
Count
Source
94
15
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
15
#endif
100
15
  }
int llvm::format_object<char const*, unsigned int, unsigned int>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
3
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
3
#endif
100
3
  }
int llvm::format_object<char const*, unsigned short, unsigned int>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
1
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
1
#endif
100
1
  }
int llvm::format_object<char const*, unsigned int, unsigned char>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
2
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
2
#endif
100
2
  }
int llvm::format_object<char const*, unsigned int, unsigned short, unsigned char, unsigned char, unsigned int>::snprint_tuple<0ul, 1ul, 2ul, 3ul, 4ul, 5ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul, 3ul, 4ul, 5ul>) const
Line
Count
Source
94
26
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
26
#endif
100
26
  }
int llvm::format_object<unsigned long>::snprint_tuple<0ul>(char*, unsigned int, llvm::index_sequence<0ul>) const
Line
Count
Source
94
56
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
56
#endif
100
56
  }
int llvm::format_object<char const*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, char const*>::snprint_tuple<0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul, 7ul, 8ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul, 7ul, 8ul>) const
Line
Count
Source
94
1
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
1
#endif
100
1
  }
int llvm::format_object<char const*, int, int>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
8
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
8
#endif
100
8
  }
int llvm::format_object<int, int, int>::snprint_tuple<0ul, 1ul, 2ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul, 2ul>) const
Line
Count
Source
94
7
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
7
#endif
100
7
  }
int llvm::format_object<unsigned long, unsigned int>::snprint_tuple<0ul, 1ul>(char*, unsigned int, llvm::index_sequence<0ul, 1ul>) const
Line
Count
Source
94
744
                    index_sequence<Is...>) const {
95
#ifdef _MSC_VER
96
    return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
97
#else
98
    return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...);
99
744
#endif
100
744
  }
101
102
public:
103
  format_object(const char *fmt, const Ts &... vals)
104
6.86M
      : format_object_base(fmt), Vals(vals...) {
105
6.86M
    validate_format_parameters<Ts...>();
106
6.86M
  }
llvm::format_object<long long>::format_object(char const*, long long const&)
Line
Count
Source
104
841k
      : format_object_base(fmt), Vals(vals...) {
105
841k
    validate_format_parameters<Ts...>();
106
841k
  }
llvm::format_object<float>::format_object(char const*, float const&)
Line
Count
Source
104
1.86k
      : format_object_base(fmt), Vals(vals...) {
105
1.86k
    validate_format_parameters<Ts...>();
106
1.86k
  }
llvm::format_object<unsigned long long>::format_object(char const*, unsigned long long const&)
Line
Count
Source
104
609k
      : format_object_base(fmt), Vals(vals...) {
105
609k
    validate_format_parameters<Ts...>();
106
609k
  }
llvm::format_object<char const*, unsigned int>::format_object(char const*, char const* const&, unsigned int const&)
Line
Count
Source
104
36
      : format_object_base(fmt), Vals(vals...) {
105
36
    validate_format_parameters<Ts...>();
106
36
  }
llvm::format_object<unsigned int>::format_object(char const*, unsigned int const&)
Line
Count
Source
104
548k
      : format_object_base(fmt), Vals(vals...) {
105
548k
    validate_format_parameters<Ts...>();
106
548k
  }
llvm::format_object<unsigned short>::format_object(char const*, unsigned short const&)
Line
Count
Source
104
139k
      : format_object_base(fmt), Vals(vals...) {
105
139k
    validate_format_parameters<Ts...>();
106
139k
  }
llvm::format_object<double>::format_object(char const*, double const&)
Line
Count
Source
104
237k
      : format_object_base(fmt), Vals(vals...) {
105
237k
    validate_format_parameters<Ts...>();
106
237k
  }
llvm::format_object<unsigned char>::format_object(char const*, unsigned char const&)
Line
Count
Source
104
4.37M
      : format_object_base(fmt), Vals(vals...) {
105
4.37M
    validate_format_parameters<Ts...>();
106
4.37M
  }
Unexecuted instantiation: llvm::format_object<unsigned int, char const*, char const*>::format_object(char const*, unsigned int const&, char const* const&, char const* const&)
llvm::format_object<unsigned int, unsigned int, double>::format_object(char const*, unsigned int const&, unsigned int const&, double const&)
Line
Count
Source
104
939
      : format_object_base(fmt), Vals(vals...) {
105
939
    validate_format_parameters<Ts...>();
106
939
  }
llvm::format_object<long>::format_object(char const*, long const&)
Line
Count
Source
104
332
      : format_object_base(fmt), Vals(vals...) {
105
332
    validate_format_parameters<Ts...>();
106
332
  }
llvm::format_object<int, double>::format_object(char const*, int const&, double const&)
Line
Count
Source
104
154
      : format_object_base(fmt), Vals(vals...) {
105
154
    validate_format_parameters<Ts...>();
106
154
  }
Unexecuted instantiation: llvm::format_object<unsigned int, unsigned int, unsigned int, char const*, char const*>::format_object(char const*, unsigned int const&, unsigned int const&, unsigned int const&, char const* const&, char const* const&)
llvm::format_object<double, double>::format_object(char const*, double const&, double const&)
Line
Count
Source
104
14.2k
      : format_object_base(fmt), Vals(vals...) {
105
14.2k
    validate_format_parameters<Ts...>();
106
14.2k
  }
llvm::format_object<int>::format_object(char const*, int const&)
Line
Count
Source
104
9.04k
      : format_object_base(fmt), Vals(vals...) {
105
9.04k
    validate_format_parameters<Ts...>();
106
9.04k
  }
Unexecuted instantiation: llvm::format_object<int, char const*>::format_object(char const*, int const&, char const* const&)
Unexecuted instantiation: llvm::format_object<int, unsigned long>::format_object(char const*, int const&, unsigned long const&)
llvm::format_object<unsigned long, unsigned long>::format_object(char const*, unsigned long const&, unsigned long const&)
Line
Count
Source
104
3
      : format_object_base(fmt), Vals(vals...) {
105
3
    validate_format_parameters<Ts...>();
106
3
  }
llvm::format_object<unsigned int, unsigned int>::format_object(char const*, unsigned int const&, unsigned int const&)
Line
Count
Source
104
57.1k
      : format_object_base(fmt), Vals(vals...) {
105
57.1k
    validate_format_parameters<Ts...>();
106
57.1k
  }
llvm::format_object<unsigned long, unsigned long long>::format_object(char const*, unsigned long const&, unsigned long long const&)
Line
Count
Source
104
12
      : format_object_base(fmt), Vals(vals...) {
105
12
    validate_format_parameters<Ts...>();
106
12
  }
llvm::format_object<char const*>::format_object(char const*, char const* const&)
Line
Count
Source
104
3.57k
      : format_object_base(fmt), Vals(vals...) {
105
3.57k
    validate_format_parameters<Ts...>();
106
3.57k
  }
llvm::format_object<char const*, char const*>::format_object(char const*, char const* const&, char const* const&)
Line
Count
Source
104
533
      : format_object_base(fmt), Vals(vals...) {
105
533
    validate_format_parameters<Ts...>();
106
533
  }
llvm::format_object<llvm::dwarf::Tag>::format_object(char const*, llvm::dwarf::Tag const&)
Line
Count
Source
104
2
      : format_object_base(fmt), Vals(vals...) {
105
2
    validate_format_parameters<Ts...>();
106
2
  }
llvm::format_object<llvm::dwarf::Attribute>::format_object(char const*, llvm::dwarf::Attribute const&)
Line
Count
Source
104
4
      : format_object_base(fmt), Vals(vals...) {
105
4
    validate_format_parameters<Ts...>();
106
4
  }
llvm::format_object<llvm::dwarf::Form>::format_object(char const*, llvm::dwarf::Form const&)
Line
Count
Source
104
2
      : format_object_base(fmt), Vals(vals...) {
105
2
    validate_format_parameters<Ts...>();
106
2
  }
llvm::format_object<unsigned int, unsigned int, unsigned long long>::format_object(char const*, unsigned int const&, unsigned int const&, unsigned long long const&)
Line
Count
Source
104
1.59k
      : format_object_base(fmt), Vals(vals...) {
105
1.59k
    validate_format_parameters<Ts...>();
106
1.59k
  }
llvm::format_object<llvm::dwarf::Index>::format_object(char const*, llvm::dwarf::Index const&)
Line
Count
Source
104
2
      : format_object_base(fmt), Vals(vals...) {
105
2
    validate_format_parameters<Ts...>();
106
2
  }
llvm::format_object<unsigned int, unsigned long long>::format_object(char const*, unsigned int const&, unsigned long long const&)
Line
Count
Source
104
114
      : format_object_base(fmt), Vals(vals...) {
105
114
    validate_format_parameters<Ts...>();
106
114
  }
llvm::format_object<unsigned int, char const*>::format_object(char const*, unsigned int const&, char const* const&)
Line
Count
Source
104
2.93k
      : format_object_base(fmt), Vals(vals...) {
105
2.93k
    validate_format_parameters<Ts...>();
106
2.93k
  }
llvm::format_object<unsigned short, unsigned int>::format_object(char const*, unsigned short const&, unsigned int const&)
Line
Count
Source
104
1
      : format_object_base(fmt), Vals(vals...) {
105
1
    validate_format_parameters<Ts...>();
106
1
  }
llvm::format_object<unsigned int, unsigned short, unsigned short>::format_object(char const*, unsigned int const&, unsigned short const&, unsigned short const&)
Line
Count
Source
104
1
      : format_object_base(fmt), Vals(vals...) {
105
1
    validate_format_parameters<Ts...>();
106
1
  }
llvm::format_object<unsigned int, unsigned char>::format_object(char const*, unsigned int const&, unsigned char const&)
Line
Count
Source
104
2
      : format_object_base(fmt), Vals(vals...) {
105
2
    validate_format_parameters<Ts...>();
106
2
  }
llvm::format_object<unsigned int, unsigned char, unsigned char>::format_object(char const*, unsigned int const&, unsigned char const&, unsigned char const&)
Line
Count
Source
104
111
      : format_object_base(fmt), Vals(vals...) {
105
111
    validate_format_parameters<Ts...>();
106
111
  }
llvm::format_object<unsigned int, unsigned int, unsigned char>::format_object(char const*, unsigned int const&, unsigned int const&, unsigned char const&)
Line
Count
Source
104
1
      : format_object_base(fmt), Vals(vals...) {
105
1
    validate_format_parameters<Ts...>();
106
1
  }
llvm::format_object<unsigned int, unsigned short, unsigned char, unsigned char>::format_object(char const*, unsigned int const&, unsigned short const&, unsigned char const&, unsigned char const&)
Line
Count
Source
104
32
      : format_object_base(fmt), Vals(vals...) {
105
32
    validate_format_parameters<Ts...>();
106
32
  }
llvm::format_object<unsigned int, unsigned short>::format_object(char const*, unsigned int const&, unsigned short const&)
Line
Count
Source
104
110
      : format_object_base(fmt), Vals(vals...) {
105
110
    validate_format_parameters<Ts...>();
106
110
  }
llvm::format_object<unsigned int, unsigned int, unsigned int>::format_object(char const*, unsigned int const&, unsigned int const&, unsigned int const&)
Line
Count
Source
104
162
      : format_object_base(fmt), Vals(vals...) {
105
162
    validate_format_parameters<Ts...>();
106
162
  }
llvm::format_object<unsigned int, unsigned int, int>::format_object(char const*, unsigned int const&, unsigned int const&, int const&)
Line
Count
Source
104
290
      : format_object_base(fmt), Vals(vals...) {
105
290
    validate_format_parameters<Ts...>();
106
290
  }
llvm::format_object<int, unsigned int, unsigned int>::format_object(char const*, int const&, unsigned int const&, unsigned int const&)
Line
Count
Source
104
290
      : format_object_base(fmt), Vals(vals...) {
105
290
    validate_format_parameters<Ts...>();
106
290
  }
llvm::format_object<signed char>::format_object(char const*, signed char const&)
Line
Count
Source
104
384
      : format_object_base(fmt), Vals(vals...) {
105
384
    validate_format_parameters<Ts...>();
106
384
  }
llvm::format_object<char const*, unsigned char>::format_object(char const*, char const* const&, unsigned char const&)
Line
Count
Source
104
4.42k
      : format_object_base(fmt), Vals(vals...) {
105
4.42k
    validate_format_parameters<Ts...>();
106
4.42k
  }
llvm::format_object<unsigned long long, unsigned long long>::format_object(char const*, unsigned long long const&, unsigned long long const&)
Line
Count
Source
104
131
      : format_object_base(fmt), Vals(vals...) {
105
131
    validate_format_parameters<Ts...>();
106
131
  }
llvm::format_object<unsigned long long, unsigned short>::format_object(char const*, unsigned long long const&, unsigned short const&)
Line
Count
Source
104
14
      : format_object_base(fmt), Vals(vals...) {
105
14
    validate_format_parameters<Ts...>();
106
14
  }
llvm::format_object<unsigned long long, unsigned int>::format_object(char const*, unsigned long long const&, unsigned int const&)
Line
Count
Source
104
22
      : format_object_base(fmt), Vals(vals...) {
105
22
    validate_format_parameters<Ts...>();
106
22
  }
llvm::format_object<unsigned long long, unsigned long long, unsigned int>::format_object(char const*, unsigned long long const&, unsigned long long const&, unsigned int const&)
Line
Count
Source
104
20
      : format_object_base(fmt), Vals(vals...) {
105
20
    validate_format_parameters<Ts...>();
106
20
  }
llvm::format_object<unsigned long long, unsigned int, unsigned short>::format_object(char const*, unsigned long long const&, unsigned int const&, unsigned short const&)
Line
Count
Source
104
1.85k
      : format_object_base(fmt), Vals(vals...) {
105
1.85k
    validate_format_parameters<Ts...>();
106
1.85k
  }
llvm::format_object<unsigned short, unsigned char, unsigned int>::format_object(char const*, unsigned short const&, unsigned char const&, unsigned int const&)
Line
Count
Source
104
1.85k
      : format_object_base(fmt), Vals(vals...) {
105
1.85k
    validate_format_parameters<Ts...>();
106
1.85k
  }
llvm::format_object<unsigned int, unsigned char, unsigned long long>::format_object(char const*, unsigned int const&, unsigned char const&, unsigned long long const&)
Line
Count
Source
104
2
      : format_object_base(fmt), Vals(vals...) {
105
2
    validate_format_parameters<Ts...>();
106
2
  }
llvm::format_object<unsigned int, unsigned long long, unsigned int>::format_object(char const*, unsigned int const&, unsigned long long const&, unsigned int const&)
Line
Count
Source
104
6
      : format_object_base(fmt), Vals(vals...) {
105
6
    validate_format_parameters<Ts...>();
106
6
  }
llvm::format_object<unsigned int, unsigned int, unsigned long long, unsigned int, unsigned int, unsigned long long>::format_object(char const*, unsigned int const&, unsigned int const&, unsigned long long const&, unsigned int const&, unsigned int const&, unsigned long long const&)
Line
Count
Source
104
28
      : format_object_base(fmt), Vals(vals...) {
105
28
    validate_format_parameters<Ts...>();
106
28
  }
llvm::format_object<unsigned int, unsigned long long, unsigned long long>::format_object(char const*, unsigned int const&, unsigned long long const&, unsigned long long const&)
Line
Count
Source
104
122
      : format_object_base(fmt), Vals(vals...) {
105
122
    validate_format_parameters<Ts...>();
106
122
  }
llvm::format_object<char const*, unsigned long, char>::format_object(char const*, char const* const&, unsigned long const&, char const&)
Line
Count
Source
104
44
      : format_object_base(fmt), Vals(vals...) {
105
44
    validate_format_parameters<Ts...>();
106
44
  }
llvm::format_object<int, int, unsigned long long>::format_object(char const*, int const&, int const&, unsigned long long const&)
Line
Count
Source
104
5
      : format_object_base(fmt), Vals(vals...) {
105
5
    validate_format_parameters<Ts...>();
106
5
  }
llvm::format_object<unsigned int, char>::format_object(char const*, unsigned int const&, char const&)
Line
Count
Source
104
4.28k
      : format_object_base(fmt), Vals(vals...) {
105
4.28k
    validate_format_parameters<Ts...>();
106
4.28k
  }
llvm::format_object<char const*, unsigned long long>::format_object(char const*, char const* const&, unsigned long long const&)
Line
Count
Source
104
218
      : format_object_base(fmt), Vals(vals...) {
105
218
    validate_format_parameters<Ts...>();
106
218
  }
llvm::format_object<unsigned long long, unsigned long long, unsigned long long, unsigned int>::format_object(char const*, unsigned long long const&, unsigned long long const&, unsigned long long const&, unsigned int const&)
Line
Count
Source
104
15
      : format_object_base(fmt), Vals(vals...) {
105
15
    validate_format_parameters<Ts...>();
106
15
  }
llvm::format_object<char const*, unsigned int, unsigned int>::format_object(char const*, char const* const&, unsigned int const&, unsigned int const&)
Line
Count
Source
104
3
      : format_object_base(fmt), Vals(vals...) {
105
3
    validate_format_parameters<Ts...>();
106
3
  }
llvm::format_object<char const*, unsigned short, unsigned int>::format_object(char const*, char const* const&, unsigned short const&, unsigned int const&)
Line
Count
Source
104
1
      : format_object_base(fmt), Vals(vals...) {
105
1
    validate_format_parameters<Ts...>();
106
1
  }
llvm::format_object<char const*, unsigned int, unsigned char>::format_object(char const*, char const* const&, unsigned int const&, unsigned char const&)
Line
Count
Source
104
2
      : format_object_base(fmt), Vals(vals...) {
105
2
    validate_format_parameters<Ts...>();
106
2
  }
llvm::format_object<char const*, unsigned int, unsigned short, unsigned char, unsigned char, unsigned int>::format_object(char const*, char const* const&, unsigned int const&, unsigned short const&, unsigned char const&, unsigned char const&, unsigned int const&)
Line
Count
Source
104
26
      : format_object_base(fmt), Vals(vals...) {
105
26
    validate_format_parameters<Ts...>();
106
26
  }
llvm::format_object<unsigned long>::format_object(char const*, unsigned long const&)
Line
Count
Source
104
56
      : format_object_base(fmt), Vals(vals...) {
105
56
    validate_format_parameters<Ts...>();
106
56
  }
llvm::format_object<char const*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, char const*>::format_object(char const*, char const* const&, unsigned int const&, unsigned int const&, unsigned int const&, unsigned int const&, unsigned int const&, unsigned int const&, unsigned int const&, char const* const&)
Line
Count
Source
104
1
      : format_object_base(fmt), Vals(vals...) {
105
1
    validate_format_parameters<Ts...>();
106
1
  }
llvm::format_object<char const*, int, int>::format_object(char const*, char const* const&, int const&, int const&)
Line
Count
Source
104
8
      : format_object_base(fmt), Vals(vals...) {
105
8
    validate_format_parameters<Ts...>();
106
8
  }
llvm::format_object<int, int, int>::format_object(char const*, int const&, int const&, int const&)
Line
Count
Source
104
7
      : format_object_base(fmt), Vals(vals...) {
105
7
    validate_format_parameters<Ts...>();
106
7
  }
llvm::format_object<unsigned long, unsigned int>::format_object(char const*, unsigned long const&, unsigned int const&)
Line
Count
Source
104
744
      : format_object_base(fmt), Vals(vals...) {
105
744
    validate_format_parameters<Ts...>();
106
744
  }
107
108
6.86M
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
6.86M
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
6.86M
  }
llvm::format_object<unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
548k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
548k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
548k
  }
llvm::format_object<long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
841k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
841k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
841k
  }
llvm::format_object<float>::snprint(char*, unsigned int) const
Line
Count
Source
108
1.86k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
1.86k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
1.86k
  }
llvm::format_object<unsigned long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
609k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
609k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
609k
  }
llvm::format_object<char const*, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
36
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
36
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
36
  }
llvm::format_object<unsigned short>::snprint(char*, unsigned int) const
Line
Count
Source
108
139k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
139k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
139k
  }
llvm::format_object<double>::snprint(char*, unsigned int) const
Line
Count
Source
108
237k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
237k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
237k
  }
llvm::format_object<unsigned char>::snprint(char*, unsigned int) const
Line
Count
Source
108
4.37M
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
4.37M
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
4.37M
  }
Unexecuted instantiation: llvm::format_object<unsigned int, char const*, char const*>::snprint(char*, unsigned int) const
llvm::format_object<unsigned int, unsigned int, double>::snprint(char*, unsigned int) const
Line
Count
Source
108
939
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
939
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
939
  }
llvm::format_object<long>::snprint(char*, unsigned int) const
Line
Count
Source
108
332
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
332
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
332
  }
llvm::format_object<int, double>::snprint(char*, unsigned int) const
Line
Count
Source
108
154
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
154
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
154
  }
Unexecuted instantiation: llvm::format_object<unsigned int, unsigned int, unsigned int, char const*, char const*>::snprint(char*, unsigned int) const
llvm::format_object<double, double>::snprint(char*, unsigned int) const
Line
Count
Source
108
14.2k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
14.2k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
14.2k
  }
llvm::format_object<int>::snprint(char*, unsigned int) const
Line
Count
Source
108
9.04k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
9.04k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
9.04k
  }
Unexecuted instantiation: llvm::format_object<int, char const*>::snprint(char*, unsigned int) const
Unexecuted instantiation: llvm::format_object<int, unsigned long>::snprint(char*, unsigned int) const
llvm::format_object<unsigned long, unsigned long>::snprint(char*, unsigned int) const
Line
Count
Source
108
3
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
3
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
3
  }
llvm::format_object<unsigned int, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
57.3k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
57.3k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
57.3k
  }
llvm::format_object<unsigned long, unsigned long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
12
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
12
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
12
  }
llvm::format_object<char const*>::snprint(char*, unsigned int) const
Line
Count
Source
108
3.58k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
3.58k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
3.58k
  }
llvm::format_object<char const*, char const*>::snprint(char*, unsigned int) const
Line
Count
Source
108
598
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
598
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
598
  }
llvm::format_object<llvm::dwarf::Tag>::snprint(char*, unsigned int) const
Line
Count
Source
108
2
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
2
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
2
  }
llvm::format_object<llvm::dwarf::Attribute>::snprint(char*, unsigned int) const
Line
Count
Source
108
4
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
4
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
4
  }
llvm::format_object<llvm::dwarf::Form>::snprint(char*, unsigned int) const
Line
Count
Source
108
2
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
2
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
2
  }
llvm::format_object<unsigned int, unsigned int, unsigned long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
1.59k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
1.59k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
1.59k
  }
llvm::format_object<llvm::dwarf::Index>::snprint(char*, unsigned int) const
Line
Count
Source
108
2
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
2
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
2
  }
llvm::format_object<unsigned int, unsigned long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
118
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
118
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
118
  }
llvm::format_object<unsigned int, char const*>::snprint(char*, unsigned int) const
Line
Count
Source
108
2.93k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
2.93k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
2.93k
  }
llvm::format_object<unsigned short, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
1
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
1
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
1
  }
llvm::format_object<unsigned int, unsigned short, unsigned short>::snprint(char*, unsigned int) const
Line
Count
Source
108
1
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
1
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
1
  }
llvm::format_object<unsigned int, unsigned char>::snprint(char*, unsigned int) const
Line
Count
Source
108
2
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
2
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
2
  }
llvm::format_object<unsigned int, unsigned char, unsigned char>::snprint(char*, unsigned int) const
Line
Count
Source
108
111
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
111
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
111
  }
llvm::format_object<unsigned int, unsigned int, unsigned char>::snprint(char*, unsigned int) const
Line
Count
Source
108
1
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
1
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
1
  }
llvm::format_object<unsigned int, unsigned short, unsigned char, unsigned char>::snprint(char*, unsigned int) const
Line
Count
Source
108
32
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
32
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
32
  }
llvm::format_object<unsigned int, unsigned short>::snprint(char*, unsigned int) const
Line
Count
Source
108
110
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
110
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
110
  }
llvm::format_object<unsigned int, unsigned int, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
162
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
162
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
162
  }
llvm::format_object<unsigned int, unsigned int, int>::snprint(char*, unsigned int) const
Line
Count
Source
108
290
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
290
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
290
  }
llvm::format_object<int, unsigned int, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
290
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
290
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
290
  }
llvm::format_object<signed char>::snprint(char*, unsigned int) const
Line
Count
Source
108
384
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
384
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
384
  }
llvm::format_object<char const*, unsigned char>::snprint(char*, unsigned int) const
Line
Count
Source
108
4.42k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
4.42k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
4.42k
  }
llvm::format_object<unsigned long long, unsigned long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
131
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
131
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
131
  }
llvm::format_object<unsigned long long, unsigned short>::snprint(char*, unsigned int) const
Line
Count
Source
108
14
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
14
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
14
  }
llvm::format_object<unsigned long long, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
22
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
22
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
22
  }
llvm::format_object<unsigned long long, unsigned long long, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
20
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
20
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
20
  }
llvm::format_object<unsigned long long, unsigned int, unsigned short>::snprint(char*, unsigned int) const
Line
Count
Source
108
1.85k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
1.85k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
1.85k
  }
llvm::format_object<unsigned short, unsigned char, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
1.86k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
1.86k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
1.86k
  }
llvm::format_object<unsigned int, unsigned char, unsigned long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
2
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
2
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
2
  }
llvm::format_object<unsigned int, unsigned long long, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
6
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
6
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
6
  }
llvm::format_object<unsigned int, unsigned int, unsigned long long, unsigned int, unsigned int, unsigned long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
28
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
28
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
28
  }
llvm::format_object<unsigned int, unsigned long long, unsigned long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
122
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
122
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
122
  }
llvm::format_object<char const*, unsigned long, char>::snprint(char*, unsigned int) const
Line
Count
Source
108
44
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
44
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
44
  }
llvm::format_object<int, int, unsigned long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
5
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
5
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
5
  }
llvm::format_object<unsigned int, char>::snprint(char*, unsigned int) const
Line
Count
Source
108
4.28k
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
4.28k
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
4.28k
  }
llvm::format_object<char const*, unsigned long long>::snprint(char*, unsigned int) const
Line
Count
Source
108
218
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
218
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
218
  }
llvm::format_object<unsigned long long, unsigned long long, unsigned long long, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
15
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
15
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
15
  }
llvm::format_object<char const*, unsigned int, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
3
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
3
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
3
  }
llvm::format_object<char const*, unsigned short, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
1
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
1
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
1
  }
llvm::format_object<char const*, unsigned int, unsigned char>::snprint(char*, unsigned int) const
Line
Count
Source
108
2
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
2
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
2
  }
llvm::format_object<char const*, unsigned int, unsigned short, unsigned char, unsigned char, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
26
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
26
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
26
  }
llvm::format_object<unsigned long>::snprint(char*, unsigned int) const
Line
Count
Source
108
56
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
56
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
56
  }
llvm::format_object<char const*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, char const*>::snprint(char*, unsigned int) const
Line
Count
Source
108
1
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
1
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
1
  }
llvm::format_object<char const*, int, int>::snprint(char*, unsigned int) const
Line
Count
Source
108
8
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
8
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
8
  }
llvm::format_object<int, int, int>::snprint(char*, unsigned int) const
Line
Count
Source
108
7
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
7
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
7
  }
llvm::format_object<unsigned long, unsigned int>::snprint(char*, unsigned int) const
Line
Count
Source
108
744
  int snprint(char *Buffer, unsigned BufferSize) const override {
109
744
    return snprint_tuple(Buffer, BufferSize, index_sequence_for<Ts...>());
110
744
  }
111
};
112
113
/// These are helper functions used to produce formatted output.  They use
114
/// template type deduction to construct the appropriate instance of the
115
/// format_object class to simplify their construction.
116
///
117
/// This is typically used like:
118
/// \code
119
///   OS << format("%0.4f", myfloat) << '\n';
120
/// \endcode
121
122
template <typename... Ts>
123
6.86M
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
6.86M
  return format_object<Ts...>(Fmt, Vals...);
125
6.86M
}
llvm::format_object<unsigned int> llvm::format<unsigned int>(char const*, unsigned int const&)
Line
Count
Source
123
548k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
548k
  return format_object<Ts...>(Fmt, Vals...);
125
548k
}
llvm::format_object<long long> llvm::format<long long>(char const*, long long const&)
Line
Count
Source
123
841k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
841k
  return format_object<Ts...>(Fmt, Vals...);
125
841k
}
llvm::format_object<float> llvm::format<float>(char const*, float const&)
Line
Count
Source
123
1.86k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
1.86k
  return format_object<Ts...>(Fmt, Vals...);
125
1.86k
}
llvm::format_object<unsigned long long> llvm::format<unsigned long long>(char const*, unsigned long long const&)
Line
Count
Source
123
609k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
609k
  return format_object<Ts...>(Fmt, Vals...);
125
609k
}
llvm::format_object<char const*, unsigned int> llvm::format<char const*, unsigned int>(char const*, char const* const&, unsigned int const&)
Line
Count
Source
123
36
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
36
  return format_object<Ts...>(Fmt, Vals...);
125
36
}
llvm::format_object<unsigned short> llvm::format<unsigned short>(char const*, unsigned short const&)
Line
Count
Source
123
139k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
139k
  return format_object<Ts...>(Fmt, Vals...);
125
139k
}
llvm::format_object<double> llvm::format<double>(char const*, double const&)
Line
Count
Source
123
237k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
237k
  return format_object<Ts...>(Fmt, Vals...);
125
237k
}
llvm::format_object<unsigned char> llvm::format<unsigned char>(char const*, unsigned char const&)
Line
Count
Source
123
4.37M
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
4.37M
  return format_object<Ts...>(Fmt, Vals...);
125
4.37M
}
Unexecuted instantiation: llvm::format_object<unsigned int, char const*, char const*> llvm::format<unsigned int, char const*, char const*>(char const*, unsigned int const&, char const* const&, char const* const&)
llvm::format_object<unsigned int, unsigned int, double> llvm::format<unsigned int, unsigned int, double>(char const*, unsigned int const&, unsigned int const&, double const&)
Line
Count
Source
123
939
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
939
  return format_object<Ts...>(Fmt, Vals...);
125
939
}
llvm::format_object<long> llvm::format<long>(char const*, long const&)
Line
Count
Source
123
332
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
332
  return format_object<Ts...>(Fmt, Vals...);
125
332
}
llvm::format_object<int, double> llvm::format<int, double>(char const*, int const&, double const&)
Line
Count
Source
123
154
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
154
  return format_object<Ts...>(Fmt, Vals...);
125
154
}
Unexecuted instantiation: llvm::format_object<unsigned int, unsigned int, unsigned int, char const*, char const*> llvm::format<unsigned int, unsigned int, unsigned int, char const*, char const*>(char const*, unsigned int const&, unsigned int const&, unsigned int const&, char const* const&, char const* const&)
llvm::format_object<double, double> llvm::format<double, double>(char const*, double const&, double const&)
Line
Count
Source
123
14.2k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
14.2k
  return format_object<Ts...>(Fmt, Vals...);
125
14.2k
}
llvm::format_object<int> llvm::format<int>(char const*, int const&)
Line
Count
Source
123
9.04k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
9.04k
  return format_object<Ts...>(Fmt, Vals...);
125
9.04k
}
Unexecuted instantiation: llvm::format_object<int, char const*> llvm::format<int, char const*>(char const*, int const&, char const* const&)
Unexecuted instantiation: llvm::format_object<int, unsigned long> llvm::format<int, unsigned long>(char const*, int const&, unsigned long const&)
llvm::format_object<unsigned long, unsigned long> llvm::format<unsigned long, unsigned long>(char const*, unsigned long const&, unsigned long const&)
Line
Count
Source
123
3
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
3
  return format_object<Ts...>(Fmt, Vals...);
125
3
}
llvm::format_object<unsigned int, unsigned int> llvm::format<unsigned int, unsigned int>(char const*, unsigned int const&, unsigned int const&)
Line
Count
Source
123
57.1k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
57.1k
  return format_object<Ts...>(Fmt, Vals...);
125
57.1k
}
llvm::format_object<unsigned long, unsigned long long> llvm::format<unsigned long, unsigned long long>(char const*, unsigned long const&, unsigned long long const&)
Line
Count
Source
123
12
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
12
  return format_object<Ts...>(Fmt, Vals...);
125
12
}
llvm::format_object<char const*> llvm::format<char const*>(char const*, char const* const&)
Line
Count
Source
123
3.57k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
3.57k
  return format_object<Ts...>(Fmt, Vals...);
125
3.57k
}
llvm::format_object<char const*, char const*> llvm::format<char const*, char const*>(char const*, char const* const&, char const* const&)
Line
Count
Source
123
533
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
533
  return format_object<Ts...>(Fmt, Vals...);
125
533
}
llvm::format_object<llvm::dwarf::Tag> llvm::format<llvm::dwarf::Tag>(char const*, llvm::dwarf::Tag const&)
Line
Count
Source
123
2
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
2
  return format_object<Ts...>(Fmt, Vals...);
125
2
}
llvm::format_object<llvm::dwarf::Attribute> llvm::format<llvm::dwarf::Attribute>(char const*, llvm::dwarf::Attribute const&)
Line
Count
Source
123
4
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
4
  return format_object<Ts...>(Fmt, Vals...);
125
4
}
llvm::format_object<llvm::dwarf::Form> llvm::format<llvm::dwarf::Form>(char const*, llvm::dwarf::Form const&)
Line
Count
Source
123
2
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
2
  return format_object<Ts...>(Fmt, Vals...);
125
2
}
llvm::format_object<unsigned int, unsigned int, unsigned long long> llvm::format<unsigned int, unsigned int, unsigned long long>(char const*, unsigned int const&, unsigned int const&, unsigned long long const&)
Line
Count
Source
123
1.59k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
1.59k
  return format_object<Ts...>(Fmt, Vals...);
125
1.59k
}
llvm::format_object<llvm::dwarf::Index> llvm::format<llvm::dwarf::Index>(char const*, llvm::dwarf::Index const&)
Line
Count
Source
123
2
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
2
  return format_object<Ts...>(Fmt, Vals...);
125
2
}
llvm::format_object<unsigned int, unsigned long long> llvm::format<unsigned int, unsigned long long>(char const*, unsigned int const&, unsigned long long const&)
Line
Count
Source
123
114
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
114
  return format_object<Ts...>(Fmt, Vals...);
125
114
}
llvm::format_object<unsigned int, char const*> llvm::format<unsigned int, char const*>(char const*, unsigned int const&, char const* const&)
Line
Count
Source
123
2.93k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
2.93k
  return format_object<Ts...>(Fmt, Vals...);
125
2.93k
}
llvm::format_object<unsigned short, unsigned int> llvm::format<unsigned short, unsigned int>(char const*, unsigned short const&, unsigned int const&)
Line
Count
Source
123
1
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
1
  return format_object<Ts...>(Fmt, Vals...);
125
1
}
llvm::format_object<unsigned int, unsigned short, unsigned short> llvm::format<unsigned int, unsigned short, unsigned short>(char const*, unsigned int const&, unsigned short const&, unsigned short const&)
Line
Count
Source
123
1
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
1
  return format_object<Ts...>(Fmt, Vals...);
125
1
}
llvm::format_object<unsigned int, unsigned char> llvm::format<unsigned int, unsigned char>(char const*, unsigned int const&, unsigned char const&)
Line
Count
Source
123
2
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
2
  return format_object<Ts...>(Fmt, Vals...);
125
2
}
llvm::format_object<unsigned int, unsigned char, unsigned char> llvm::format<unsigned int, unsigned char, unsigned char>(char const*, unsigned int const&, unsigned char const&, unsigned char const&)
Line
Count
Source
123
111
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
111
  return format_object<Ts...>(Fmt, Vals...);
125
111
}
llvm::format_object<unsigned int, unsigned int, unsigned char> llvm::format<unsigned int, unsigned int, unsigned char>(char const*, unsigned int const&, unsigned int const&, unsigned char const&)
Line
Count
Source
123
1
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
1
  return format_object<Ts...>(Fmt, Vals...);
125
1
}
llvm::format_object<unsigned int, unsigned short, unsigned char, unsigned char> llvm::format<unsigned int, unsigned short, unsigned char, unsigned char>(char const*, unsigned int const&, unsigned short const&, unsigned char const&, unsigned char const&)
Line
Count
Source
123
32
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
32
  return format_object<Ts...>(Fmt, Vals...);
125
32
}
llvm::format_object<unsigned int, unsigned short> llvm::format<unsigned int, unsigned short>(char const*, unsigned int const&, unsigned short const&)
Line
Count
Source
123
110
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
110
  return format_object<Ts...>(Fmt, Vals...);
125
110
}
llvm::format_object<unsigned int, unsigned int, unsigned int> llvm::format<unsigned int, unsigned int, unsigned int>(char const*, unsigned int const&, unsigned int const&, unsigned int const&)
Line
Count
Source
123
162
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
162
  return format_object<Ts...>(Fmt, Vals...);
125
162
}
llvm::format_object<unsigned int, unsigned int, int> llvm::format<unsigned int, unsigned int, int>(char const*, unsigned int const&, unsigned int const&, int const&)
Line
Count
Source
123
290
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
290
  return format_object<Ts...>(Fmt, Vals...);
125
290
}
llvm::format_object<int, unsigned int, unsigned int> llvm::format<int, unsigned int, unsigned int>(char const*, int const&, unsigned int const&, unsigned int const&)
Line
Count
Source
123
290
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
290
  return format_object<Ts...>(Fmt, Vals...);
125
290
}
llvm::format_object<signed char> llvm::format<signed char>(char const*, signed char const&)
Line
Count
Source
123
384
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
384
  return format_object<Ts...>(Fmt, Vals...);
125
384
}
llvm::format_object<char const*, unsigned char> llvm::format<char const*, unsigned char>(char const*, char const* const&, unsigned char const&)
Line
Count
Source
123
4.42k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
4.42k
  return format_object<Ts...>(Fmt, Vals...);
125
4.42k
}
llvm::format_object<unsigned long long, unsigned long long> llvm::format<unsigned long long, unsigned long long>(char const*, unsigned long long const&, unsigned long long const&)
Line
Count
Source
123
131
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
131
  return format_object<Ts...>(Fmt, Vals...);
125
131
}
llvm::format_object<unsigned long long, unsigned short> llvm::format<unsigned long long, unsigned short>(char const*, unsigned long long const&, unsigned short const&)
Line
Count
Source
123
14
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
14
  return format_object<Ts...>(Fmt, Vals...);
125
14
}
llvm::format_object<unsigned long long, unsigned int> llvm::format<unsigned long long, unsigned int>(char const*, unsigned long long const&, unsigned int const&)
Line
Count
Source
123
22
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
22
  return format_object<Ts...>(Fmt, Vals...);
125
22
}
llvm::format_object<unsigned long long, unsigned long long, unsigned int> llvm::format<unsigned long long, unsigned long long, unsigned int>(char const*, unsigned long long const&, unsigned long long const&, unsigned int const&)
Line
Count
Source
123
20
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
20
  return format_object<Ts...>(Fmt, Vals...);
125
20
}
llvm::format_object<unsigned long long, unsigned int, unsigned short> llvm::format<unsigned long long, unsigned int, unsigned short>(char const*, unsigned long long const&, unsigned int const&, unsigned short const&)
Line
Count
Source
123
1.85k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
1.85k
  return format_object<Ts...>(Fmt, Vals...);
125
1.85k
}
llvm::format_object<unsigned short, unsigned char, unsigned int> llvm::format<unsigned short, unsigned char, unsigned int>(char const*, unsigned short const&, unsigned char const&, unsigned int const&)
Line
Count
Source
123
1.85k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
1.85k
  return format_object<Ts...>(Fmt, Vals...);
125
1.85k
}
llvm::format_object<unsigned int, unsigned char, unsigned long long> llvm::format<unsigned int, unsigned char, unsigned long long>(char const*, unsigned int const&, unsigned char const&, unsigned long long const&)
Line
Count
Source
123
2
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
2
  return format_object<Ts...>(Fmt, Vals...);
125
2
}
llvm::format_object<unsigned int, unsigned long long, unsigned int> llvm::format<unsigned int, unsigned long long, unsigned int>(char const*, unsigned int const&, unsigned long long const&, unsigned int const&)
Line
Count
Source
123
6
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
6
  return format_object<Ts...>(Fmt, Vals...);
125
6
}
llvm::format_object<unsigned int, unsigned int, unsigned long long, unsigned int, unsigned int, unsigned long long> llvm::format<unsigned int, unsigned int, unsigned long long, unsigned int, unsigned int, unsigned long long>(char const*, unsigned int const&, unsigned int const&, unsigned long long const&, unsigned int const&, unsigned int const&, unsigned long long const&)
Line
Count
Source
123
28
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
28
  return format_object<Ts...>(Fmt, Vals...);
125
28
}
llvm::format_object<unsigned int, unsigned long long, unsigned long long> llvm::format<unsigned int, unsigned long long, unsigned long long>(char const*, unsigned int const&, unsigned long long const&, unsigned long long const&)
Line
Count
Source
123
122
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
122
  return format_object<Ts...>(Fmt, Vals...);
125
122
}
llvm::format_object<char const*, unsigned long, char> llvm::format<char const*, unsigned long, char>(char const*, char const* const&, unsigned long const&, char const&)
Line
Count
Source
123
44
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
44
  return format_object<Ts...>(Fmt, Vals...);
125
44
}
llvm::format_object<int, int, unsigned long long> llvm::format<int, int, unsigned long long>(char const*, int const&, int const&, unsigned long long const&)
Line
Count
Source
123
5
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
5
  return format_object<Ts...>(Fmt, Vals...);
125
5
}
llvm::format_object<unsigned int, char> llvm::format<unsigned int, char>(char const*, unsigned int const&, char const&)
Line
Count
Source
123
4.28k
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
4.28k
  return format_object<Ts...>(Fmt, Vals...);
125
4.28k
}
llvm::format_object<char const*, unsigned long long> llvm::format<char const*, unsigned long long>(char const*, char const* const&, unsigned long long const&)
Line
Count
Source
123
218
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
218
  return format_object<Ts...>(Fmt, Vals...);
125
218
}
llvm::format_object<unsigned long long, unsigned long long, unsigned long long, unsigned int> llvm::format<unsigned long long, unsigned long long, unsigned long long, unsigned int>(char const*, unsigned long long const&, unsigned long long const&, unsigned long long const&, unsigned int const&)
Line
Count
Source
123
15
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
15
  return format_object<Ts...>(Fmt, Vals...);
125
15
}
llvm::format_object<char const*, unsigned int, unsigned int> llvm::format<char const*, unsigned int, unsigned int>(char const*, char const* const&, unsigned int const&, unsigned int const&)
Line
Count
Source
123
3
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
3
  return format_object<Ts...>(Fmt, Vals...);
125
3
}
llvm::format_object<char const*, unsigned short, unsigned int> llvm::format<char const*, unsigned short, unsigned int>(char const*, char const* const&, unsigned short const&, unsigned int const&)
Line
Count
Source
123
1
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
1
  return format_object<Ts...>(Fmt, Vals...);
125
1
}
llvm::format_object<char const*, unsigned int, unsigned char> llvm::format<char const*, unsigned int, unsigned char>(char const*, char const* const&, unsigned int const&, unsigned char const&)
Line
Count
Source
123
2
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
2
  return format_object<Ts...>(Fmt, Vals...);
125
2
}
llvm::format_object<char const*, unsigned int, unsigned short, unsigned char, unsigned char, unsigned int> llvm::format<char const*, unsigned int, unsigned short, unsigned char, unsigned char, unsigned int>(char const*, char const* const&, unsigned int const&, unsigned short const&, unsigned char const&, unsigned char const&, unsigned int const&)
Line
Count
Source
123
26
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
26
  return format_object<Ts...>(Fmt, Vals...);
125
26
}
llvm::format_object<unsigned long> llvm::format<unsigned long>(char const*, unsigned long const&)
Line
Count
Source
123
56
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
56
  return format_object<Ts...>(Fmt, Vals...);
125
56
}
llvm::format_object<char const*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, char const*> llvm::format<char const*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, char const*>(char const*, char const* const&, unsigned int const&, unsigned int const&, unsigned int const&, unsigned int const&, unsigned int const&, unsigned int const&, unsigned int const&, char const* const&)
Line
Count
Source
123
1
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
1
  return format_object<Ts...>(Fmt, Vals...);
125
1
}
llvm::format_object<char const*, int, int> llvm::format<char const*, int, int>(char const*, char const* const&, int const&, int const&)
Line
Count
Source
123
8
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
8
  return format_object<Ts...>(Fmt, Vals...);
125
8
}
llvm::format_object<int, int, int> llvm::format<int, int, int>(char const*, int const&, int const&, int const&)
Line
Count
Source
123
7
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
7
  return format_object<Ts...>(Fmt, Vals...);
125
7
}
llvm::format_object<unsigned long, unsigned int> llvm::format<unsigned long, unsigned int>(char const*, unsigned long const&, unsigned int const&)
Line
Count
Source
123
744
inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124
744
  return format_object<Ts...>(Fmt, Vals...);
125
744
}
126
127
/// This is a helper class for left_justify, right_justify, and center_justify.
128
class FormattedString {
129
public:
130
  enum Justification { JustifyNone, JustifyLeft, JustifyRight, JustifyCenter };
131
  FormattedString(StringRef S, unsigned W, Justification J)
132
337k
      : Str(S), Width(W), Justify(J) {}
133
134
private:
135
  StringRef Str;
136
  unsigned Width;
137
  Justification Justify;
138
  friend class raw_ostream;
139
};
140
141
/// left_justify - append spaces after string so total output is
142
/// \p Width characters.  If \p Str is larger that \p Width, full string
143
/// is written with no padding.
144
1.74k
inline FormattedString left_justify(StringRef Str, unsigned Width) {
145
1.74k
  return FormattedString(Str, Width, FormattedString::JustifyLeft);
146
1.74k
}
147
148
/// right_justify - add spaces before string so total output is
149
/// \p Width characters.  If \p Str is larger that \p Width, full string
150
/// is written with no padding.
151
335k
inline FormattedString right_justify(StringRef Str, unsigned Width) {
152
335k
  return FormattedString(Str, Width, FormattedString::JustifyRight);
153
335k
}
154
155
/// center_justify - add spaces before and after string so total output is
156
/// \p Width characters.  If \p Str is larger that \p Width, full string
157
/// is written with no padding.
158
inline FormattedString center_justify(StringRef Str, unsigned Width) {
159
  return FormattedString(Str, Width, FormattedString::JustifyCenter);
160
}
161
162
/// This is a helper class used for format_hex() and format_decimal().
163
class FormattedNumber {
164
  uint64_t HexValue;
165
  int64_t DecValue;
166
  unsigned Width;
167
  bool Hex;
168
  bool Upper;
169
  bool HexPrefix;
170
  friend class raw_ostream;
171
172
public:
173
  FormattedNumber(uint64_t HV, int64_t DV, unsigned W, bool H, bool U,
174
                  bool Prefix)
175
      : HexValue(HV), DecValue(DV), Width(W), Hex(H), Upper(U),
176
25.7M
        HexPrefix(Prefix) {}
177
};
178
179
/// format_hex - Output \p N as a fixed width hexadecimal. If number will not
180
/// fit in width, full number is still printed.  Examples:
181
///   OS << format_hex(255, 4)              => 0xff
182
///   OS << format_hex(255, 4, true)        => 0xFF
183
///   OS << format_hex(255, 6)              => 0x00ff
184
///   OS << format_hex(255, 2)              => 0xff
185
inline FormattedNumber format_hex(uint64_t N, unsigned Width,
186
69.2k
                                  bool Upper = false) {
187
69.2k
  assert(Width <= 18 && "hex width must be <= 18");
188
69.2k
  return FormattedNumber(N, 0, Width, true, Upper, true);
189
69.2k
}
190
191
/// format_hex_no_prefix - Output \p N as a fixed width hexadecimal. Does not
192
/// prepend '0x' to the outputted string.  If number will not fit in width,
193
/// full number is still printed.  Examples:
194
///   OS << format_hex_no_prefix(255, 2)              => ff
195
///   OS << format_hex_no_prefix(255, 2, true)        => FF
196
///   OS << format_hex_no_prefix(255, 4)              => 00ff
197
///   OS << format_hex_no_prefix(255, 1)              => ff
198
inline FormattedNumber format_hex_no_prefix(uint64_t N, unsigned Width,
199
2.94M
                                            bool Upper = false) {
200
2.94M
  assert(Width <= 16 && "hex width must be <= 16");
201
2.94M
  return FormattedNumber(N, 0, Width, true, Upper, false);
202
2.94M
}
203
204
/// format_decimal - Output \p N as a right justified, fixed-width decimal. If
205
/// number will not fit in width, full number is still printed.  Examples:
206
///   OS << format_decimal(0, 5)     => "    0"
207
///   OS << format_decimal(255, 5)   => "  255"
208
///   OS << format_decimal(-1, 3)    => " -1"
209
///   OS << format_decimal(12345, 3) => "12345"
210
inline FormattedNumber format_decimal(int64_t N, unsigned Width) {
211
  return FormattedNumber(0, N, Width, false, false, false);
212
}
213
214
class FormattedBytes {
215
  ArrayRef<uint8_t> Bytes;
216
217
  // If not None, display offsets for each line relative to starting value.
218
  Optional<uint64_t> FirstByteOffset;
219
  uint32_t IndentLevel;  // Number of characters to indent each line.
220
  uint32_t NumPerLine;   // Number of bytes to show per line.
221
  uint8_t ByteGroupSize; // How many hex bytes are grouped without spaces
222
  bool Upper;            // Show offset and hex bytes as upper case.
223
  bool ASCII;            // Show the ASCII bytes for the hex bytes to the right.
224
  friend class raw_ostream;
225
226
public:
227
  FormattedBytes(ArrayRef<uint8_t> B, uint32_t IL, Optional<uint64_t> O,
228
                 uint32_t NPL, uint8_t BGS, bool U, bool A)
229
      : Bytes(B), FirstByteOffset(O), IndentLevel(IL), NumPerLine(NPL),
230
5.18k
        ByteGroupSize(BGS), Upper(U), ASCII(A) {
231
5.18k
232
5.18k
    if (ByteGroupSize > NumPerLine)
233
80
      ByteGroupSize = NumPerLine;
234
5.18k
  }
235
};
236
237
inline FormattedBytes
238
format_bytes(ArrayRef<uint8_t> Bytes, Optional<uint64_t> FirstByteOffset = None,
239
             uint32_t NumPerLine = 16, uint8_t ByteGroupSize = 4,
240
2.96k
             uint32_t IndentLevel = 0, bool Upper = false) {
241
2.96k
  return FormattedBytes(Bytes, IndentLevel, FirstByteOffset, NumPerLine,
242
2.96k
                        ByteGroupSize, Upper, false);
243
2.96k
}
244
245
inline FormattedBytes
246
format_bytes_with_ascii(ArrayRef<uint8_t> Bytes,
247
                        Optional<uint64_t> FirstByteOffset = None,
248
                        uint32_t NumPerLine = 16, uint8_t ByteGroupSize = 4,
249
2.22k
                        uint32_t IndentLevel = 0, bool Upper = false) {
250
2.22k
  return FormattedBytes(Bytes, IndentLevel, FirstByteOffset, NumPerLine,
251
2.22k
                        ByteGroupSize, Upper, true);
252
2.22k
}
253
254
} // end namespace llvm
255
256
#endif