When filtering for 'GetText' on the Identifier tab of the Uses Clause Manager the list contains GetText from the ToolsApi. This is wrong. There are several interfaces with a GetText method in that unit, but no plain function called GetText, so it should not show up.
It's the declaration
~~~
type
TGetSrcLinesFunc = function (LineNum: Integer; ClientArg: Pointer): Integer {$IFDEF LINUX} cdecl; {$ENDIF} {$IFDEF MSWINDOWS} pascal; {$ENDIF}
~~~
in line 2948 of Delphi 2007's toolsapi.pas that causes this.
The reason is that this code is not valid unless either LINUX or MSWINDOWS is declared.
Without one of these we get:
And since there is no semicolon after the 'integer' this would not compile.
This makes it rather difficult to fix in general even though in this particular case we could hard code MSWINDOWS. But that's not really helpful.
Fixed in revision #3505 by explicitly defining the symbol MSWINDOWS for ToolsApi.pas