Select Page

The latest version of the extension now has support for include guards. Once configured, the extension will look for the required #ifndef, #define and #undef lines. By default the extension will search for include guards in the files matching "[.](h|hh|hpp|hxx)$" but only if the setting iwyu.diagnostics.include_guard is non empty. For instance setting this to "${FILE}_" will compose an expected include guard from the uppercase relative filename followed by an underscore, e.g. “path/foo.h” becomes “PATH_FOO_H_”.