summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/InheritViz.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Silence static analyzer getAs<RecordType> null dereference warnings. NFCI.Simon Pilgrim2019-10-031-2/+2
| | | | | | The static analyzer is warning about potential null dereferences, but in these cases we should be able to use castAs<RecordType> directly and if not assert will fire for us. llvm-svn: 373584
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* InheritViz: Hide implementation detailsBenjamin Kramer2015-03-091-11/+8
| | | | | | NFC. llvm-svn: 231655
* Refer to error_code with the std prefix.Rafael Espindola2014-06-121-1/+1
| | | | llvm-svn: 210817
* [C++11] Replacing CXXRecordDecl iterators bases_begin() and bases_end() with ↵Aaron Ballman2014-03-131-7/+6
| | | | | | iterator_range bases(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203803
* Use llvm::sys::fs::createTemporaryFile.Rafael Espindola2013-07-051-2/+2
| | | | llvm-svn: 185717
* Convert a use of PathV1.h.Rafael Espindola2013-06-241-22/+16
| | | | llvm-svn: 184743
* Don't depend on PathV1.h including set.Rafael Espindola2013-06-191-0/+1
| | | | llvm-svn: 184310
* InheritViz.cpp uses sys::Path, include PathV1.hRafael Espindola2013-06-131-0/+1
| | | | llvm-svn: 183922
* Use version of DisplayGraph that takes a StringRef.Rafael Espindola2013-06-131-1/+1
| | | | llvm-svn: 183916
* Remove an unneeded const_castDmitri Gribenko2013-01-141-1/+1
| | | | llvm-svn: 172370
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-4/+4
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* Revert 123553, as sys::fs::unique_file is not finished yet.Dan Gohman2011-03-011-17/+22
| | | | llvm-svn: 126772
* AST/InheritViz: Remove all internal uses of PathV1.Michael J. Spencer2011-01-151-22/+17
| | | | llvm-svn: 123553
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-3/+3
| | | | llvm-svn: 81346
* Update clang for raw_fd_ostream no longer requiring F_Force.Dan Gohman2009-08-251-2/+1
| | | | llvm-svn: 79991
* adjust for raw_fd_ostream api change.Chris Lattner2009-08-231-1/+2
| | | | llvm-svn: 79809
* Change uses of:Ted Kremenek2009-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | 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
* Per offline discussion with Steve Naroff, add back Type::getAsXXXType() methodsTed Kremenek2009-07-171-1/+1
| | | | | | | | | 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
* Replaced Type::getAsLValueReferenceType(), Type::getAsRValueReferenceType(), ↵Ted Kremenek2009-07-171-1/+1
| | | | | | Type::getAsMemberPointerType(), Type::getAsTagType(), and Type::getAsRecordType() with their Type::getAs<XXX> equivalents. llvm-svn: 76139
* Update for raw_fd_ostream API changes. raw_fd_ostream now has aDan Gohman2009-07-151-1/+1
| | | | | | | Force flag to control whether the case of opening an existing file is considered an error. llvm-svn: 75802
* [LLVM up] Update for raw_fd_ostream change. This fixes a FIXME thatDaniel Dunbar2008-11-131-1/+1
| | | | | | | | 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
* Move viewInheritance to CXXRecordDecl, and make sure it builds in Release ↵Douglas Gregor2008-10-241-14/+4
| | | | | | mode, too llvm-svn: 58105
* Use llvm::errs() instead of cerr.Ted Kremenek2008-10-231-5/+5
| | | | llvm-svn: 58054
* Convert InheritanceHierarchyWriter to use llvm::raw_ostream instead of ↵Ted Kremenek2008-10-231-11/+10
| | | | | | std::ostream. llvm-svn: 58053
* Clean up and document the representation of C++ base classesDouglas Gregor2008-10-231-2/+2
| | | | llvm-svn: 58040
* If NDEBUG is set, don't include any of the code for visualizing inheritance ↵Douglas Gregor2008-10-231-0/+2
| | | | | | hierarchies llvm-svn: 58029
* Remove the GraphWriter-based version of the C++ class inheritance ↵Douglas Gregor2008-10-221-89/+1
| | | | | | visualization, since it isn't being used and can't handle virtual bases properly llvm-svn: 58002
* Added GraphViz visualization of C++ inheritance hierarchies. Douglas Gregor2008-10-221-0/+265
Factored the QualTypeOrdering predicate into its own header (TypeOrdering.h), now that it is used in two places. llvm-svn: 58001
OpenPOWER on IntegriCloud