jbcoe planned changes to this revision.
jbcoe added a comment.
Handle ??, ?. and ?[ in lib/Format/FormatTokenLexer.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75368/new/
https://reviews.llvm.org/D75368
___
cfe-commits mailing list
krasimir added inline comments.
Comment at: clang/include/clang/Basic/TokenKinds.def:237
+// C# support
+PUNCTUATOR(questionquestion, "??")
+PUNCTUATOR(questionlsquare, "?[")
I think this is not a good place to add these.
I think these
jbcoe updated this revision to Diff 247399.
jbcoe added a comment.
Fix failing test by parsing tokens after '?[' in the same way as tokens after
'['.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75368/new/
https://reviews.llvm.org/D75368
Files:
jbcoe planned changes to this revision.
jbcoe added a comment.
There's a weird test failure I'm unable to reproduce outside of the tests with
real source code where
public static void Main(string[] args)
{
string dirPath = args?[0];
}
is (mis)-formatted as
public static void
jbcoe created this revision.
jbcoe added a reviewer: krasimir.
jbcoe added a project: clang-format.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
jbcoe planned changes to this revision.
jbcoe added a comment.
There's a weird test failure I'm unable to reproduce outside of