Ensure curly-braces around control-flow
authorChristopher Dykes <cdykes@fb.com>
Thu, 19 Oct 2017 18:04:53 +0000 (11:04 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 19 Oct 2017 18:10:25 +0000 (11:10 -0700)
commit7ebe7c2a249de44209e8bcc453e1a70bafd4ed19
tree5e21985b5af7af6cd0c0ec22ffacc630bc4d6749
parentbfa61031d36f41aaa907d40371c28ac0e84c8e0d
Ensure curly-braces around control-flow

Summary: The style guidelines say control flow should always have curly braces, and we follow that, mostly. This just uses clang-tidy to clean up everywhere that we weren't.

Reviewed By: markisaa, luciang

Differential Revision: D6097377

fbshipit-source-id: bfe6766c37bd863ecf68851ef93265a200d4259d
70 files changed:
folly/AtomicHashMap-inl.h
folly/ConcurrentSkipList-inl.h
folly/ConcurrentSkipList.h
folly/Conv.h
folly/DiscriminatedPtr.h
folly/Expected.h
folly/FBString.h
folly/FBVector.h
folly/File.cpp
folly/FileUtil.h
folly/Fingerprint.h
folly/FixedString.h
folly/Foreach.h
folly/Format.cpp
folly/GroupVarint.h
folly/Lazy.h
folly/Malloc.h
folly/Memory.h
folly/MemoryMapping.cpp
folly/RWSpinLock.h
folly/String-inl.h
folly/Subprocess.cpp
folly/Unicode.cpp
folly/Varint.h
folly/concurrency/test/AtomicSharedPtrCounted.h
folly/concurrency/test/CoreCachedSharedPtrTest.cpp
folly/dynamic.cpp
folly/executors/test/ThreadPoolExecutorTest.cpp
folly/experimental/EliasFanoCoding.h
folly/experimental/EventCount.h
folly/experimental/flat_combining/test/FlatCombiningTestHelpers.h
folly/experimental/hazptr/bench/HazptrBench.h
folly/experimental/hazptr/example/LockFreeLIFO.h
folly/experimental/hazptr/example/SWMRList.h
folly/experimental/hazptr/example/WideCAS.h
folly/experimental/hazptr/hazptr-impl.h
folly/experimental/test/CodingTestUtils.h
folly/experimental/test/FlatCombiningPriorityQueueTest.cpp
folly/futures/Future-inl.h
folly/futures/ManualExecutor.cpp
folly/futures/ManualExecutor.h
folly/futures/Promise-inl.h
folly/futures/test/Benchmark.cpp
folly/futures/test/CollectTest.cpp
folly/futures/test/FSMTest.cpp
folly/futures/test/ViaTest.cpp
folly/gen/test/BaseTest.cpp
folly/hash/test/SpookyHashV1Test.cpp
folly/hash/test/SpookyHashV2Test.cpp
folly/io/IOBufQueue.h
folly/io/async/AsyncServerSocket.cpp
folly/io/async/AsyncSocket.cpp
folly/io/async/test/EventBaseTest.cpp
folly/sorted_vector_types.h
folly/test/AHMIntStressTest.cpp
folly/test/AtomicHashArrayTest.cpp
folly/test/AtomicHashMapTest.cpp
folly/test/ConcurrentSkipListBenchmark.cpp
folly/test/ConcurrentSkipListTest.cpp
folly/test/FBStringTest.cpp
folly/test/FBStringTestBenchmarks.cpp.h
folly/test/FBVectorTestBenchmarks.cpp.h
folly/test/FixedStringTest.cpp
folly/test/ForeachTest.cpp
folly/test/IndexedMemPoolTest.cpp
folly/test/RWSpinLockTest.cpp
folly/test/SynchronizedTestLib-inl.h
folly/test/TraitsTest.cpp
folly/test/sorted_vector_test.cpp
folly/test/stl_tests/StlVectorTest.cpp