integrated-application-development / integrated-application-development/sonar-delphi

Support `{$PUSHOPT}` and `{$POPOPT}` compiler directives

Open
#411 0 comments 1 reaction 0 assignees View on GitHub
engine enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.