There is no option for the VS compiler.
But if you can install GCC/G++ (or have it already) you can use that with the
-dM -E
options.
See also
C/C++ tip: How to list compiler predefined macros | Nadeau Software[
^] for other compilers.
[EDIT]
To process all input files from a project you can create a
Custom Build Rule that is executed for each source file. The tool may be a self written parser or just the GCC/G++ with optional post-processing (another self created tool for filtering and formatting). Candidates for filtering tools are regular expression command line utilities. If you know Linux a little bit, you may use
grep and
sed from the
Native Win32 ports of some GNU utilities[
^] (UnxUtils).
[/EDIT]