llvm-project/clang/lib/Format
Eric Liu 4cfb88a936 Added Fixer implementation and fix() interface in clang-format for removing redundant code.
Summary:
After applying replacements, redundant code like extra commas or empty namespaces
might be introduced. Fixer can detect and remove any redundant code introduced by replacements.
The current implementation only handles redundant commas.

Reviewers: djasper, klimek

Subscribers: ioeric, mprobst, klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D18551

llvm-svn: 267416
2016-04-25 15:09:22 +00:00
..
AffectedRangeManager.cpp Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
AffectedRangeManager.h Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
BreakableToken.cpp clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
BreakableToken.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
CMakeLists.txt Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
ContinuationIndenter.cpp clang-format: [JS] generator and async functions. 2016-04-24 22:05:09 +00:00
ContinuationIndenter.h [clang-format] Use in-class initializers to simplify constructor. 2015-06-12 14:39:08 +00:00
Encoding.h Add missing include for StringRef (NFC) 2016-04-18 09:08:59 +00:00
Format.cpp Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
FormatToken.cpp Revert 266186 as it breaks anything that includes type_traits on some platforms 2016-04-15 18:04:13 +00:00
FormatToken.h clang-format: [JS] generator and async functions. 2016-04-24 22:05:09 +00:00
TokenAnnotator.cpp clang-format: [JS] generator and async functions. 2016-04-24 22:05:09 +00:00
TokenAnnotator.h Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
UnwrappedLineFormatter.cpp clang-format: Don't format unrelated nested blocks. 2016-02-29 12:26:20 +00:00
UnwrappedLineFormatter.h clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
UnwrappedLineParser.cpp clang-format: [JS] generator and async functions. 2016-04-24 22:05:09 +00:00
UnwrappedLineParser.h clang-format: [JS] Handle certain cases of ASI. 2016-03-14 19:21:36 +00:00
WhitespaceManager.cpp clang-format: Implemented tab usage for continuation and indentation 2016-04-14 14:52:26 +00:00
WhitespaceManager.h [clang-format] Fix comment aligning when there are changes within the comment 2016-01-11 16:27:16 +00:00