[PATCH] D33424: Lexer: allow imaginary constants in GNU mode (only).

Tim Northover via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 23 12:48:41 PDT 2017


t.p.northover updated this revision to Diff 99974.
t.p.northover added a comment.

OK, that seems doable. After playing around I came up with this new patch (and remembered to "git add" my own test this time).

It feels like a bit of a hack, but I played around with some alternatives and couldn't come up with anything better. What do you think?


https://reviews.llvm.org/D33424

Files:
  clang/include/clang/Basic/DiagnosticLexKinds.td
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/include/clang/Sema/Sema.h
  clang/lib/Lex/LiteralSupport.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/lib/Sema/SemaLookup.cpp
  clang/test/SemaCXX/imaginary-constants.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33424.99974.patch
Type: text/x-patch
Size: 9315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170523/db61e34e/attachment.bin>


More information about the cfe-commits mailing list