LLVM: llvm::ilist_detail::is_valid_option< Option > Struct Template Reference (original) (raw)
template
struct llvm::ilist_detail::is_valid_option< Option >
Check whether an option is valid.
The steps for adding and enabling a new ilist option include:
- define the option, ilist_foo, above;
- add new parameters for Bar to ilist_detail::node_options;
- add an extraction meta-function, ilist_detail::extract_foo;
- call extract_foo from ilist_detail::compute_node_options and pass it into ilist_detail::node_options; and
- specialize
[is_valid_option<ilist_foo<Bar>>](structllvm%5F1%5F1ilist%5F%5Fdetail%5F1%5F1is%5F%5Fvalid%5F%5Foption.html "Check whether an option is valid.")to inherit fromstd::true_typeto get static assertions passing in simple_ilist and ilist_node.
Definition at line 75 of file ilist_node_options.h.