Benjamin Kramer
6afa168e31
InheritViz: Hide implementation details
...
NFC.
llvm-svn: 231655
2015-03-09 15:03:20 +00:00
Rafael Espindola
8e650d7bf0
Refer to error_code with the std prefix.
...
llvm-svn: 210817
2014-06-12 20:37:59 +00:00
Aaron Ballman
574705ed7f
[C++11] Replacing CXXRecordDecl iterators bases_begin() and bases_end() with iterator_range bases(). Updating all of the usages of the iterators with range-based for loops.
...
llvm-svn: 203803
2014-03-13 15:41:46 +00:00
Rafael Espindola
a36e78ef5d
Use llvm::sys::fs::createTemporaryFile.
...
llvm-svn: 185717
2013-07-05 20:00:06 +00:00
Rafael Espindola
36da85486a
Convert a use of PathV1.h.
...
llvm-svn: 184743
2013-06-24 15:00:11 +00:00
Rafael Espindola
76993a01c9
Don't depend on PathV1.h including set.
...
llvm-svn: 184310
2013-06-19 15:31:27 +00:00
Rafael Espindola
dd6b1d5273
InheritViz.cpp uses sys::Path, include PathV1.h
...
llvm-svn: 183922
2013-06-13 17:35:20 +00:00
Rafael Espindola
7f20dfb746
Use version of DisplayGraph that takes a StringRef.
...
llvm-svn: 183916
2013-06-13 16:57:07 +00:00
Dmitri Gribenko
aaf7f2978c
Remove an unneeded const_cast
...
llvm-svn: 172370
2013-01-14 00:25:25 +00:00
Chris Lattner
0e62c1cc0b
remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports
...
them into the clang namespace.
llvm-svn: 135852
2011-07-23 10:55:15 +00:00
Dan Gohman
72346e97b3
Revert 123553, as sys::fs::unique_file is not finished yet.
...
llvm-svn: 126772
2011-03-01 19:50:49 +00:00
Michael J. Spencer
a0acb46baa
AST/InheritViz: Remove all internal uses of PathV1.
...
llvm-svn: 123553
2011-01-15 21:43:57 +00:00
Mike Stump
11289f4280
Remove tabs, and whitespace cleanups.
...
llvm-svn: 81346
2009-09-09 15:08:12 +00:00
Dan Gohman
a98e0e73de
Update clang for raw_fd_ostream no longer requiring F_Force.
...
llvm-svn: 79991
2009-08-25 15:36:09 +00:00
Chris Lattner
84cffc22d4
adjust for raw_fd_ostream api change.
...
llvm-svn: 79809
2009-08-23 02:59:41 +00:00
Ted Kremenek
c23c7e6a51
Change uses of:
...
Type::getAsReferenceType() -> Type::getAs<ReferenceType>()
Type::getAsRecordType() -> Type::getAs<RecordType>()
Type::getAsPointerType() -> Type::getAs<PointerType>()
Type::getAsBlockPointerType() -> Type::getAs<BlockPointerType>()
Type::getAsLValueReferenceType() -> Type::getAs<LValueReferenceType>()
Type::getAsRValueReferenceType() -> Type::getAs<RValueReferenceType>()
Type::getAsMemberPointerType() -> Type::getAs<MemberPointerType>()
Type::getAsReferenceType() -> Type::getAs<ReferenceType>()
Type::getAsTagType() -> Type::getAs<TagType>()
And remove Type::getAsReferenceType(), etc.
This change is similar to one I made a couple weeks ago, but that was partly
reverted pending some additional design discussion. With Doug's pending smart
pointer changes for Types, it seemed natural to take this approach.
llvm-svn: 77510
2009-07-29 21:53:49 +00:00
Ted Kremenek
8a286fbdb9
Per offline discussion with Steve Naroff, add back Type::getAsXXXType() methods
...
until Doug Gregor's Type smart pointer code lands (or more discussion occurs).
These methods just call the new Type::getAs<XXX> methods, so we still have
reduced implementation redundancy. Having explicit getAsXXXType() methods makes
it easier to set breakpoints in the debugger.
llvm-svn: 76193
2009-07-17 17:50:17 +00:00
Ted Kremenek
b825c0ddc5
Replaced Type::getAsLValueReferenceType(), Type::getAsRValueReferenceType(), Type::getAsMemberPointerType(), Type::getAsTagType(), and Type::getAsRecordType() with their Type::getAs<XXX> equivalents.
...
llvm-svn: 76139
2009-07-17 01:20:38 +00:00
Dan Gohman
74e3eb49ea
Update for raw_fd_ostream API changes. raw_fd_ostream now has a
...
Force flag to control whether the case of opening an existing
file is considered an error.
llvm-svn: 75802
2009-07-15 17:32:18 +00:00
Daniel Dunbar
f3502dbc14
[LLVM up] Update for raw_fd_ostream change. This fixes a FIXME that
...
the Backend output should be done in binary mode.
- I'd appreciate it if someone who has a Windows build could verify
this.
llvm-svn: 59221
2008-11-13 05:09:21 +00:00
Douglas Gregor
3dfef1f2a3
Move viewInheritance to CXXRecordDecl, and make sure it builds in Release mode, too
...
llvm-svn: 58105
2008-10-24 19:53:54 +00:00
Ted Kremenek
1507dbfbfc
Use llvm::errs() instead of cerr.
...
llvm-svn: 58054
2008-10-23 23:55:40 +00:00
Ted Kremenek
40fcc594b8
Convert InheritanceHierarchyWriter to use llvm::raw_ostream instead of std::ostream.
...
llvm-svn: 58053
2008-10-23 23:51:23 +00:00
Douglas Gregor
9d6290baf1
Clean up and document the representation of C++ base classes
...
llvm-svn: 58040
2008-10-23 18:13:27 +00:00
Douglas Gregor
01bef3c016
If NDEBUG is set, don't include any of the code for visualizing inheritance hierarchies
...
llvm-svn: 58029
2008-10-23 03:52:39 +00:00
Douglas Gregor
d8c7476bf3
Remove the GraphWriter-based version of the C++ class inheritance visualization, since it isn't being used and can't handle virtual bases properly
...
llvm-svn: 58002
2008-10-22 21:25:12 +00:00
Douglas Gregor
dff6a8eeef
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.
llvm-svn: 58001
2008-10-22 21:13:31 +00:00