Issue 115062
Summary Clang's HTML diagnostic reference should include a tree similar to `diagtool tree`
Labels clang, clang:diagnostics
Assignees
Reporter rnk
    I was not aware of `diagtool tree`, but it produces very useful output (it's colored in the terminal):
```
GREEN = enabled by default
YELLOW = disabled by default
RED = unimplemented (accepted for GCC compatibility)

-W
  -Wextra
    -Wdeprecated-copy
 -Wdeprecated-copy-with-user-provided-copy
 -Wmissing-field-initializers
 -Wmissing-designated-field-initializers
    -Wignored-qualifiers
 -Wignored-reference-qualifiers
    -Winitializer-overrides
 -Wsemicolon-before-method-body
    -Wmissing-method-return-type
 -Wsign-compare
    -Wunused-parameter
 -Wunused-but-set-parameter
    -Wnull-pointer-arithmetic
 -Wgnu-null-pointer-arithmetic
    -Wnull-pointer-subtraction
 -Wempty-init-stmt
    -Wstring-concatenation
    -Wfuse-ld-path
 -Wcast-function-type-mismatch
```

This is pretty handy, and I think it would make a great addition to the [diagnostic reference documentation](https://clang.llvm.org/docs/DiagnosticsReference.html), which is highly searchable and discoverable. Thanks @nickdesaulniers for mentioning `diagtool`, I was not aware of it, but it's apparently been around since 2011.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to