Skip to content

Commit 3c13a45

Browse files
cirrasfourls
authored andcommitted
Add support for OpenString intrinsic type
See: https://docwiki.embarcadero.com/Libraries/en/System.Openstring
1 parent aa70109 commit 3c13a45

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Support for the `AtomicCmpExchange128` intrinsic routine.
1313
- Support for the `GetTypeKind` intrinsic routine.
14+
- Support for the `OpenString` intrinsic type.
1415
- **API:** `TypeParameterNode::getTypeParameters` method.
1516
- **API:** `InterfaceTypeNode::getGuidExpression` method.
1617
- **API:** `AttributeNode::getExpression` method.

delphi-frontend/src/main/java/au/com/integradev/delphi/type/factory/TypeFactoryImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ private void createIntrinsicTypes() {
290290
addString(IntrinsicType.UNICODESTRING, pointerSize(), IntrinsicType.WIDECHAR);
291291
addString(IntrinsicType.SHORTSTRING, 256, IntrinsicType.ANSICHAR);
292292

293+
addWeakAlias(IntrinsicType.OPENSTRING, IntrinsicType.SHORTSTRING);
294+
293295
if (isStringUnicode()) {
294296
addWeakAlias(IntrinsicType.STRING, IntrinsicType.UNICODESTRING);
295297
addWeakAlias(IntrinsicType.CHAR, IntrinsicType.WIDECHAR);

delphi-frontend/src/main/java/org/sonar/plugins/communitydelphi/api/type/IntrinsicType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public enum IntrinsicType implements Qualifiable {
5050
WIDESTRING("WideString"),
5151
UNICODESTRING("UnicodeString"),
5252
SHORTSTRING("ShortString"),
53+
OPENSTRING("OpenString"),
5354
STRING("String"),
5455
ANSICHAR("AnsiChar"),
5556
WIDECHAR("WideChar"),

0 commit comments

Comments
 (0)