]> granicus.if.org Git - clang/commit
[diagtool] Change default tree behavior to print only flags
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 5 Sep 2017 18:04:40 +0000 (18:04 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 5 Sep 2017 18:04:40 +0000 (18:04 +0000)
commit9a30feb06ef1ecc59dcd9dd3dfb46478c476be1d
tree737d78d98a59961646665fde6e0822ce8c74fe9c
parent33dbcd3dd4cc5659a91c0aa13256574ecc72c960
[diagtool] Change default tree behavior to print only flags

This patch changes the default behavior of `diagtool tree` to only
display warning flags and not the internal warnings flags. The latter is
an implementation detail of the compiler and usually not what the users
wants.

Furthermore, flags that are enabled by default are now also printed in
green. Originally, this was only the case for the diagnostic names.

Differential revision: https://reviews.llvm.org/D37390

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312546 91177308-0d34-0410-b5e6-96231b3b80d8
test/Misc/warning-flags-tree.c
tools/diagtool/TreeView.cpp