Ocaml_parsing.Builtin_attributes
SourceSupport for some of the builtin attributes
Warning: this module is unstable and part of compiler-libs.
val check_alerts_inclusion :
def:Location.t ->
use:Location.t ->
Location.t ->
Parsetree.attributes ->
Parsetree.attributes ->
string ->
unit
val check_deprecated_mutable_inclusion :
def:Location.t ->
use:Location.t ->
Location.t ->
Parsetree.attributes ->
Parsetree.attributes ->
string ->
unit
Apply warning settings from the specified attribute. "ocaml.warning"/"ocaml.warnerror" (and variants without the prefix) are processed and other attributes are ignored.
Also implement ocaml.ppwarning (unless ~ppwarning:false is passed).
Execute a function in a new scope for warning settings. This means that the effect of any call to warning_attribute
during the execution of this function will be discarded after execution.
The function also takes a list of attributes which are processed with warning_attribute
in the fresh scope before the function is executed.