From efce85539ca788a4f3205aba825dc1962606181a Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Thu, 20 Jul 2017 19:29:51 -0700 Subject: [PATCH] Apply clang-format to folly/tracing/ Summary: [Folly] Apply `clang-format` to `folly/tracing/`. Reviewed By: Orvid Differential Revision: D5460511 fbshipit-source-id: c7a7d34211044a1b76934f184a8552a96d0bad91 --- folly/tracing/StaticTracepoint-ELFx86.h | 2 ++ folly/tracing/StaticTracepoint.h | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/folly/tracing/StaticTracepoint-ELFx86.h b/folly/tracing/StaticTracepoint-ELFx86.h index 6d35be76..76c1cd86 100644 --- a/folly/tracing/StaticTracepoint-ELFx86.h +++ b/folly/tracing/StaticTracepoint-ELFx86.h @@ -16,6 +16,8 @@ #pragma once +// clang-format off + // Default constraint for the probe arguments as operands. #ifndef FOLLY_SDT_ARG_CONSTRAINT #define FOLLY_SDT_ARG_CONSTRAINT "nor" diff --git a/folly/tracing/StaticTracepoint.h b/folly/tracing/StaticTracepoint.h index 6b37db67..8e06f928 100644 --- a/folly/tracing/StaticTracepoint.h +++ b/folly/tracing/StaticTracepoint.h @@ -19,9 +19,11 @@ #if defined(__ELF__) && (defined(__x86_64__) || defined(__i386__)) #include -#define FOLLY_SDT(provider, name, ...) \ - FOLLY_SDT_PROBE_N( \ - provider, name, FOLLY_SDT_NARG(0, ##__VA_ARGS__), ##__VA_ARGS__) +#define FOLLY_SDT(provider, name, ...) \ + FOLLY_SDT_PROBE_N( \ + provider, name, FOLLY_SDT_NARG(0, ##__VA_ARGS__), ##__VA_ARGS__) #else -#define FOLLY_SDT(provider, name, ...) do {} while(0) +#define FOLLY_SDT(provider, name, ...) \ + do { \ + } while (0) #endif -- 2.34.1