How do I find a macro in a project?

I have a project with dozens of source modules and dozens of header files, some of which are nested. Working with ARM Eclipse for DS-5 I am getting an error from Indexer but not from the compiler.

The IDE complains that the macro FALSE

in one of the source modules of the static library is undefined. However, it will compile OK.

The second project on the same codebase (different static library) does not have this problem.

A workspace search contains multiple definitions in multiple titles for this macro. How can I keep track of which specific definition is the one that takes effect in code?

Note. I found this similar question regarding MSVS and a nice trick as an answer, but is there a direct way to achieve this in Eclipse?

+3


source to share


1 answer


OK, I found the answer:

  • Select a macro
  • Right click and select "Explore Macro Expansion" (or Ctrl+ =)
  • In the dialog box that opens, click the button below "Open declaration"


The ad space now opens in the editor.

+4


source







All Articles