#
acadc8e0 |
| 08-Jun-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix incorrect calculation of "length" of /**/ comments.
This could lead to column limit violations.
llvm-svn: 272125
|
#
2b4d6eae |
| 08-Jun-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix bug in function ref qualifier identification.
.. and simplify it.
Before: void A::f()&& {} void f() && {}
After: void A::f() && {} void f() && {}
llvm-svn: 272124
|
Revision tags: llvmorg-3.8.1, llvmorg-3.8.1-rc1 |
|
#
99302edd |
| 27-May-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Allow splitting the line after /**/-comments.
While it might change the meaning of the comment in rare circumstances, it is better than violating the column limit.
llvm-svn: 270975
|
#
1ef68456 |
| 27-May-2016 |
Eric Liu <ioeric@google.com> |
[clang-format] moved unit tests related to replacements cleaner from FormatTest.cpp to CleanUpTest.cpp.
llvm-svn: 270971
|
#
451544ab |
| 19-May-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix incorrect indentation in last line of macro definition
Before: #define MACRO(a) \ if (a) { \ f(); \ } else \ g()
After: #define MACRO(a
clang-format: Fix incorrect indentation in last line of macro definition
Before: #define MACRO(a) \ if (a) { \ f(); \ } else \ g()
After: #define MACRO(a) \ if (a) { \ f(); \ } else \ g()
llvm-svn: 270028
show more ...
|
#
e2fab133 |
| 19-May-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix enumerator case ranges.
Before: case a... b: break;
After: case a ... b: break;
llvm-svn: 270027
|
#
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 ...
|
#
2b2c967c |
| 08-May-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix space after argument comments.
Before: f(/*a=*/a, /*b=*/ ::b);
After: f(/*a=*/a, /*b=*/::b);
llvm-svn: 268879
|
#
a7900adf |
| 08-May-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Support enum type template arguments.
Before: template <enum E> class A { public : E *f(); };
After: template <enum E> class A { public: E *f(); };
llvm-svn: 268878
|
#
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 ...
|
#
c3ff0cd8 |
| 18-Apr-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Improve heuristics to detect function declarations/definitions.
Specifically understand ellipses in parameter lists and treat trailing reference qualifiers and the "{" as signals.
llv
clang-format: Improve heuristics to detect function declarations/definitions.
Specifically understand ellipses in parameter lists and treat trailing reference qualifiers and the "{" as signals.
llvm-svn: 266599
show more ...
|
#
03137c65 |
| 14-Apr-2016 |
Marianne Mailhot-Sarrasin <marianne.mailhot.sarrasin@gmail.com> |
clang-format: Last line in incomplete block is indented incorrectly
Indentation of the last line was reset to the initial indentation of the block when reaching EOF.
Patch by Maxime Beaulieu
Diffe
clang-format: Last line in incomplete block is indented incorrectly
Indentation of the last line was reset to the initial indentation of the block when reaching EOF.
Patch by Maxime Beaulieu
Differential Revision: http://reviews.llvm.org/D19065
llvm-svn: 266321
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 ...
|
#
2cce7b72 |
| 06-Apr-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix label-in-if statement in macros where it is actually used.
Before: #define A \ if (a) \ label: \ f()
After: #define A \ if (a) \ label: \ f()
ll
clang-format: Fix label-in-if statement in macros where it is actually used.
Before: #define A \ if (a) \ label: \ f()
After: #define A \ if (a) \ label: \ f()
llvm-svn: 265557
show more ...
|
#
40609472 |
| 06-Apr-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Support labels in brace-less ifs.
While I am not personally convinced about the usefulness of this construct, we should break it.
Before: if (a) label: f();
After: if (a) lab
clang-format: Support labels in brace-less ifs.
While I am not personally convinced about the usefulness of this construct, we should break it.
Before: if (a) label: f();
After: if (a) label: f();
llvm-svn: 265545
show more ...
|
#
19bc1d00 |
| 06-Apr-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix incorrect function annotation detection.
Before: MACRO( abc).function() // wrap << abc;
After: MACRO(abc).function() // wrap << abc;
llvm-svn: 265540
|
#
94b1bdf9 |
| 05-Apr-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Fix cast detection on "this".
Before: auto x = (X) this;
After: auto x = (X)this;
This fixes llvm.org/PR27198.
llvm-svn: 265385
|
#
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 ...
|
#
c13ca6a9 |
| 24-Mar-2016 |
Eric Liu <ioeric@google.com> |
Dsiable FormatStyle::GetStyleOfFile test case for mingw.
llvm-svn: 264289
|
#
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
|
#
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 ...
|
#
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 ...
|
#
9c8ff355 |
| 21-Mar-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Make include sorting's main include detection configurable.
This patch adds a regular expression to configure suffixes of an included file to check whether it is the "main" include of
clang-format: Make include sorting's main include detection configurable.
This patch adds a regular expression to configure suffixes of an included file to check whether it is the "main" include of the current file. Previously, clang-format has allowed arbitrary suffixes on the formatted file, which is still the case when no IncludeMainRegex is specified.
llvm-svn: 263943
show more ...
|
#
710f8493 |
| 17-Mar-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: Slightly weaken AlignAfterOpenBracket=AlwaysBreak.
If a call takes a single argument, using AlwaysBreak can lead to lots of wasted lines and additional indentation without improving th
clang-format: Slightly weaken AlignAfterOpenBracket=AlwaysBreak.
If a call takes a single argument, using AlwaysBreak can lead to lots of wasted lines and additional indentation without improving the readability in a significant way.
Before: caaaaaaaaaaaall( caaaaaaaaaaaall( caaaaaaaaaaaall( caaaaaaaaaaaaaaaaaaaaaaall(aaaaaaaaaaaaaa, aaaaaaaaa))));
After: caaaaaaaaaaaall(caaaaaaaaaaaall(caaaaaaaaaaaall( caaaaaaaaaaaaaaaaaaaaaaall(aaaaaaaaaaaaaa, aaaaaaaaa))));
llvm-svn: 263709
show more ...
|
Revision tags: llvmorg-3.8.0 |
|
#
abd1f574 |
| 02-Mar-2016 |
Daniel Jasper <djasper@google.com> |
clang-format: [JS] Optionally re-quote string literals.
Turns "foo" into 'foo' (or vice versa, depending on configuration). This makes it more convenient to follow the Google JavaScript style guide:
clang-format: [JS] Optionally re-quote string literals.
Turns "foo" into 'foo' (or vice versa, depending on configuration). This makes it more convenient to follow the Google JavaScript style guide: https://google.github.io/styleguide/javascriptguide.xml?showone=Strings#Strings
This functionality is behind the option "JavaScriptQuotes", which can be:
* "leave" (no re-quoting) * "single" (change to single quotes) * "double" (change to double quotes)
This also changes single quoted JavaScript string literals to be treated as tok::string_literal, not tok::char_literal, which fixes two unrelated tests.
Patch by Martin Probst. Thank you.
llvm-svn: 262534
show more ...
|