mirror of
https://github.com/fmtlib/fmt.git
synced 2026-02-14 22:29:56 +08:00
Add IWYU pragma to base.h
So clang-tidy is happy if you include <fmt/format.h> for fmt::formatter<T>.
This commit is contained in:
parent
407c905e45
commit
7578fb733b
@ -8,6 +8,8 @@
|
|||||||
#ifndef FMT_BASE_H_
|
#ifndef FMT_BASE_H_
|
||||||
#define FMT_BASE_H_
|
#define FMT_BASE_H_
|
||||||
|
|
||||||
|
// IWYU pragma: private, include "fmt/format.h"
|
||||||
|
|
||||||
#if defined(FMT_IMPORT_STD) && !defined(FMT_MODULE)
|
#if defined(FMT_IMPORT_STD) && !defined(FMT_MODULE)
|
||||||
# define FMT_MODULE
|
# define FMT_MODULE
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user