20#include <fmt/compile.h>
34void msg_(fmt::string_view
fmt, fmt::format_args args);
37void err_(fmt::string_view
fmt, fmt::format_args args);
39void term_(fmt::string_view
fmt, fmt::format_args args);
45template<
typename ...Args>
46void err_fmt(fmt::format_string<Args...>
fmt, Args&&... args)
48 err_(
fmt,fmt::make_format_args(args...));
51template<
typename ...Args>
57template<
typename ...Args>
60 term_(
fmt,fmt::make_format_args(args...));
63template<
typename ...Args>
64void msg_fmt(fmt::format_string<Args...>
fmt, Args&&... args)
66 msg_(
fmt,fmt::make_format_args(args...));
69template<
typename ...Args>
72 warn_(type,file,line,
fmt,fmt::make_format_args(args...));
75template<
typename ...Args>
82template<std::
size_t N>
85 return str[N-2]==
'\n';
88#define msg_no_newline_allowed(x) \
89 static_assert(!has_newline_at_end(x),"text: \"" x "\" should not have \\n at end");
91#define msg_newline_required(x) \
92 static_assert(has_newline_at_end(x),"text: \"" x "\" should have \\n at end");
95 msg_fmt(FMT_STRING(fmt),##__VA_ARGS__)
97#define warn(file,line,fmt,...) do { \
98 msg_no_newline_allowed(fmt); \
99 warn_fmt(WarningType::Generic,file,line,FMT_STRING(fmt),##__VA_ARGS__); \
102#define warn_undoc(file,line,fmt,...) do { \
103 msg_no_newline_allowed(fmt); \
104 warn_fmt(WarningType::Undocumented,file,line,FMT_STRING(fmt),##__VA_ARGS__); \
107#define warn_incomplete_doc(file,line,fmt,...) do { \
108 msg_no_newline_allowed(fmt); \
109 warn_fmt(WarningType::IncompleteDoc,file,line,FMT_STRING(fmt),##__VA_ARGS__); \
112#define warn_doc_error(file,line,fmt,...) do { \
113 msg_no_newline_allowed(fmt); \
114 warn_fmt(WarningType::DocError,file,line,FMT_STRING(fmt),##__VA_ARGS__); \
117#define warn_layout(file,line,fmt,...) do { \
118 msg_no_newline_allowed(fmt); \
119 warn_fmt(WarningType::Layout,file,line,FMT_STRING(fmt),##__VA_ARGS__); \
122#define warn_uncond(fmt,...) do { \
123 msg_newline_required(fmt); \
124 warn_uncond_fmt(FMT_STRING(fmt),##__VA_ARGS__); \
127#define err(fmt,...) do { \
128 msg_newline_required(fmt); \
129 err_fmt(FMT_STRING(fmt),##__VA_ARGS__); \
132#define err_full(file,line,fmt,...) do { \
133 msg_no_newline_allowed(fmt); \
134 err_full_fmt(file,line,FMT_STRING(fmt),##__VA_ARGS__); \
137#define term(fmt,...) do { \
138 msg_newline_required(fmt); \
139 term_fmt(FMT_STRING(fmt),##__VA_ARGS__); \
159 std::string result=
"Unknown";
175 std::string result=
"Unknown";
190 std::string result=
"Unknown";
208 std::string result=
"Unknown";
223 std::string result=
"Unknown";
238 std::string result=
"Unknown";
268 std::string result=
"Unknown";
Wrapper class for the Entry type.
std::string to_string() const
Wrapper class for the MemberListType type.
std::string to_string() const
This is an alternative implementation of QCString.
const std::string & str() const
Wrapper class for a number of boolean properties.
std::string to_string() const
void warn_uncond_fmt(fmt::format_string< Args... > fmt, Args &&... args)
void err_(fmt::string_view fmt, fmt::format_args args)
QCString warn_line(const QCString &file, int line)
void term_fmt(fmt::format_string< Args... > fmt, Args &&... args)
constexpr bool has_newline_at_end(const char(&str)[N])
void warn_(WarningType type, const QCString &file, int line, fmt::string_view fmt, fmt::format_args args)
void warn_uncond_(fmt::string_view fmt, fmt::format_args args)
void msg_(fmt::string_view fmt, fmt::format_args args)
void msg_fmt(fmt::format_string< Args... > fmt, Args &&... args)
void err_fmt(fmt::format_string< Args... > fmt, Args &&... args)
void term_(fmt::string_view fmt, fmt::format_args args)
void err_full_(const QCString &file, int line, fmt::string_view fmt, fmt::format_args args)
void warn_fmt(WarningType type, const QCString &file, int line, fmt::format_string< Args... > fmt, Args &&... args)
void err_full_fmt(const QCString &file, int line, fmt::format_string< Args... > fmt, Args &&... args)
auto format(EntryType type, format_context &ctx) const
This file contains a number of basic enums and types.
MethodTypes
Kind of method.
Protection
Protection level of members.
SrcLangExt
Language as given by extension.
Relationship
Kind of member relationship.
RelatesType
Type of member relation.
Specifier
Virtualness of a member.