Skip to content

Commit dc305a5

Browse files
authored
Merge pull request #310 from rainers/master
Visual D 1.4.1
2 parents efe8d3b + f0fcbd0 commit dc305a5

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,3 +1445,6 @@ Version history
14451445
- better propagate the raw option modifier (!) to expanded expressions
14461446
- don't fail enumerating child expressions if one fails, show error for this item instead
14471447
* dmdserver: fixed intellisense on TemplateInstance!Argument
1448+
1449+
2025-07-15 version 1.4.1
1450+
* dmdserver: do not display invalid struct size and alignment in tool tip

VERSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define VERSION_MAJOR 1
22
#define VERSION_MINOR 4
33
#define VERSION_REVISION 1
4-
#define VERSION_BETA -beta
5-
#define VERSION_BUILD 4
4+
#define VERSION_BETA
5+
#define VERSION_BUILD 0

vdc/dmdserver/dmd

vdc/dmdserver/semvisitor.d

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,8 +1284,15 @@ bool showSizeAndAlignment = false;
12841284
string tipSizeAndAlignment(Type t)
12851285
{
12861286
if (auto cd = t.isClassHandle())
1287+
{
1288+
if (cd.sizeok != Sizeok.done)
1289+
return "";
12871290
return "Size: " ~ to!string(cd.structsize) ~ ", Alignment: " ~ to!string(cd.alignsize);
1288-
return "Size: " ~ to!string(t.size()) ~ ", Alignment: " ~ to!string(t.alignsize());
1291+
}
1292+
auto sz = t.size();
1293+
if (sz == SIZE_INVALID)
1294+
return "";
1295+
return "Size: " ~ to!string(sz) ~ ", Alignment: " ~ to!string(t.alignsize());
12891296
}
12901297

12911298
TipData tipForType(Type t)

0 commit comments

Comments
 (0)