Unused Include Directive
Reports the include directives that are not used or not required and can be removed safely.
- Detect completely unused
An include directive is considered unused if declarations from it are never used within the translation unit.
- Detect not directly used
An include directive is considered unused if declarations from it are not used in the file directly. This works best with the "Include What You Use" policy.
- Detect not required
Detects the minimal set of include directives for the file to be compilable. All other #include directives are considered unused.
Use the checkbox below to run inspection in header files.
Inspection options
Option | Type | Default |
---|---|---|
Dropdown | Detect not directly used | |
Run inspection in header files | Checkbox | false |
Inspection Details | |
---|---|
Available in: | AppCode 2023.3, CLion 2023.3 |
Plugin: | CLion, 2023.3 |
Last modified: 13 July 2023