sapling/eden/fs/config
Adam Simpkins e07f8bd7b6 refactor the EDEN_BUG() macro
Summary:
This splits `EDEN_BUG()` into three separate version.  All three crash in
debug mode builds, but in release builds they behave differently:

- `EDEN_BUG()` throws an exception
- `EDEN_BUG_FUTURE(Type)` returns a `folly::Future<Type>` that has been
  fulfilled with an exception.
- `EDEN_BUG_EXCEPTION()` returns a `folly::exception_wrapper`.

The main advantage of this is that this allows the compiler to detect that
`EDEN_BUG()` can never return.  Previously `EDEN_BUG()` was used for all 3 of
these different cases, and its behavior depended on whether `toException()`
was ever called.  As a result we could not easily get the compiler to identify
code paths where we know at compile time that it will never return.

Reviewed By: chadaustin

Differential Revision: D18652103

fbshipit-source-id: 070107c7520f51b05696905fa243de5f8df15958
2019-11-22 15:38:33 -08:00
..
test warn on unused exception parameter 2019-10-28 17:49:23 -07:00
CachedParsedFileMonitor.h Tidy up license headers 2019-10-11 05:28:23 -07:00
CheckoutConfig.cpp fail with a more sensible error if a SNAPSHOT file is missing 2019-11-07 17:26:09 -08:00
CheckoutConfig.h Tidy up license headers 2019-10-11 05:28:23 -07:00
CMakeLists.txt clean up duplicate find_package(cpptoml) 2019-09-20 11:36:13 -07:00
ConfigSetting.h refactor EdenConfig to use private inheritance 2019-10-11 11:01:49 -07:00
eden_config.thrift Tidy up license headers 2019-10-11 05:28:23 -07:00
EdenConfig.cpp config refactoring 2019-10-14 19:18:04 -07:00
EdenConfig.h eden: add experimental:enable-blob-caching 2019-11-21 12:05:29 -08:00
FieldConverter.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
FieldConverter.h Tidy up license headers 2019-10-11 05:28:23 -07:00
FileChangeMonitor.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
FileChangeMonitor.h Tidy up license headers 2019-10-11 05:28:23 -07:00
ReloadableConfig.cpp refactor the EDEN_BUG() macro 2019-11-22 15:38:33 -08:00
ReloadableConfig.h optimize and simplify ReloadableConfig 2019-10-11 10:42:36 -07:00