integrated-application-development / integrated-application-development/sonar-delphi
Support `{$PUSHOPT}` and `{$POPOPT}` compiler directives
- Dominant language
- Java
- Stars
- 159
- Forks
- 31
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 4
Description
### Prerequisites
- [x] This improvement has not already been suggested.
- [x] This improvement would be generally useful, not specific to my code or setup.
### Engine area
Delphi language support
### Improvement description
Delphi 13 has introduced new compiler directives `{$PUSHOPT}` and `{$POPOPT}`.
These new Delphi compiler directives save and restore the current set of options and warning configurations.
We'll need to:
- parse the new directives
- add support to the `CompilerSwitchRegistry`
- **API:** extend the `ParameterDirective.ParameterKind` enum
## See
- [Option OPT (Delphi)](https://docwiki.embarcadero.com/RADStudio/Florence/en/Option_OPT_(Delphi))
### Rationale
Delphi 13 support.
Contributor guide
Assessment
This issue has not been assessed yet.