c++ - How to find where a macro is defined in a project? -


i have project dozens of source module , dozens header files, nested. working arm's eclipse ds-5 error indication indexer not compiler.

the ide complains false macro in 1 of source modules of static library undefined. however, does compile ok.

in 2nd project on same codebase (another static library) there no such problem.

searching through whole workspace there multiple definitions in multiple headers macro. how can trace specific definition 1 takes effect in code?

note - found this similar question regarding msvs , nice trick answer, there direct way achieve in eclipse?

ok, found answer:

  1. select macro
  2. right-click , select "explore macro expansion" (or ctrl+=)
  3. in dialog window opens, click button @ bottom "open declaration"

the place of declaration opens in editor.


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -