Home Download Buy Blog Forum Support

Symbol navigation (cmd+r/ctrl+r) not working in C files

Symbol navigation (cmd+r/ctrl+r) not working in C files

Postby omeraloni on Fri Nov 16, 2012 11:48 pm

The compiler I'm using (IAR embedded workbench for ARM) requires me to use extern "C" declaration.
Basically, my code would look like this:
Code: Select all
#include "foo.h"

#ifdef __cplusplus
   extern "C" {
#endif

     /*
       Actual code
     */ 

#ifdef __cplusplus
   }
#endif


ST2 recognizes the file as C files (and that's correct), but it ignores everything within the extern "C" declaration, and thus all symbols declared are missing from Ctrl+R key binding.
Any way to overcome this issue?

Thanks.

I've attached a sample code, try to navigate it with cmd+r/ctrl+r; now comment extern "C" and try to navigate again, it works.
Attachments
main.c.zip
main.c
(321 Bytes) Downloaded 109 times
omeraloni
 
Posts: 1
Joined: Tue Oct 30, 2012 9:53 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 22 guests