JAM-Software / SonarDelphi

This repository contains the source code to the Sonar-Delphi plugin. Can be used to analyse Delphi projects with SonarQube.
31 stars 12 forks source link

Improve support for $if statements #15

Open joachimmarder opened 3 years ago

joachimmarder commented 3 years ago

Currently all code in an $if statement is being removed. Propsed chnage: Inlcude code in $if but remove code in $else part, that would make code like this work:

const 
  cLength =
{$if CompilerVersion >= 22}
   500; 
{$else}
   250;
{$ifend}