There is an indentation issue in Format.h causing the html to not render correctly
It's a \code block in the documentation of SpacesInLineComment
So I fixed it, and added some warnings in clang/docs/tools/dump_format_style.py:
- fix intentation of SpacesInLineComment
- warn on indentation error
- also warn on \code \endcode mismatch
- generate precise warnings
- fix some minor and style issues:- avoid confusion with the built-in type function
- fix wrong print on os.sys.stderr (instead of sys.stderr)
- use with as pattern for files
 
here is a look at the generated warnings:
> ./dump_format_style.py
../../include/clang/Format/Format.h:3448: warning: code block should be indented:
  3448 | /// before:                                   after:
  3449 | /// Minimum: 1
  3450 | /// //if (b) {                                // if (b) {
  3451 | /// //  return true;                          //   return true;
  3452 | /// //}                                       // }
../../include/clang/Format/Format.h:3454: warning: code block should be indented:
  3454 | /// Maximum: 0
  3455 | /// /// List:                                 ///List:
  3456 | /// ///  - Foo                                /// - Foo
  3457 | /// ///    - Bar                              ///   - Bar