Files
tubestation/build/clang-plugin/CustomAttributes.inc
serge-sans-paille c2bbe8fb3a Bug 1920717 - Add static checker for global variables with runtime initialisation r=glandium
This patch both:

1. Provides a static checker to detect global variables which may not be
   initialized at compile-time

2. Verify that variables flagged as MOZ_RUNINIT are indeed
   initialized at runtime

3. In case of variables whose initialisation status varies based on
   macro definition or template parameters, just flag them as
   MOZ_GLOBINIT.

Differential Revision: https://phabricator.services.mozilla.com/D223342
2024-10-30 11:05:25 +00:00

34 lines
960 B
PHP

ATTR(moz_allow_temporary)
ATTR(moz_can_run_script)
ATTR(moz_can_run_script_for_definition)
ATTR(moz_can_run_script_boundary)
ATTR(moz_global_var)
ATTR(moz_generated)
ATTR(moz_global_class)
ATTR(moz_heap_allocator)
ATTR(moz_heap_class)
ATTR(moz_implicit)
ATTR(moz_inherit_type_annotations_from_template_args)
ATTR(moz_is_smartptr_to_refcounted)
ATTR(moz_known_live)
ATTR(moz_may_call_after_must_return)
ATTR(moz_must_override)
ATTR(moz_must_return_from_caller_if_this_is_arg)
ATTR(moz_needs_memmovable_members)
ATTR(moz_needs_memmovable_type)
ATTR(moz_needs_no_vtable_type)
ATTR(moz_no_addref_release_on_return)
ATTR(moz_no_arith_expr_in_arg)
ATTR(moz_no_dangling_on_temporaries)
ATTR(moz_non_autoable)
ATTR(moz_non_memmovable)
ATTR(moz_non_param)
ATTR(moz_non_temporary_class)
ATTR(moz_nonheap_class)
ATTR(moz_required_base_method)
ATTR(moz_stack_class)
ATTR(moz_static_local_class)
ATTR(moz_temporary_class)
ATTR(moz_trivial_ctor_dtor)
ATTR(moz_trivial_dtor)