llvm-project/clang/lib/Format
Eric Liu a992afe809 Make clang-format remove duplicate headers when sorting #includes.
Summary: When sorting #includes, #include directives that have the same text will be deduplicated when sorting #includes, and only the first #include in the duplicate #includes remains. If the `Cursor` is provided and put on a deleted #include, it will be put on the remaining #include in the duplicate #includes.

Reviewers: djasper

Subscribers: cfe-commits, klimek

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

llvm-svn: 278206
2016-08-10 09:32:23 +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 removed redundant '#' 2016-04-28 07:52:06 +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 clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
ContinuationIndenter.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
ContinuationIndenter.h Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551. 2016-04-28 07:52:03 +00:00
Encoding.h Add missing include for StringRef (NFC) 2016-04-18 09:08:59 +00:00
Format.cpp Make clang-format remove duplicate headers when sorting #includes. 2016-08-10 09:32:23 +00:00
FormatToken.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
FormatToken.h clang-format: [JS] recognize more type locations. 2016-06-23 19:52:32 +00:00
FormatTokenLexer.cpp clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
FormatTokenLexer.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
SortJavaScriptImports.cpp Implement tooling::Replacements as a class. 2016-08-01 10:16:37 +00:00
SortJavaScriptImports.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
TokenAnalyzer.cpp Implement tooling::Replacements as a class. 2016-08-01 10:16:37 +00:00
TokenAnalyzer.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
TokenAnnotator.cpp clang-format: Add SpaceAfterTemplate 2016-08-09 14:24:40 +00:00
TokenAnnotator.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
UnwrappedLineFormatter.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
UnwrappedLineFormatter.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
UnwrappedLineParser.cpp clang-format: Fix incorrect detection of QT-signals access specifier. 2016-07-27 10:13:24 +00:00
UnwrappedLineParser.h clang-format: [JS] Handle certain cases of ASI. 2016-03-14 19:21:36 +00:00
WhitespaceManager.cpp Implement tooling::Replacements as a class. 2016-08-01 10:16:37 +00:00
WhitespaceManager.h Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551. 2016-04-28 07:52:03 +00:00