saaadhu / naggy

A live compiler diagnostics extension for Atmel Studio
18 stars 4 forks source link

All macros defined by gcc should be shown as defined by Naggy #9

Open saaadhu opened 13 years ago

saaadhu commented 13 years ago

Naggy doesn't consider include paths, predefined symbols or any such tool chain settings set in C++ projects.

Cromagnon31 commented 10 years ago

I include types libraries depending on compiler predefined symbols (GNUC, arm). Types depending on those symbols are considered as not defined. Is there a work around ?

Cromagnon31 commented 10 years ago

May be invoking the compiler to generate compilers predefined macros is the way.when the target changes. For exemple : "C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.1002\avr8-gnu-toolchain\bin\avr-gcc.exe" -mmcu=atxmega128a3u -dM -E -x c nul http://nadeausoftware.com/articles/2011/12/c_c_tip_how_list_compiler_predefined_macros