Skip to content

Commit acbcdfc

Browse files
committed
Add various missing switch directive kinds
1 parent f942723 commit acbcdfc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
- False positives from nested finally-except blocks in `RedundantJump`.
2323
- False positives around wrapped type declarations in `VisibilityKeywordIndentation`.
2424
- Several compiler directives were not being recognized:
25+
- `ALLOWBIND`
26+
- `ALLOWISOLATION`
27+
- `HIGHENTROPYVA`
28+
- `HIGHCHARUNICODE`
29+
- `LARGEADDRESSAWARE`
30+
- `NXCOMPAT`
31+
- `TSAWARE`
2532
- `TYPEDADDRESS`
2633

2734
## [1.14.1] - 2025-03-05

delphi-frontend/src/main/java/org/sonar/plugins/communitydelphi/api/directive/SwitchDirective.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
public interface SwitchDirective extends CompilerDirective {
2424
enum SwitchKind {
2525
ALIGN("align", 'a'),
26+
ALLOWBIND("allowbind"),
27+
ALLOWISOLATION("allowisolation"),
2628
ASSERTIONS("assertions", 'c'),
2729
BOOLEVAL("booleval", 'b'),
2830
DEBUGINFO("debuginfo", 'd'),
@@ -32,14 +34,18 @@ enum SwitchKind {
3234
EXTENDEDSYNTAX("extendedsyntax", 'x'),
3335
EXTENDEDCOMPATIBILITY("extendedcompatibility"),
3436
EXCESSPRECISION("excessprecision"),
37+
HIGHENTROPYVA("highentropyva"),
38+
HIGHCHARUNICODE("highcharunicode"),
3539
HINTS("hints"),
3640
IMPLICITBUILD("implicitbuild"),
3741
IMPORTEDDATA("importeddata", 'g'),
3842
IOCHECKS("iochecks", 'i'),
43+
LARGEADDRESSAWARE("largeaddressaware"),
3944
LEGACYIFEND("legacyifend"),
4045
LOCALSYMBOLS("localsymbols", 'l'),
4146
LONGSTRINGS("longstrings", 'h'),
4247
METHODINFO("methodinfo"),
48+
NXCOMPAT("nxcompat"),
4349
OLDTYPELAYOUT("oldtypelayout"),
4450
OPENSTRINGS("openstrings", 'p'),
4551
OPTIMIZATION("optimization", 'o'),
@@ -49,6 +55,7 @@ enum SwitchKind {
4955
RANGECHECKS("rangechecks", 'r'),
5056
REALCOMPATIBILITY("realcompatibility"),
5157
RUNONLY("runonly"),
58+
TSAWARE("tsaware"),
5259
TYPEINFO("typeinfo", 'm'),
5360
SCOPEDENUMS("scopedenums"),
5461
STACKFRAMES("stackframes", 'w'),

0 commit comments

Comments
 (0)