Override for include-guard
authorNicholas Ormrod <njormrod@fb.com>
Thu, 30 Oct 2014 18:26:45 +0000 (11:26 -0700)
committerPavlo Kushnir <pavlo@fb.com>
Sat, 8 Nov 2014 02:10:07 +0000 (18:10 -0800)
Summary:
In certain circumstances, it is appropriate to omit and include
guard. Add an option to allow this to be overriden.

Test Plan: Build flint, run it on folly, see no include-guard errors.

Reviewed By: andrei.alexandrescu@fb.com

Subscribers: sdwilsh, louisk, njormrod, folly-diffs@

FB internal diff: D1644170

Tasks: 5486739

Signature: t1:1644170:1414616595:7ac52f474c1312a0c28e89255b1151d56c680acf

folly/detail/AtomicHashUtils.h
folly/test/FBStringTestBenchmarks.cpp.h

index a06db36b2bd53f5803d627641783849b288b0947..04e052cca4937d6d29274c44174fc6a526ec84df 100644 (file)
@@ -18,6 +18,7 @@
 //
 // Note: no include guard; different -inl.h files include this and
 // undef it more than once in a translation unit.
+// override-include-guard
 
 #if !(defined(__x86__) || defined(__i386__) || FOLLY_X64)
 #define FOLLY_SPIN_WAIT(condition)                \
index aba36e1447282ad04176813b15a9b8b8b68b223a..b59bb0861ab0ecb20516ad78f5c285d82fe7c718 100644 (file)
@@ -17,6 +17,8 @@
 /**
  * This file is supposed to be included from within
  * FBStringTest. Do not use otherwise.
+ *
+ * override-include-guard
  */
 
 void BENCHFUN(initRNG)(int iters, int) {