Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329438 - Indexer doesn't recognize "near" function
Summary: Indexer doesn't recognize "near" function
Status: RESOLVED INVALID
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 10:19 EDT by Eclipse_Keil CLA
Modified: 2010-11-05 07:40 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eclipse_Keil CLA 2010-11-04 10:19:02 EDT
WinXp

Eclipse Galileo, CDT 6.0, also
Eclipse Galileo, CDT 7.0, also
Eclipse Helios, CDT 7.0, also
Eclipse Helios, CDT 8.0

We use Eclipse to edit C files for embedded project. Sometimes we have function like:

  static void near func(void);

It seems Eclipse can't parser this function, it showes "syntax error", F3 don't work, Ctrl+Left dont't work and the outline don't work also. As soon as i remove "near", eveything is fine.

So how can i tell Eclipse to treat this function as a normal one?

Thanks a lot guys, you are the best!!! :)

Mike
Comment 1 Eclipse_Keil CLA 2010-11-04 10:28:11 EDT
Also, eclipse can't recognize "far" - i've tried this just before.
Comment 2 Markus Schorn CLA 2010-11-05 05:05:12 EDT
The concept 'near' and 'far' is not part of the c-standard, is it? I assume that these identifiers are mapped to some __attribute__ syntax via macro defintions either provided in an include file, on command line or built into
the compiler.
--> You need to make sure that the indexer is configured correctly. As a workaround you can specify 'far' and 'near' on the 'C/C++ General - Path's and Symbols - Symbols' page as empty macros.
Comment 3 Eclipse_Keil CLA 2010-11-05 07:40:35 EDT
Hi, Markus,

thanks ... again. It works.
I love you guys

Mike