chromium/third_party/google_benchmark/src/src/log.h

#ifndef BENCHMARK_LOG_H_
#define BENCHMARK_LOG_H_

#include <iostream>
#include <ostream>

// NOTE: this is also defined in benchmark.h but we're trying to avoid a
// dependency.
// The _MSVC_LANG check should detect Visual Studio 2015 Update 3 and newer.
#if __cplusplus >= 201103L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L)
#define BENCHMARK_HAS_CXX11
#endif

namespace benchmark {
namespace internal {

EndLType;

class LogType {};

template <class Tp>
LogType& operator<<(LogType& log, Tp const& value) {}

inline LogType& operator<<(LogType& log, EndLType* m) {}

inline int& LogLevel() {}

inline LogType& GetNullLogInstance() {}

inline LogType& GetErrorLogInstance() {}

inline LogType& GetLogInstanceForLevel(int level) {}

}  // end namespace internal
}  // end namespace benchmark

// clang-format off
#define BM_VLOG(x)
// clang-format on
#endif