diff --git a/clang-tools-extra/docs/modularize.rst b/clang-tools-extra/docs/modularize.rst index e5ee62e33303..d23dd83b91a5 100644 --- a/clang-tools-extra/docs/modularize.rst +++ b/clang-tools-extra/docs/modularize.rst @@ -44,6 +44,14 @@ modularize. What Modularize Checks ====================== +Modularize will check for the following: + +* Duplicate global type and variable definitions +* Duplicate macro definitions +* Macro instances, 'defined(macro)', or #if, #elif, #ifdef, #ifndef conditions + that evaluate differently in a header +* #include directives inside 'extern "C/C++" {}' or 'namespace (name) {}' blocks + Modularize will do normal C/C++ parsing, reporting normal errors and warnings, but will also report special error messages like the following: