aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Rewrite/DeltaTree.cpp
AgeCommit message (Collapse)AuthorFilesLines
2015-06-22Revert r240270 ("Fixed/added namespace ending comments using clang-tidy").Alexander Kornienko1-1/+1
llvm-svn: 240353
2015-06-22Fixed/added namespace ending comments using clang-tidy. NFCAlexander Kornienko1-1/+1
The patch is generated using this command: $ tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \ -checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \ work/llvm/tools/clang To reduce churn, not touching namespaces spanning less than 10 lines. llvm-svn: 240270
2014-07-16Make clang's rewrite engine a core featureAlp Toker1-0/+464
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
2012-09-01Split library clangRewrite into clangRewriteCore and clangRewriteFrontend.Ted Kremenek1-467/+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
2011-07-23remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner1-3/+1
LLVM.h imports them into the clang namespace. llvm-svn: 135852
2010-09-03"I see dead code". IdempotentOperationChecker::isTruncationExtensionAssignmentChris Lattner1-8/+2
should probably be removed if it has no purpose, but I just #if'd it out in case it's usefulIdempotentOperationChecker::isTruncationExtensionAssignment should probably be removed if it has no purpose, but I just #if'd it out in case it's useful llvm-svn: 112949
2010-01-20reduce redundant are'sChris Lattner1-1/+1
llvm-svn: 94009
2009-11-17Be more careful with anonymous namespaces, since Clang diagnoses the ↵Douglas Gregor1-19/+9
ambiguity here llvm-svn: 89054
2009-09-09Remove tabs, and whitespace cleanups.Mike Stump1-53/+53
llvm-svn: 81346
2008-04-15Fix a corner case that ted hit in -emit-html, rdar://5863212Chris Lattner1-1/+1
llvm-svn: 49703
2008-04-14Change the RewriteRope::Chunks data structure from an std::list intoChris Lattner1-6/+8
a nice shiny B+ Tree variant. This fixes the last of the known algorithmic issues with the rewriter, allowing a significant speedup. For example, -emit-html on Ted's 500K .i file speeds up from 26.8s -> 0.64s in a debug build (41x!) and 5.475s -> 0.132s (41x!) in an optimized build. This code is functional but needs to be cleaned up, ifdefs removed, better commented, and moved to a .cpp file. I plan to do this tomorrow. llvm-svn: 49635
2008-04-13Change the btree algorithm to split nodes bottom-up instead of top-down.Chris Lattner1-77/+115
This results in an (IMO) simpler algorithm, results in fewer splits, and is more amenable to delta handling (there is no reason to mutate the tree at all when adding a delta to a position that already exists in the tree). llvm-svn: 49609
2008-04-13split node splitting from interior node restructuring.Chris Lattner1-37/+61
llvm-svn: 49608
2008-04-12final cleanup, the code is now in a reviewable state.Chris Lattner1-1/+6
llvm-svn: 49592
2008-04-12move the DeltaTree implementation out of line, remove debugging printfs etc.Chris Lattner1-0/+416
llvm-svn: 49591