summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite/RewriteRope.cpp
Commit message (Collapse)AuthorAgeFilesLines
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-3/+1
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* zap more dead code.Chris Lattner2010-09-041-3/+3
| | | | llvm-svn: 113076
* Fix:Chris Lattner2010-06-141-1/+1
| | | | | | | | | | | | Decl.cpp:716:28: warning: initialization of pointer of type 'clang::VarDecl *' from literal 'false' [-Wbool-conversions] VarDecl *LastTentative = false; ^ RewriteRope.cpp:535:12: warning: initialization of pointer of type '<anonymous>::RopePieceBTreeNode *' from literal 'false' [-Wbool-conversions] return false; ^ llvm-svn: 105946
* Call 'clear()' in ~RopePieceBTreeLeaf(), decrementing the referenceTed Kremenek2009-10-201-0/+1
| | | | | | | | counts of the bufffers referened by the RopePieces in RopePieceBTreeLeaf. This (I believe) corrently fixes the leak I meant to fix in r84601 (which ended up causing an overrelease). llvm-svn: 84615
* Revert 84601. Looks like it was causing failures on some systems.Ted Kremenek2009-10-201-2/+3
| | | | llvm-svn: 84610
* Fix a reference count imbalance in RewriteRope::MakeRopeString().Ted Kremenek2009-10-201-3/+2
| | | | | | | This was causing a ton of memory to be leaked when using HTML diagnostics with the static analyzer (on large files with many errors). llvm-svn: 84601
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-92/+92
| | | | llvm-svn: 81346
* Fixed an offset calculation error.Zhongxing Xu2008-09-161-1/+1
| | | | llvm-svn: 56242
* Fix rewrite rope to keep the leaf list up-to-date as it erases leavesChris Lattner2008-05-281-5/+27
| | | | | | from the rope. rdar://5952468 llvm-svn: 51651
* fix a nasty off-by-one error.Chris Lattner2008-05-231-1/+1
| | | | llvm-svn: 51519
* Fix rdar://5919567: assertion failure: split didn't occur before erase!Chris Lattner2008-05-081-1/+3
| | | | llvm-svn: 50839
* fix a rewriter crash on zero length files.Chris Lattner2008-04-231-0/+1
| | | | llvm-svn: 50126
* finish commenting RewriteRopeChris Lattner2008-04-151-2/+65
| | | | llvm-svn: 49712
* simplify the implementation of the insert/split operation to returnChris Lattner2008-04-141-98/+98
| | | | | | | the new RHS directly instead of indirecting through the 'InsertResult' struct. This eliminates InsertResult. llvm-svn: 49694
* Add a bunch of comments, move RewriteRope::MakeRopeString out of line.Chris Lattner2008-04-141-0/+47
| | | | llvm-svn: 49689
* fix more uninit ivars, who wrote this junk? :)Chris Lattner2008-04-141-2/+2
| | | | llvm-svn: 49679
* Fix an assertion ted was hitting, due to an uninitialized variable.Chris Lattner2008-04-141-1/+1
| | | | llvm-svn: 49678
* move a ton of code out of line, from RewriteRope.h -> RewriteRope.cppChris Lattner2008-04-141-0/+672
llvm-svn: 49664
OpenPOWER on IntegriCloud