@@ -185,10 +185,10 @@ BENCHMARK(BM_test)->Unit(benchmark::kMillisecond);
185185
186186#ifdef CODSPEED_ENABLED
187187#include < codspeed.h>
188- #include < measurement.hpp>
189188
190189#include < filesystem>
191- #endif // CODSPEED_ENABLED
190+ #include < measurement.hpp>
191+ #endif // CODSPEED_ENABLED
192192
193193#if defined(_MSC_VER)
194194#include < intrin.h> // for _ReadWriteBarrier
@@ -947,7 +947,7 @@ class BENCHMARK_EXPORT BENCHMARK_INTERNAL_CACHELINE_ALIGNED State {
947947 public:
948948 const IterationCount max_iterations;
949949#ifdef CODSPEED_INSTRUMENTATION
950- codspeed::CodSpeed * codspeed_;
950+ codspeed::CodSpeed* codspeed_;
951951#endif
952952
953953 private:
@@ -970,11 +970,11 @@ class BENCHMARK_EXPORT BENCHMARK_INTERNAL_CACHELINE_ALIGNED State {
970970 internal::ThreadTimer* timer, internal::ThreadManager* manager,
971971 internal::PerfCountersMeasurement* perf_counters_measurement,
972972 ProfilerManager* profiler_manager
973- #ifdef CODSPEED_INSTRUMENTATION
973+ #ifdef CODSPEED_INSTRUMENTATION
974974 ,
975- codspeed::CodSpeed * codspeed = NULL
976- #endif
977- );
975+ codspeed::CodSpeed* codspeed = NULL
976+ #endif
977+ );
978978
979979 void StartKeepRunning ();
980980 // Implementation of KeepRunning() and KeepRunningBatch().
@@ -1459,27 +1459,18 @@ class Fixture : public internal::Benchmark {
14591459#define BENCHMARK_PRIVATE_CONCAT_NAME (BaseClass, Method ) \
14601460 BaseClass##_##Method##_Benchmark
14611461
1462- #ifdef _MSC_VER
1463- #define BENCHMARK_PRIVATE_DECLARE (n ) \
1464- /* NOLINTNEXTLINE(misc-use-anonymous-namespace) */ \
1465- static ::benchmark::internal::Benchmark const * const BENCHMARK_PRIVATE_NAME ( \
1466- n)
1467- #else
1468- #define BENCHMARK_PRIVATE_DECLARE (n ) \
1469- /* NOLINTNEXTLINE(misc-use-anonymous-namespace) */ \
1470- static ::benchmark::internal::Benchmark const * const BENCHMARK_PRIVATE_NAME ( \
1471- n) [[maybe_unused]]
1472- #endif
1462+ #define BENCHMARK_PRIVATE_DECLARE (n ) \
1463+ /* NOLINTNEXTLINE(misc-use-anonymous-namespace) */ \
1464+ static ::benchmark::internal::Benchmark const * const BENCHMARK_PRIVATE_NAME (n)
14731465
14741466#ifdef CODSPEED_ENABLED
1475- #define CUR_FILE \
1476- codspeed::get_path_relative_to_workspace (__FILE__) + "::"
1467+ #define CUR_FILE codspeed::get_path_relative_to_workspace (__FILE__) + "::"
14771468#ifdef _MSC_VER
1478- #define NAMESPACE std::string (" " )
1479- #else
1469+ // TODO: __PRETTY_FUNCTION__ is not available in MSVC and we dont support
1470+ #define __PRETTY_FUNCTION__ " unsupported"
1471+ #endif
14801472#define NAMESPACE \
14811473 (([]() { return codspeed::extract_lambda_namespace (__PRETTY_FUNCTION__); })())
1482- #endif
14831474#define STATIC_NAMESPACE_STRING (name ) static std::string name = NAMESPACE;
14841475
14851476#define FILE_AND_NAMESPACE CUR_FILE + NAMESPACE
@@ -1618,12 +1609,12 @@ class Fixture : public internal::Benchmark {
16181609#ifdef CODSPEED_ENABLED
16191610
16201611#define BENCHMARK_PRIVATE_DECLARE_F (BaseClass, Method ) \
1621- STATIC_NAMESPACE_STRING (ns_##BaseClass##_##Method); \
1612+ STATIC_NAMESPACE_STRING (ns_##BaseClass##_##Method); \
16221613 class BaseClass ##_##Method##_Benchmark : public BaseClass { \
16231614 public: \
16241615 BaseClass##_##Method##_Benchmark() { \
16251616 this ->SetName (CUR_FILE + ns_##BaseClass##_##Method + \
1626- #Method " [" #BaseClass " ]" ); \
1617+ #Method " [" #BaseClass " ]" ); \
16271618 } \
16281619 \
16291620 protected: \
@@ -1669,7 +1660,7 @@ class Fixture : public internal::Benchmark {
16691660 void BenchmarkCase (::benchmark::State&) override ; \
16701661 };
16711662
1672- #else // CODSPEED_ENABLED undefined:
1663+ #else // CODSPEED_ENABLED undefined:
16731664
16741665#define BENCHMARK_PRIVATE_DECLARE_F (BaseClass, Method ) \
16751666 class BaseClass ##_##Method##_Benchmark : public BaseClass { \
0 commit comments