Testing custom VC++ parser

  • Thread starter Thread starter Jacek
  • Start date Start date
J

Jacek

Hi All!

Currently I am in testing phase of developed by me in C# parser for ISO C++
and hopefully providing full support for VC++ as well. Unfortunately
preprocessor has to be off now so for tests I use files preprocessed with /P
option set on cl.exe command line.

Despite the fact that parser successfully passes all current tests (STL
source code and all of ATL/MFC plus many source bases available publicly) I
do plan to run it on all headers available in PlatformSDK. Unfortunately
creating by hand custom made "PlatformSDK.i" file which would include all
headers in correct order and with all macro definitions set to right values
is really tedious while doing it automatically without parsing files and
recreating graph of include statements is rather error prone.

Has anyone any idea or can point me to any article or documentation which
may help me to do it fast and right?

Cheers

Jacek
 
Hi again!

Just for info to others who may get into similar problem -> I have written
simple parser which processed all #include directives and later there was
some long unidirectional graph walking to be done - 2 hours of implementing
very simple program and overnight computer run to find least number of
required headers to include and process all of them - nice NP problem. By
the way - do you know that there are very nice infinite loops in Platform
SDK headers tree?

My search for any info on headers tree structure in MSDN and on net failed.

cheers
 
Back
Top