Revision tags: llvmorg-3.8.1, llvmorg-3.8.1-rc1 |
|
#
303baf53 |
| 03-Jun-2016 |
Eric Liu <ioeric@google.com> |
[clang-format] skip empty lines and comments in the top of the code when inserting new headers.
Summary: [clang-format] skip empty lines and comments in the top of the code when inserting new header
[clang-format] skip empty lines and comments in the top of the code when inserting new headers.
Summary: [clang-format] skip empty lines and comments in the top of the code when inserting new headers.
Pair-programmed with @hokein
Reviewers: djasper
Subscribers: ioeric, cfe-commits, hokein, klimek
Differential Revision: http://reviews.llvm.org/D20898
llvm-svn: 271664
show more ...
|
#
081f176a |
| 01-Jun-2016 |
Martin Probst <martin@probst.io> |
clang-format: [JS] Sort imported symbols.
Summary: E.g. sort `import {b, a} from 'x';` into `import {a, b} from 'x';`.
Reviewers: djasper
Subscribers: cfe-commits, klimek
Differential Revision: h
clang-format: [JS] Sort imported symbols.
Summary: E.g. sort `import {b, a} from 'x';` into `import {a, b} from 'x';`.
Reviewers: djasper
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D20798
llvm-svn: 271400
show more ...
|
#
1cb7ee13 |
| 31-May-2016 |
Benjamin Kramer <benny.kra@googlemail.com> |
Avoid unused variable warning in release builds.
llvm-svn: 271280
|
#
659afd55 |
| 31-May-2016 |
Eric Liu <ioeric@google.com> |
[clang-format] insert new #includes into correct blocks when cleaning up Replacement with cleanupAroundReplacements().
Summary: When a replacement's offset is set to UINT_MAX or -1U, it is treated a
[clang-format] insert new #includes into correct blocks when cleaning up Replacement with cleanupAroundReplacements().
Summary: When a replacement's offset is set to UINT_MAX or -1U, it is treated as a header insertion replacement by cleanupAroundReplacements(). The new #include directive is then inserted into the correct block.
Reviewers: klimek, djasper
Subscribers: klimek, cfe-commits, bkramer
Differential Revision: http://reviews.llvm.org/D20734
llvm-svn: 271276
show more ...
|
#
c4a0dd49 |
| 20-May-2016 |
Martin Probst <martin@probst.io> |
clang-format: [JS] sort ES6 imports.
Summary: This change automatically sorts ES6 imports and exports into four groups: absolute imports, parent imports, relative imports, and then exports. Exports
clang-format: [JS] sort ES6 imports.
Summary: This change automatically sorts ES6 imports and exports into four groups: absolute imports, parent imports, relative imports, and then exports. Exports are sorted in the same order, but not grouped further.
To keep JS import sorting out of Format.cpp, this required extracting the TokenAnalyzer infrastructure to separate header and implementation files.
Reviewers: djasper
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D20198
llvm-svn: 270203
show more ...
|
#
baf58c23 |
| 18-May-2016 |
Eric Liu <ioeric@google.com> |
[clang-format] Make formatReplacements() also sort #includes.
Summary: [clang-format] Make formatReplacements() also sort #includes.
Reviewers: bkramer, djasper
Subscribers: klimek, cfe-commits
D
[clang-format] Make formatReplacements() also sort #includes.
Summary: [clang-format] Make formatReplacements() also sort #includes.
Reviewers: bkramer, djasper
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D20362
llvm-svn: 269924
show more ...
|
#
2874ac3e |
| 18-May-2016 |
Eric Liu <ioeric@google.com> |
[clang-format] Make FormatTokenLess::operator() const.
llvm-svn: 269889
|
#
ce5e4bc7 |
| 18-May-2016 |
Eric Liu <ioeric@google.com> |
Make clang-format cleaner remove redundant commas in list and redundant colon in constructor initializer.
Summary: Make clang-format cleaner remove redundant commas/colons in constructor initializer
Make clang-format cleaner remove redundant commas in list and redundant colon in constructor initializer.
Summary: Make clang-format cleaner remove redundant commas/colons in constructor initializer list.
Reviewers: klimek, djasper
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D19804
llvm-svn: 269888
show more ...
|
#
cb6e0420 |
| 17-May-2016 |
Martin Probst <martin@probst.io> |
clang-format: [JS] simplify logic by parsing forward.
This also reduces complexity to O(n) from O(n^2) by avoiding backtracking re-parses, and fixes length calculation.
llvm-svn: 269748
|
#
e71b4cbd |
| 17-May-2016 |
Martin Probst <martin@probst.io> |
clang-format: [JS] fix template string width counting.
Summary: Simply looking at the final text greatly simplifies the algorithm and also fixes a reported issue. This requires duplicating the "actu
clang-format: [JS] fix template string width counting.
Summary: Simply looking at the final text greatly simplifies the algorithm and also fixes a reported issue. This requires duplicating the "actual encoding width" logic, but that seems cleaner than the column acrobatics before.
Reviewers: djasper, bkramer
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D20208
llvm-svn: 269747
show more ...
|
#
a166979e |
| 12-May-2016 |
Martin Probst <martin@probst.io> |
clang-format: [JS] respect clang-format off when requoting strings.
Reviewers: djasper
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D20200
llvm-svn: 269282
|
#
635423e6 |
| 28-Apr-2016 |
Eric Liu <ioeric@google.com> |
Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551.
Summary: Make SourceManager in Environment, WhitespaceManager, and FormatTokenAnalyzer etc constant members.
Revie
Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551.
Summary: Make SourceManager in Environment, WhitespaceManager, and FormatTokenAnalyzer etc constant members.
Reviewers: djasper, klimek
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D19587
llvm-svn: 267859
show more ...
|
#
c5cad396 |
| 28-Apr-2016 |
Eric Liu <ioeric@google.com> |
Addressed review's comments.
llvm-svn: 267858
|
#
4cfb88a9 |
| 25-Apr-2016 |
Eric Liu <ioeric@google.com> |
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 introd
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
show more ...
|
#
51fe279f |
| 14-Apr-2016 |
Marianne Mailhot-Sarrasin <marianne.mailhot.sarrasin@gmail.com> |
clang-format: Implemented tab usage for continuation and indentation
Use tabs to fill whitespace at the start of a line.
Patch by Maxime Beaulieu
Differential Revision: http://reviews.llvm.org/D19
clang-format: Implemented tab usage for continuation and indentation
Use tabs to fill whitespace at the start of a line.
Patch by Maxime Beaulieu
Differential Revision: http://reviews.llvm.org/D19028
llvm-svn: 266320
show more ...
|
#
4988fa1b |
| 14-Apr-2016 |
Marianne Mailhot-Sarrasin <marianne.mailhot.sarrasin@gmail.com> |
clang-format: Allow include of clangFormat.h in managed context
Including VirtualFileSystem.h in the clangFormat.h indirectly includes <atomic>. This header is blocked when compiling with /clr.
Pat
clang-format: Allow include of clangFormat.h in managed context
Including VirtualFileSystem.h in the clangFormat.h indirectly includes <atomic>. This header is blocked when compiling with /clr.
Patch by Maxime Beaulieu
Differential Revision: http://reviews.llvm.org/D19064
llvm-svn: 266319
show more ...
|
#
4c1ef97a |
| 29-Mar-2016 |
Eric Liu <ioeric@google.com> |
Added formatAndApplyAllReplacements that works on multiple files in libTooling.
Summary: formatAndApplyAllReplacements takes a set of Replacements, applies them on a Rewriter, and reformats the chan
Added formatAndApplyAllReplacements that works on multiple files in libTooling.
Summary: formatAndApplyAllReplacements takes a set of Replacements, applies them on a Rewriter, and reformats the changed code.
Reviewers: klimek, djasper
Subscribers: ioeric, klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D17852
llvm-svn: 264745
show more ...
|
#
547d8791 |
| 24-Mar-2016 |
Eric Liu <ioeric@google.com> |
Added support for different VFSs in format::getStyle. Disable platform-related test case for MS compilers to avoid breaking buildbot.
llvm-svn: 264277
|
#
d4758323 |
| 24-Mar-2016 |
Eric Liu <ioeric@google.com> |
Revert "Added support for different VFSs in format::getStyle."
This reverts commit r264253. It is breaking the buildbot http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-
Revert "Added support for different VFSs in format::getStyle."
This reverts commit r264253. It is breaking the buildbot http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/2203
llvm-svn: 264276
show more ...
|
#
295915ce |
| 24-Mar-2016 |
Eric Liu <ioeric@google.com> |
Revert "removed redundant comment in format::getStyle."
This reverts commit r264254.
llvm-svn: 264275
|
#
6b47faad |
| 24-Mar-2016 |
Eric Liu <ioeric@google.com> |
Revert "Added support for different VFSs in format::getStyle."
This reverts commit r264253. It is breaking the buildbot http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-
Revert "Added support for different VFSs in format::getStyle."
This reverts commit r264253. It is breaking the buildbot http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/2203
llvm-svn: 264257
show more ...
|
#
b38a9e16 |
| 24-Mar-2016 |
Eric Liu <ioeric@google.com> |
Revert "removed redundant comment in format::getStyle."
This reverts commit r264254.
llvm-svn: 264256
|
#
883df178 |
| 24-Mar-2016 |
Eric Liu <ioeric@google.com> |
removed redundant comment in format::getStyle.
llvm-svn: 264254
|
#
b72f6098 |
| 24-Mar-2016 |
Eric Liu <ioeric@google.com> |
Added support for different VFSs in format::getStyle.
Summary: Previously, format::getStyle assumes that the given file resides in the real file system, which prevents the use of virtual file system
Added support for different VFSs in format::getStyle.
Summary: Previously, format::getStyle assumes that the given file resides in the real file system, which prevents the use of virtual file system in testing etc. This patch adds a parameter in format::getStyle interface so that users can specify the right file system. By default, the file system is the real file system.
Reviewers: djasper, klimek
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D18399
llvm-svn: 264253
show more ...
|
#
8c6f72f7 |
| 24-Mar-2016 |
Eric Liu <ioeric@google.com> |
Test commit access to clang repo.
Summary: Test commit access to clang repo.
Reviewers: cfe-commits
Subscribers: klimek
Differential Revision: http://reviews.llvm.org/D18432
llvm-svn: 264252
|