summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite/DeltaTree.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Remove trailing spaceFangrui Song2018-07-301-2/+2
| | | | | | sed -Ei 's/[[:space:]]+$//' include/**/*.{def,h,td} lib/**/*.{cpp,h} llvm-svn: 338291
* [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use ↵Eugene Zelenko2018-03-271-22/+26
| | | | | | warnings; other minor fixes (NFC). llvm-svn: 328597
* Revert r240270 ("Fixed/added namespace ending comments using clang-tidy").Alexander Kornienko2015-06-221-1/+1
| | | | llvm-svn: 240353
* Fixed/added namespace ending comments using clang-tidy. NFCAlexander Kornienko2015-06-221-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
* Make clang's rewrite engine a core featureAlp Toker2014-07-161-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
* Split library clangRewrite into clangRewriteCore and clangRewriteFrontend.Ted Kremenek2012-09-011-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
* 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
* "I see dead code". IdempotentOperationChecker::isTruncationExtensionAssignmentChris Lattner2010-09-031-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
* reduce redundant are'sChris Lattner2010-01-201-1/+1
| | | | llvm-svn: 94009
* Be more careful with anonymous namespaces, since Clang diagnoses the ↵Douglas Gregor2009-11-171-19/+9
| | | | | | ambiguity here llvm-svn: 89054
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-53/+53
| | | | llvm-svn: 81346
* Fix a corner case that ted hit in -emit-html, rdar://5863212Chris Lattner2008-04-151-1/+1
| | | | llvm-svn: 49703
* Change the RewriteRope::Chunks data structure from an std::list intoChris Lattner2008-04-141-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
* Change the btree algorithm to split nodes bottom-up instead of top-down.Chris Lattner2008-04-131-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
* split node splitting from interior node restructuring.Chris Lattner2008-04-131-37/+61
| | | | llvm-svn: 49608
* final cleanup, the code is now in a reviewable state.Chris Lattner2008-04-121-1/+6
| | | | llvm-svn: 49592
* move the DeltaTree implementation out of line, remove debugging printfs etc.Chris Lattner2008-04-121-0/+416
llvm-svn: 49591
OpenPOWER on IntegriCloud