FaultDetection-MissingRequiredOperations¶
When allocated in specific ways, some resource operations are required before deallocation
Required inputs: IR, StaticSemanticAnalysis
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
possibly_required_operation |
The way in which this resource was allocated possibly requires some operation |
None |
False |
required_operation |
The way in which this resource was allocated requires some operation |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
required¶
required
Dict which lists required operations per resource. The mapping gives each case a description which maps to a dict for key "Required_Functions".Type: dict[str, dict[str, dict[str, bool | str]]]
Default:
{ 'Thread': { 'Detaching a running thread.': { 'Required_Functions': 'std::thread::detach' }, 'Joining a running thread.': { 'Required_Functions': 'std::thread::join' } } }
resources¶
resources : set[str] = {'Thread'}