[cfe-commits] r58001 - in /cfe/trunk: include/clang/AST/Type.h include/clang/AST/TypeOrdering.h lib/AST/InheritViz.cpp lib/Sema/SemaDeclCXX.cpp
Chris Lattner
clattner at apple.com
Wed Oct 22 18:04:35 PDT 2008
On Oct 22, 2008, at 2:13 PM, Douglas Gregor wrote:
> Author: dgregor
> Date: Wed Oct 22 16:13:31 2008
> New Revision: 58001
>
> URL: http://llvm.org/viewvc/llvm-project?rev=58001&view=rev
> Log:
> Added GraphViz visualization of C++ inheritance hierarchies.
>
> Factored the QualTypeOrdering predicate into its own header
> (TypeOrdering.h), now that it is used in two places.
Woo, cool! One random stream of thought question for you :), does
this make sense to be a method on Type, or would it be possible to
make this a driver option? If it's an option to the driver - "clang -
view-inheritance" or something - this would get it out of libast.
However, since it's just in a debug build, it probably isn't worth
worrying about, and I can imagine that this is very useful in gdb.
If this is only in debug builds, please #ifdef the out-of-line methods
in InheritViz.cpp so that they don't get linked into release builds.
-Chris
More information about the cfe-commits
mailing list