Studio:How to generate a preprocessor (.i) file for analysis
Jump to navigation
Jump to 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 path to this file (usually to the Microsoft C includes directory).