View Issue Details

IDProjectCategoryView StatusLast Update
0036642LazarusPackagespublic2020-01-31 11:13
ReporterOndrej Pokorny Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0036642: CodeTools: cannot find TStringBuilder
DescriptionCodeTools don't recognize TStringBuilder from SysUtils.
Steps To Reproduceprogram StringBuilderTest;
uses SysUtils;
var
  S: TStringBuilder;
begin
  S := TStringBuilder.Create;
end.
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Activities

Juha Manninen

2020-01-31 11:13

developer   ~0120822

sysstrh.inc file does some hackish things with define and undef. There is:
{$define TStringBuilder:=TAnsiStringBuilder}
{$undef TStringBuilder}
{$define TStringBuilder:=TUnicodeStringBuilder}
{$undef TStringBuilder}
  and finally :
Type
  TStringBuilder = TAnsiStringBuilder;

If I Ctrl-Click the last "TAnsiStringBuilder" CodeTools jumps to {$define TStringBuilder:=TAnsiStringBuilder}.
TAnsiStringBuilder itself is not defined anywhere! Wow!

Issue History

Date Modified Username Field Change
2020-01-31 09:00 Ondrej Pokorny New Issue
2020-01-31 09:06 Zeljan Rikalo Relationship added related to 0036483
2020-01-31 09:06 Zeljan Rikalo Relationship deleted related to 0036483
2020-01-31 11:13 Juha Manninen Note Added: 0120822