From: Yedidya Feldblum Date: Fri, 21 Jul 2017 02:29:51 +0000 (-0700) Subject: Apply clang-format to folly/tracing/ X-Git-Tag: v2017.07.24.00~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=efce85539ca788a4f3205aba825dc1962606181a;p=folly.git Apply clang-format to folly/tracing/ Summary: [Folly] Apply `clang-format` to `folly/tracing/`. Reviewed By: Orvid Differential Revision: D5460511 fbshipit-source-id: c7a7d34211044a1b76934f184a8552a96d0bad91 --- 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