Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Support selectorized variant of `{$OPTIMIZATION}` compiler directive

Open
#466 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
compilers

Research direction

Start by locating the existing handling for the Delphi {$OPTIMIZATION} directive in the Delphi language support. Add support for the selectorized CMOV and IFCONV forms with ON and OFF values, then verify that Delphi 13.2 syntax is recognized without regressing existing directive handling.

Written by the indexing model from the issue text.

Description

engine enhancement
Prerequisites
  • This improvement has not already been suggested.
  • This improvement would be generally useful, not specific to my code or setup.
Engine area

Delphi language support

Improvement description

Delphi 13.2 has introduced a new variant of the {$OPTIMIZATION} switch directive, which enables selective compiler optimizations.

{$OPTIMIZATION <feature> ON|OFF}

The supported optimization features are CMOV and IFCONV.

See

Rationale

Delphi 13 support.

Dominant language
Java
Stars
160
Forks
36
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from integrated-application-development/sonar-delphi

All issues in integrated-application-development/sonar-delphi

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.