llvm-project/clang/lib/Tooling
Eric Liu 9e745b7292 Introducing clang::tooling::AtomicChange for refactoring tools.
Summary:
An AtomicChange is used to create and group a set of source edits, e.g.
replacements or header insertions. Edits in an AtomicChange should be related,
e.g. replacements for the same type reference and the corresponding header
insertion/deletion.

An AtomicChange is uniquely identified by a key position and will either be
fully applied or not applied at all. The key position should be the location
of the key syntactical element that is being changed, e.g. the call to a
refactored method.

Next step: add a tool that applies AtomicChange.

Reviewers: klimek, djasper

Reviewed By: klimek

Subscribers: alexshap, cfe-commits, djasper, mgorny

Differential Revision: https://reviews.llvm.org/D27054

llvm-svn: 296616
2017-03-01 13:14:01 +00:00
..
Core [clang-tidy] Add check name to YAML export 2017-01-03 14:35:47 +00:00
Refactoring Introducing clang::tooling::AtomicChange for refactoring tools. 2017-03-01 13:14:01 +00:00
ArgumentsAdjusters.cpp Typo. 2016-11-25 20:15:57 +00:00
CMakeLists.txt Introducing clang::tooling::AtomicChange for refactoring tools. 2017-03-01 13:14:01 +00:00
CommonOptionsParser.cpp Apply some suggestions from clang-tidy's performance-unnecessary-value-param. 2016-06-15 14:20:56 +00:00
CompilationDatabase.cpp Extend CompilationDatabase by a field for the output filename 2016-12-01 23:37:45 +00:00
FileMatchTrie.cpp Tooling: Hide implementation details 2015-03-09 15:03:26 +00:00
FixIt.cpp [tooling] FixItHint Tooling refactoring 2016-05-11 14:31:39 +00:00
JSONCompilationDatabase.cpp Extend CompilationDatabase by a field for the output filename 2016-12-01 23:37:45 +00:00
Refactoring.cpp clang-format: Make GetStyle return Expected<FormatStyle> instead of FormatStyle 2017-01-17 00:12:27 +00:00
RefactoringCallbacks.cpp Use after move bug fixes 2016-12-23 11:40:44 +00:00
Tooling.cpp unique_ptrify createDriverOptTable 2017-01-13 17:34:15 +00:00