#
dcbcec48 |
| 19-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Handle C# generic type constraints
Summary: Treat each C# generic type constraint, `where T: ...`, as a line.
Add C# keyword: where
Add Token Types: CSharpGenericTypeConstraint, CSh
[clang-format] Handle C# generic type constraints
Summary: Treat each C# generic type constraint, `where T: ...`, as a line.
Add C# keyword: where
Add Token Types: CSharpGenericTypeConstraint, CSharpGenericTypeConstraintColon, CSharpGenericTypeConstraintComma.
This patch does not wrap generic type constraints well, that will be addressed in a follow up patch.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits, MyDeveloperDay
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D76367
show more ...
|
Revision tags: llvmorg-10.0.0-rc5, llvmorg-10.0.0-rc4 |
|
#
1fb9c298 |
| 11-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Improved identification of C# nullables
Summary: Allow `?` inside C# generics.
Do not mistake casts like `(Type?)` as conditional operators.
Reviewers: krasimir
Subscribers: cfe-co
[clang-format] Improved identification of C# nullables
Summary: Allow `?` inside C# generics.
Do not mistake casts like `(Type?)` as conditional operators.
Reviewers: krasimir
Subscribers: cfe-commits, MyDeveloperDay
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75983
show more ...
|
#
5c917bd9 |
| 11-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] No space in `new()` and `this[Type x]` in C#
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits, MyDeveloperDay
Tags: #clang-format, #clang
Differential Revision:
[clang-format] No space in `new()` and `this[Type x]` in C#
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits, MyDeveloperDay
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75984
show more ...
|
#
0c28a093 |
| 10-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Correct indentation for `[key] = value,` entries in C# object initialisers
Restores content of commit cb3f20d27c9e91cb9f997f0401f388e62c4ba993 reverted in commit 5a101f377315c0c0c58e8
[clang-format] Correct indentation for `[key] = value,` entries in C# object initialisers
Restores content of commit cb3f20d27c9e91cb9f997f0401f388e62c4ba993 reverted in commit 5a101f377315c0c0c58e8df842fe5eb5d8c7611d with a corrected commit message.
Summary: Do not use continuation indent for '[' in blocks in C# code.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75747
show more ...
|
#
5a101f37 |
| 10-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
Revert "[clang-format] Correct indentation for `[key] = value,` entries in C++ object initialisers"
Commit message says "C++" where it should say "C#".
This reverts commit cb3f20d27c9e91cb9f997f040
Revert "[clang-format] Correct indentation for `[key] = value,` entries in C++ object initialisers"
Commit message says "C++" where it should say "C#".
This reverts commit cb3f20d27c9e91cb9f997f0401f388e62c4ba993.
show more ...
|
#
cb3f20d2 |
| 09-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Correct indentation for `[key] = value,` entries in C++ object initialisers
Summary: Do not use continuation indent for '[' in blocks in C# code.
Reviewers: krasimir
Reviewed By: kr
[clang-format] Correct indentation for `[key] = value,` entries in C++ object initialisers
Summary: Do not use continuation indent for '[' in blocks in C# code.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75747
show more ...
|
#
eb682b80 |
| 09-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] C# does not indent braced initializers as continuations
Summary: C# treats object initializers as braced init blocks. Braced init blocks are no longer indented as continuations.
Revi
[clang-format] C# does not indent braced initializers as continuations
Summary: C# treats object initializers as braced init blocks. Braced init blocks are no longer indented as continuations.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75731
show more ...
|
#
b28ed9ce |
| 09-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] cleanup from D75517
Summary: Fix typo in comment.
Add closing brace to test text.
Reviewers: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision:
[clang-format] cleanup from D75517
Summary: Fix typo in comment.
Add closing brace to test text.
Reviewers: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75856
show more ...
|
#
fe61bc1a |
| 04-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Improve identification of C# nullables
Summary: Consider `? identifier =` and `? identifier;` to be nullable within function bodies.
Reviewers: krasimir
Reviewed By: krasimir
Subsc
[clang-format] Improve identification of C# nullables
Summary: Consider `? identifier =` and `? identifier;` to be nullable within function bodies.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits, MyDeveloperDay
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75606
show more ...
|
#
7d2fdd3f |
| 04-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] parse C# object initialisers
Summary: Treat C# object initializers as braced lists.
Allow lambdas inside C# braced lists.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cf
[clang-format] parse C# object initialisers
Summary: Treat C# object initializers as braced lists.
Allow lambdas inside C# braced lists.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits, MyDeveloperDay
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75473
show more ...
|
Revision tags: llvmorg-10.0.0-rc3 |
|
#
736fef97 |
| 03-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Do not format C# array subscript operators as attributes
Summary: Fix misidentification of C# array subscript operators.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-
[clang-format] Do not format C# array subscript operators as attributes
Summary: Fix misidentification of C# array subscript operators.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits, MyDeveloperDay
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75517
show more ...
|
#
9f8a7e82 |
| 03-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Allow nested [] in C# attributes
Summary: Keep track of unpaired [] when identifying C# attribute lines
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #c
[clang-format] Allow nested [] in C# attributes
Summary: Keep track of unpaired [] when identifying C# attribute lines
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75455
show more ...
|
#
9c4afce7 |
| 02-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Rename CSharpNullConditionalSq and add missing test
Summary: Rename CSharpNullConditionalSq to CSharpNullConditionalLSquare.
Add test for spaces inside [] with C# Null conditionals.
[clang-format] Rename CSharpNullConditionalSq and add missing test
Summary: Rename CSharpNullConditionalSq to CSharpNullConditionalLSquare.
Add test for spaces inside [] with C# Null conditionals.
Address comments missed from https://reviews.llvm.org/D75368.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75456
show more ...
|
#
c3af063c |
| 02-Mar-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Handle NullCoalescing and NullConditional operators in C#
Summary: Disable merging of Type? into a single token.
Merge ?? ?. and ?[ into a single token.
Reviewers: krasimir, MyDevel
[clang-format] Handle NullCoalescing and NullConditional operators in C#
Summary: Disable merging of Type? into a single token.
Merge ?? ?. and ?[ into a single token.
Reviewers: krasimir, MyDeveloperDay
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75368
show more ...
|
#
f8296152 |
| 28-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Improve C# handling of spaces in square brackets
Reviewers: MyDeveloperDay, krasimir
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revisi
[clang-format] Improve C# handling of spaces in square brackets
Reviewers: MyDeveloperDay, krasimir
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75336
show more ...
|
#
5f52a93b |
| 28-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Recognize C# nullable types
Summary: Do not confuse C# nullable types with conditional expressions.
Do not put a space before the `?` in `[access-modifier] Type? variableName;`
Revi
[clang-format] Recognize C# nullable types
Summary: Do not confuse C# nullable types with conditional expressions.
Do not put a space before the `?` in `[access-modifier] Type? variableName;`
Reviewers: krasimir, MyDeveloperDay
Reviewed By: krasimir, MyDeveloperDay
Subscribers: cfe-commits, MyDeveloperDay
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75261
show more ...
|
#
7dfe0cc7 |
| 27-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Recognize C# named argument colons as a token type
Summary: No longer merge 'name' and ':' into a single token.
Ensure that line breaks cannot be placed before or after a named-argum
[clang-format] Recognize C# named argument colons as a token type
Summary: No longer merge 'name' and ':' into a single token.
Ensure that line breaks cannot be placed before or after a named-argument colon.
Ensure that no space is inserted before a named-argument colon.
Reviewers: krasimir
Reviewed By: krasimir
Subscribers: cfe-commits, MyDeveloperDay
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75244
show more ...
|
#
548e540d |
| 27-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Handle commas in [] in C#
Summary: Respect setting `SpacesInSquareBrackets` for commas in square brackets in C# code.
Reviewers: krasimir, MyDeveloperDay
Reviewed By: krasimir
Subs
[clang-format] Handle commas in [] in C#
Summary: Respect setting `SpacesInSquareBrackets` for commas in square brackets in C# code.
Reviewers: krasimir, MyDeveloperDay
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75182
show more ...
|
#
e8c5fea2 |
| 26-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Special handling of spaces for C# code
Summary: Ensure that there are spaces around braces '{', '}'.
Ensure that there is a space before and after '=>'.
Ensure that 'async' and 'whe
[clang-format] Special handling of spaces for C# code
Summary: Ensure that there are spaces around braces '{', '}'.
Ensure that there is a space before and after '=>'.
Ensure that 'async' and 'when' are considered as keywords when inserting spaces.
Reviewers: krasimir, MyDeveloperDay
Reviewed By: krasimir
Tags: #clang-format
Differential Revision: https://reviews.llvm.org/D75129
show more ...
|
#
2bd6974a |
| 25-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Wrap lines for C# property accessors
Summary: Ensure that auto-implemented properties `{ get; private set }` are wrapped on to one line for C# code.
Reviewers: MyDeveloperDay, krasi
[clang-format] Wrap lines for C# property accessors
Summary: Ensure that auto-implemented properties `{ get; private set }` are wrapped on to one line for C# code.
Reviewers: MyDeveloperDay, krasimir
Reviewed By: MyDeveloperDay, krasimir
Subscribers: cfe-commits
Tags: #clang-format, #clang
Differential Revision: https://reviews.llvm.org/D75006
show more ...
|
#
a11ff39b |
| 20-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Merge name and colon into a single token for C# named arguments
Summary: Merge 'argumentName' and ':' into a single token in foo(argumentName: bar).
Add C# named argument as a token
[clang-format] Merge name and colon into a single token for C# named arguments
Summary: Merge 'argumentName' and ':' into a single token in foo(argumentName: bar).
Add C# named argument as a token type.
Reviewers: krasimir, MyDeveloperDay
Reviewed By: krasimir
Tags: #clang-format
Differential Revision: https://reviews.llvm.org/D74894
show more ...
|
Revision tags: llvmorg-10.0.0-rc2 |
|
#
b46f925d |
| 10-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Improve handling of C# attributes
Summary: C# attributes can appear on classes and methods, in which case they should go on their own line, or on method parameters in which case they
[clang-format] Improve handling of C# attributes
Summary: C# attributes can appear on classes and methods, in which case they should go on their own line, or on method parameters in which case they should be left inline.
Reviewers: krasimir, MyDeveloperDay
Reviewed By: MyDeveloperDay
Subscribers: klimek
Tags: #clang-format
Differential Revision: https://reviews.llvm.org/D74265
show more ...
|
#
f40a7972 |
| 05-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Do not merge short C# class definitions into one line
Summary: Skip access specifiers before record definitions when deciding whether or not to wrap lines so that C# class definitions
[clang-format] Do not merge short C# class definitions into one line
Summary: Skip access specifiers before record definitions when deciding whether or not to wrap lines so that C# class definitions do not get wrapped into a single line.
Reviewers: krasimir, MyDeveloperDay
Reviewed By: krasimir
Tags: #clang-format
Differential Revision: https://reviews.llvm.org/D74050
show more ...
|
#
ca1fd460 |
| 05-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Do not treat C# attribute targets as labels
Summary: Merge '[', 'target' , ':' into a single token for C# attributes to prevent the target from being seen as a label.
Reviewers: MyDe
[clang-format] Do not treat C# attribute targets as labels
Summary: Merge '[', 'target' , ':' into a single token for C# attributes to prevent the target from being seen as a label.
Reviewers: MyDeveloperDay, krasimir
Reviewed By: krasimir
Tags: #clang-format
Differential Revision: https://reviews.llvm.org/D74043
show more ...
|
#
50d8977c |
| 04-Feb-2020 |
Jonathan Coe <jbcoe@google.com> |
[clang-format] Allow a comment to follow a C# attribute specifier
Summary: Add comments to the list of tokens that can follow the ']' at the end of a C# attribute specifier to prevent comments after
[clang-format] Allow a comment to follow a C# attribute specifier
Summary: Add comments to the list of tokens that can follow the ']' at the end of a C# attribute specifier to prevent comments after attribute specifiers from being formatted as continuations.
Reviewers: MyDeveloperDay, krasimir
Reviewed By: MyDeveloperDay
Tags: #clang-format
Differential Revision: https://reviews.llvm.org/D73977
show more ...
|