Revision tags: llvmorg-11.1.0, llvmorg-11.1.0-rc3 |
|
#
25f753c5 |
| 29-Jan-2021 |
Björn Schäpers <bjoern@hazardy.de> |
[clang-format] Add possibility to be based on parent directory
This allows the define BasedOnStyle: InheritParentConfig and then clang-format looks into the parent directories for their .clang-forma
[clang-format] Add possibility to be based on parent directory
This allows the define BasedOnStyle: InheritParentConfig and then clang-format looks into the parent directories for their .clang-format and takes that as a basis.
Differential Revision: https://reviews.llvm.org/D93844
show more ...
|
#
a8105b37 |
| 02-Feb-2021 |
Kent Sommer <work@kentsommer.com> |
[clang-format] Add case aware include sorting.
Adds an option to [clang-format] which sorts headers in an alphabetical manner using case only for tie-breakers. The options is off by default in favor
[clang-format] Add case aware include sorting.
Adds an option to [clang-format] which sorts headers in an alphabetical manner using case only for tie-breakers. The options is off by default in favor of the current ASCIIbetical sorting style.
Reviewed By: MyDeveloperDay, curdeius, HazardyKnusperkeks
Differential Revision: https://reviews.llvm.org/D95017
show more ...
|
#
772eb24e |
| 29-Jan-2021 |
Björn Schäpers <bjoern@hazardy.de> |
[clang-format] Add option to control the spaces in a line comment
Differential Revision: https://reviews.llvm.org/D92257
|
#
4ad41f1d |
| 29-Jan-2021 |
Björn Schäpers <bjoern@hazardy.de> |
Revert "[clang-format] Add option to control the spaces in a line comment"
This reverts commit 078f30e04d1fcb5a05d8e340f3178f3478075541.
|
Revision tags: llvmorg-12.0.0-rc1, llvmorg-13-init, llvmorg-11.1.0-rc2, llvmorg-11.1.0-rc1 |
|
#
078f30e0 |
| 26-Dec-2020 |
Björn Schäpers <bjoern@hazardy.de> |
[clang-format] Add option to control the spaces in a line comment
Differential Revision: https://reviews.llvm.org/D92257
|
#
6d5c1cd2 |
| 26-Jan-2021 |
Marek Kurdej <marek.kurdej@gmail.com> |
Revert "[clang-format] add case aware include sorting"
This reverts commit 3395a336b02538d0bb768ccfae11c9b6151b102e as there was a post-merge doubt about option naming and type.
|
#
60bf5826 |
| 25-Jan-2021 |
Albertas Vyšniauskas <thezbyg@gmail.com> |
[clang-format] PR16518 Add flag to suppress empty line insertion before access modifier
Add new option called InsertEmptyLineBeforeAccessModifier. Empty line before access modifier is inerted if thi
[clang-format] PR16518 Add flag to suppress empty line insertion before access modifier
Add new option called InsertEmptyLineBeforeAccessModifier. Empty line before access modifier is inerted if this option is set to true (which is the default value, because clang-format always inserts empty lines before access modifiers), otherwise empty lines are removed.
Fixes issue #16518.
Differential Revision: https://reviews.llvm.org/D93846
show more ...
|
#
3395a336 |
| 25-Jan-2021 |
Lukas Barth <work@kentsommer.com> |
[clang-format] add case aware include sorting
* Adds an option to [clang-format] which sorts headers in an alphabetical manner using case only for tie-breakers. The options is off by default i
[clang-format] add case aware include sorting
* Adds an option to [clang-format] which sorts headers in an alphabetical manner using case only for tie-breakers. The options is off by default in favor of the current ASCIIbetical sorting style.
Reviewed By: curdeius, HazardyKnusperkeks
Differential Revision: https://reviews.llvm.org/D95017
show more ...
|
#
25631471 |
| 25-Jan-2021 |
Lukas Barth <mail@lukas-barth.net> |
[clang-format] Add the possibility to align assignments spanning empty lines or comments
Currently, empty lines and comments break alignment of assignments on consecutive lines. This makes the Align
[clang-format] Add the possibility to align assignments spanning empty lines or comments
Currently, empty lines and comments break alignment of assignments on consecutive lines. This makes the AlignConsecutiveAssignments option an enum that allows controlling whether empty lines or empty lines and comments should be ignored when aligning assignments.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, tinloaf
Differential Revision: https://reviews.llvm.org/D93986
show more ...
|
#
7b9d88ab |
| 25-Jan-2021 |
Marek Kurdej <marek.kurdej@gmail.com> |
Revert "[clang-format] Add the possibility to align assignments spanning empty lines or comments"
This reverts commit f00a20e51c1d186e72844939aad10416e1cc99de.
|
#
f00a20e5 |
| 25-Jan-2021 |
Marek Kurdej <marek.kurdej@gmail.com> |
[clang-format] Add the possibility to align assignments spanning empty lines or comments
Currently, empty lines and comments break alignment of assignments on consecutive lines. This makes the Align
[clang-format] Add the possibility to align assignments spanning empty lines or comments
Currently, empty lines and comments break alignment of assignments on consecutive lines. This makes the AlignConsecutiveAssignments option an enum that allows controlling whether empty lines or empty lines and comments should be ignored when aligning assignments.
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, tinloaf
Differential Revision: https://reviews.llvm.org/D93986
show more ...
|
#
cbdde495 |
| 18-Jan-2021 |
Björn Schäpers <bjoern@hazardy.de> |
[clang-format] Apply Allman style to lambdas
Differential Revision: https://reviews.llvm.org/D94906
|
#
bcc1dee6 |
| 23-Dec-2020 |
Björn Schäpers <bjoern@hazardy.de> |
[clang-format] Add StatementAttributeLikeMacros option
This allows to ignore for example Qts emit when AlignConsecutiveDeclarations is set, otherwise it is parsed as a type and it results in some mi
[clang-format] Add StatementAttributeLikeMacros option
This allows to ignore for example Qts emit when AlignConsecutiveDeclarations is set, otherwise it is parsed as a type and it results in some misformating:
unsigned char MyChar = 'x'; emit signal(MyChar);
Differential Revision: https://reviews.llvm.org/D93776
show more ...
|
#
9af03864 |
| 17-Jan-2021 |
mydeveloperday <mydeveloperday@gmail.com> |
[clang-format] Revert e9e6e3b34a8e
Reverting {D92753} due to issues with #pragma indentation in #ifdef/endif structure
|
#
89878e8c |
| 11-Jan-2021 |
Rafał Jelonek <71409580+rjelonek@users.noreply.github.com> |
[clang-format] Find main include after block ended with #pragma hdrstop
Find main include in first include block not ended with #pragma hdrstop
Reviewed By: curdeius
Differential Revision: https:/
[clang-format] Find main include after block ended with #pragma hdrstop
Find main include in first include block not ended with #pragma hdrstop
Reviewed By: curdeius
Differential Revision: https://reviews.llvm.org/D94217
show more ...
|
#
7473940b |
| 11-Jan-2021 |
Rafał Jelonek <71409580+rjelonek@users.noreply.github.com> |
[clang-format] turn on formatting after "clang-format on" while sorting includes
Formatting is not active after "clang-format on" due to merging lines while formatting is off. Also, use trimmed line
[clang-format] turn on formatting after "clang-format on" while sorting includes
Formatting is not active after "clang-format on" due to merging lines while formatting is off. Also, use trimmed line. Behaviour with LF is different than with CRLF.
Reviewed By: curdeius, MyDeveloperDay
Differential Revision: https://reviews.llvm.org/D94206
show more ...
|
#
ee27c767 |
| 11-Jan-2021 |
Rafał Jelonek <71409580+rjelonek@users.noreply.github.com> |
[clang-format] Skip UTF8 Byte Order Mark while sorting includes
If file contain BOM then first instruction (include or clang-format off) is ignored
Reviewed By: MyDeveloperDay
Differential Revisio
[clang-format] Skip UTF8 Byte Order Mark while sorting includes
If file contain BOM then first instruction (include or clang-format off) is ignored
Reviewed By: MyDeveloperDay
Differential Revision: https://reviews.llvm.org/D94201
show more ...
|
Revision tags: llvmorg-11.0.1, llvmorg-11.0.1-rc2 |
|
#
47877c90 |
| 14-Dec-2020 |
Björn Schäpers <bjoern@hazardy.de> |
[clang-format] Add SpaceBeforeCaseColon option
With which you can add a space before the colon of a case or default statement.
Differential Revision: https://reviews.llvm.org/D93240
|
#
eb9483b2 |
| 23-Dec-2020 |
Nathan James <n.james93@hotmail.co.uk> |
[format] Add overload to parseConfiguration that accept llvm::MemoryBufferRef
This overload should be used for better diagnostics when parsing configurations. Now a failure to parse will list the fi
[format] Add overload to parseConfiguration that accept llvm::MemoryBufferRef
This overload should be used for better diagnostics when parsing configurations. Now a failure to parse will list the filename (or <command-line>) instead of just `YAML`.
Reviewed By: MyDeveloperDay
Differential Revision: https://reviews.llvm.org/D93633
show more ...
|
#
e9e6e3b3 |
| 10-Dec-2020 |
mydeveloperday <mydeveloperday@gmail.com> |
[clang-format] Add IndentPragma style to eliminate common clang-format off scenario
A quick search of github.com, shows one common scenario for excessive use of //clang-format off/on is the indentat
[clang-format] Add IndentPragma style to eliminate common clang-format off scenario
A quick search of github.com, shows one common scenario for excessive use of //clang-format off/on is the indentation of #pragma's, especially around the areas of loop optimization or OpenMP
This revision aims to help that by introducing an `IndentPragmas` style, the aim of which is to keep the pragma at the current level of scope
``` for (int i = 0; i < 5; i++) { // clang-format off #pragma HLS UNROLL // clang-format on for (int j = 0; j < 5; j++) { // clang-format off #pragma HLS UNROLL // clang-format on .... ```
can become
``` for (int i = 0; i < 5; i++) { #pragma HLS UNROLL for (int j = 0; j < 5; j++) { #pragma HLS UNROLL .... ```
This revision also support working alongside the `IndentPPDirective` of `BeforeHash` and `AfterHash` (see unit tests for examples)
Reviewed By: curdeius
Differential Revision: https://reviews.llvm.org/D92753
show more ...
|
#
7b2d62fd |
| 10-Dec-2020 |
mydeveloperday <mydeveloperday@gmail.com> |
[clang-format] PR42434 Remove preprocessor and pragma lines from ObjectiveC guess
clang-format see the `disable:` in __pragma(warning(disable:)) as ObjectiveC method call
Remove any line starting
[clang-format] PR42434 Remove preprocessor and pragma lines from ObjectiveC guess
clang-format see the `disable:` in __pragma(warning(disable:)) as ObjectiveC method call
Remove any line starting with `#` or __pragma line from being part of the ObjectiveC guess
https://bugs.llvm.org/show_bug.cgi?id=42434
Reviewed By: curdeius, krasimir
Differential Revision: https://reviews.llvm.org/D92922
show more ...
|
#
8668eae2 |
| 05-Dec-2020 |
mydeveloperday <mydeveloperday@gmail.com> |
[clang-format] Add option for case sensitive regexes for sorted includes
I think the title says everything.
Reviewed By: MyDeveloperDay
Patch By: HazardyKnusperkeks
Differential Revision: https:
[clang-format] Add option for case sensitive regexes for sorted includes
I think the title says everything.
Reviewed By: MyDeveloperDay
Patch By: HazardyKnusperkeks
Differential Revision: https://reviews.llvm.org/D91507
show more ...
|
#
840e651d |
| 04-Dec-2020 |
mydeveloperday <mydeveloperday@gmail.com> |
[clang-format] Improve clang-formats handling of concepts
This is a starting point to improve the handling of concepts in clang-format. There is currently no real formatting of concepts and this can
[clang-format] Improve clang-formats handling of concepts
This is a starting point to improve the handling of concepts in clang-format. There is currently no real formatting of concepts and this can lead to some odd formatting, e.g.
Reviewed By: mitchell-stellar, miscco, curdeius
Differential Revision: https://reviews.llvm.org/D79773
show more ...
|
#
fe21c86e |
| 03-Dec-2020 |
Marek Kurdej <marek@quasardb.net> |
[clang-format] De-duplicate includes with leading or trailing whitespace.
This fixes PR46555 (https://bugs.llvm.org/show_bug.cgi?id=46555).
Reviewed By: MyDeveloperDay
Differential Revision: https
[clang-format] De-duplicate includes with leading or trailing whitespace.
This fixes PR46555 (https://bugs.llvm.org/show_bug.cgi?id=46555).
Reviewed By: MyDeveloperDay
Differential Revision: https://reviews.llvm.org/D88296
show more ...
|
Revision tags: llvmorg-11.0.1-rc1 |
|
#
1e4d6d1c |
| 31-Oct-2020 |
Mark Nauwelaerts <mark.nauwelaerts@gmail.com> |
[clang-format] Add new option PenaltyIndentedWhitespace
Reviewed By: MyDeveloperDay
Differential Revision: https://reviews.llvm.org/D90534
|