On Tue, 5 May 2020, Ryan Joseph via fpc-pascal wrote:
Code tools completions are returning functions that don't appear related to the current unit such as "fpc_Copy" from /usr/local/share/fpcsrc/rtl/inc/compproc.inc. Here's a snippet of the code I use to get identifiers. if CodeToolBoss.GatherIdentifiers(Code,X + 1,Y + 1) then begin Count := CodeToolBoss.IdentifierList.GetFilteredCount; for I := 0 to Count - 1 do begin Identifier := CodeToolBoss.IdentifierList.FilteredItems[I]; Is this normal to be getting these results? I'd like to not have them if possible.
They are in the system unit, so they're always related to any unit. They have a compilerproc modifier set, so I suppose there is some property/attribute of the identifier that indicates this modifier. You should check for that and filter out these results. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal