View Issue Details

IDProjectCategoryView StatusLast Update
0036026LazarusIDEpublic2020-07-30 09:46
ReporterZoë Peterson Assigned ToPascal Riekenberg  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version2.0.4 
Summary0036026: Codetools parsing for garbage in {$IF } blocks
DescriptionThe new macOS headers in FPC includes this apparently malformed line that the compiler accepts:

{$if defined(__OBJC2__)defined(interface)defined(NSExtensionContext)defined(NSObject)}

According to Jonas ( https://lists.freepascal.org/pipermail/fpc-pascal/2019-August/056637.html ):

"Borland-style compilers (and hence FPC as well) ignore all invalid tokens/characters at the end of an $if/$if(n)def directive. So the above is equivalent to {$if defined(__OBJC2__)}."

Currently it breaks the code tools and prevents accessing any of the inherited Objective C classes when working with the Lazarus LCLCOCOA widgetset. See also https://bugs.freepascal.org/view.php?id=35995
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-08-30 19:11 Zoë Peterson New Issue
2020-07-30 09:46 Pascal Riekenberg Assigned To => Pascal Riekenberg
2020-07-30 09:46 Pascal Riekenberg Status new => assigned