Add vendor/fmt
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 May 2022 20:20:26 +0000 (16:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Jun 2022 20:34:46 +0000 (16:34 -0400)
commit05aa7e19ec97871aad18d7c9787c4c89611cd2cd
treed6d2eff969635c2360ff5ee7f45a3cfb756cf53b
parentb3647fb885288c63d21478ea9a9c85685bc5c5f2
Add vendor/fmt

Add fmt 8.1.1 headers (we will use it in header-only mode). fmt is made
available under the MIT license, which is already in the LICENSES
directory.

Note that an lttng-format.hpp header is added to disable a warning which
prevents us from building with -Werror.

../../../src/vendor/fmt/format-inl.h:2457:11: error: target of initialization might be a candidate for a format attribute [-Werror=suggest-attribute=format]
 2457 |     int (*snprintf_ptr)(char*, size_t, const char*, ...) = FMT_SNPRINTF;
      |           ^~~~~~~~~~~~

The header also ensures that FMT_HEADER_ONLY is defined for all uses of
libfmt.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I5696c09d6e07716b955091922bb27ce082fb2686
17 files changed:
src/common/Makefile.am
src/common/format.hpp [new file with mode: 0644]
src/common/macros.hpp
src/vendor/Makefile.am
src/vendor/fmt/args.h [new file with mode: 0644]
src/vendor/fmt/chrono.h [new file with mode: 0644]
src/vendor/fmt/color.h [new file with mode: 0644]
src/vendor/fmt/compile.h [new file with mode: 0644]
src/vendor/fmt/core.h [new file with mode: 0644]
src/vendor/fmt/format-inl.h [new file with mode: 0644]
src/vendor/fmt/format.h [new file with mode: 0644]
src/vendor/fmt/locale.h [new file with mode: 0644]
src/vendor/fmt/os.h [new file with mode: 0644]
src/vendor/fmt/ostream.h [new file with mode: 0644]
src/vendor/fmt/printf.h [new file with mode: 0644]
src/vendor/fmt/ranges.h [new file with mode: 0644]
src/vendor/fmt/xchar.h [new file with mode: 0644]
This page took 0.026454 seconds and 4 git commands to generate.