Studio:How to generate a preprocessor (.i) file for analysis

From STRIDE Wiki
Revision as of 17:55, 5 February 2008 by Root (talk | contribs)
Jump to: navigation, search

Preprocessing individual files

You can run the preprocessor on one or more header files to generate .i files, which can then be used for analysis. To do this from within Studio, select one or more top-level header files, right-click, and choose Preprocess.
Note: You will need to rename the file to have a .h extension.

Only the selected files are compiled, and preprocessed (.i) files are generated for them. During the compilation, the workspace settings for #defines and include paths are in effect. Existing databases are not affected.
Note: The #include <stdarg.h> will require the workspace to have a valid pointer (usually to the Microsoft C includes directory).