aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/logging/static_analysis.h
blob: a335d8c6cc158822789fc8cbc061a7d329167a32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

namespace NYT::NLogging {

////////////////////////////////////////////////////////////////////////////////

// Performs a compile-time check of log arguments validity.
// Valid argument lists are:
// 1. (format, args...)
// 2. (error, format, args...)
// If format is not a string literal or argument list
// is not valid, no check is made -- macro turns to
// a no-op.
#define STATIC_ANALYSIS_CHECK_LOG_FORMAT(...)

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT::NLogging

#define STATIC_ANALYSIS_INL_H_
#include "static_analysis-inl.h"
#undef STATIC_ANALYSIS_INL_H_