mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-09-19 19:19:05 +01:00
4c6f232766
Summary: Adds the option for required features to container definitions. These cause the container not to be passed to `DrgnParser` if that feature is not enabled during code generation. The thrift isset type does not currently work with `tree-builder-v2` and only provides benefit with `capture-thrift-isset`. This change makes sure the container is ignored if it won't be useful, allowing code generation under `tree-builder-v2`. Test Plan: - CI Differential Revision: D49960512 Pulled By: JakeHillion
27 lines
494 B
TOML
27 lines
494 B
TOML
[info]
|
|
type_name = "apache::thrift::detail::isset_bitset"
|
|
ctype = "THRIFT_ISSET_TYPE"
|
|
header = "thrift/lib/cpp2/gen/module_types_h.h"
|
|
required_features = ["capture-thrift-isset"]
|
|
|
|
# Old:
|
|
typeName = "apache::thrift::detail::isset_bitset<"
|
|
ns = ["apache::thrift::detail::isset_bitset"]
|
|
numTemplateParams = 2
|
|
replaceTemplateParamIndex = []
|
|
|
|
[codegen]
|
|
decl = """
|
|
// DummyDecl %1%
|
|
"""
|
|
func = """
|
|
// DummyFunc %1%
|
|
"""
|
|
handler = """
|
|
// DummyHandler %1%
|
|
"""
|
|
|
|
traversal_func = """
|
|
return returnArg;
|
|
"""
|