summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite/RewriteRope.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use ↵Eugene Zelenko2018-03-271-37/+40
| | | | | | warnings; other minor fixes (NFC). llvm-svn: 328597
* Remove use of builtin comma operator.Richard Trieu2016-02-181-2/+4
| | | | | | Cleanup for upcoming Clang warning -Wcomma. No functionality change intended. llvm-svn: 261271
* Remove empty non-virtual destructors or mark them =default when non-publicBenjamin Kramer2015-04-111-2/+2
| | | | | | These add no value but can make a class non-trivially copyable. NFC. llvm-svn: 234689
* Use intrusive refcounted pointers to manage RopeRefCountString lifetime.Benjamin Kramer2014-09-151-9/+5
| | | | | | | | | std::shared_ptr<char []> would be even nicer, but shared_ptr doesn't work with arrays :( No functionality change. llvm-svn: 217798
* Make clang's rewrite engine a core featureAlp Toker2014-07-161-0/+806
| | | | | | | | | | | | | | | The rewrite facility's footprint is small so it's not worth going to these lengths to support disabling at configure time, particularly since key compiler features now depend on it. Meanwhile the Objective-C rewriters have been moved under the ENABLE_CLANG_ARCMT umbrella for now as they're comparatively heavy and still potentially worth excluding from lightweight builds. Tests are now passing with any combination of feature flags. The flags historically haven't been tested by LLVM's build servers so caveat emptor. llvm-svn: 213171
* Split library clangRewrite into clangRewriteCore and clangRewriteFrontend.Ted Kremenek2012-09-011-811/+0
| | | | | | | This is similar to how we divide up the StaticAnalyzer libraries to separate core functionality to what is clearly associated with Frontend actions. llvm-svn: 163050
* Actually, this tree isn't necessarily binary.Benjamin Kramer2012-04-151-2/+2
| | | | llvm-svn: 154762
* Recursively delete rewrite rope nodes when tearing down the tree.Benjamin Kramer2012-04-151-0/+5
| | | | llvm-svn: 154760
* 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