-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: All callsites removed Reviewed By: createdbysk Differential Revision: D66479596 fbshipit-source-id: fa5176ca314819b1da720f5db669762889bc1e16
- Loading branch information
1 parent
b51bd74
commit ba03803
Showing
1 changed file
with
0 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1299,68 +1299,6 @@ template <typename T> | |
using is_reflectable_struct = std:: | ||
integral_constant<bool, !std::is_same_v<try_reflect_struct<T, void>, void>>; | ||
|
||
////////////////////////////// | ||
// SECTION: ENUMERATION API // | ||
////////////////////////////// | ||
|
||
/** | ||
* Holds reflection metadata for a given enumeration. | ||
* | ||
* NOTE: this class template is only intended to be instantiated by Thrift. | ||
* Users should ignore the template parameters taken by it and focus simply on | ||
* the members provided. | ||
* | ||
* For the examples below, consider code generated for this Thrift file: | ||
* | ||
* ///////////////////// | ||
* // MyModule.thrift // | ||
* ///////////////////// | ||
* namespace cpp2 My.Namespace | ||
* | ||
* enum MyEnum { | ||
* a, b, c | ||
* } ( | ||
* some.annotation = "some value", | ||
* another.annotation = "another value", | ||
* ) | ||
* | ||
* @author: Marcelo Juchem <[email protected]> | ||
*/ | ||
template <typename T> | ||
struct reflected_enum {}; | ||
|
||
/** | ||
* Retrieves reflection metadata (as a `reflected_enum`) associated with the | ||
* given enumeration. | ||
* | ||
* If the given type is not a Thrift enumeration, or if there's no reflection | ||
* metadata available for it, compilation will fail. | ||
* | ||
* See the documentation on `reflected_enum` (above) for more information on | ||
* the returned type. | ||
* | ||
* Example: | ||
* | ||
* ///////////////////// | ||
* // MyModule.thrift // | ||
* ///////////////////// | ||
* namespace cpp2 My.Namespace | ||
* | ||
* enum MyEnum { a, b, c } | ||
* | ||
* ////////////////// | ||
* // whatever.cpp // | ||
* ////////////////// | ||
* using info = reflect_enum<My::Namespace::MyEnum>; | ||
* | ||
* // yields `MyEnum` | ||
* auto result = info::type; | ||
* | ||
* @author: Marcelo Juchem <[email protected]> | ||
*/ | ||
template <typename T> | ||
using reflect_enum = reflected_enum<T>; | ||
|
||
////////////////////////////////// | ||
// SECTION: VARIANT (UNION) API // | ||
////////////////////////////////// | ||
|