diff options
author | tastytea | 2020-01-14 23:45:39 +0100 |
---|---|---|
committer | tastytea | 2020-01-14 23:45:39 +0100 |
commit | 0596406113aee63d92d7b914ef8d63799ab66a39 (patch) | |
tree | 671a25d48ace8dcbbd0c620a85b6e1a8da2fea13 | |
parent | a237d74a81b9e1cf84a65bf7a2f365e09507dca3 (diff) | |
download | mastodonpp-0596406113aee63d92d7b914ef8d63799ab66a39.tar mastodonpp-0596406113aee63d92d7b914ef8d63799ab66a39.tar.gz mastodonpp-0596406113aee63d92d7b914ef8d63799ab66a39.zip |
Silence false positive clang-tidy warnings in log.hpp.
-rw-r--r-- | src/log.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/log.hpp b/src/log.hpp index 4d709b4..151d799 100644 --- a/src/log.hpp +++ b/src/log.hpp @@ -23,7 +23,7 @@ namespace mastodonpp { -using std::cerr; +using std::cerr; // NOLINT(misc-unused-using-decls) using std::string_view; //! @private @@ -40,13 +40,16 @@ constexpr auto shorten_filename(const string_view &filename) return filename; } +// NOLINTNEXTLINE(cppcoreguidelines-macro-usage) #define commonlog cerr << '[' << shorten_filename(__FILE__) \ << ':' << __LINE__ << ']' #ifndef NDEBUG +// NOLINTNEXTLINE(cppcoreguidelines-macro-usage) #define debuglog commonlog << " DEBUG: " #else #define debuglog false && cerr #endif +// NOLINTNEXTLINE(cppcoreguidelines-macro-usage) #define errorlog commonlog << " ERROR: " } // namespace mastodonpp |