[PATCH] D87962: [clang] Change the multi-character character constants from extension to implementation-defined.

Chuyang Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 19 04:12:31 PDT 2020


nomanous created this revision.
nomanous added a reviewer: rsmith.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
nomanous requested review of this revision.

The multi-character character constants should be implementation-defined according to the C standard but actually were made to be extension, which would cause errors when using clang with option "-pedantic-errors". This patch  fixes it and it is for bug #46797 on the Bugzilla system.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87962

Files:
  clang/include/clang/Basic/DiagnosticLexKinds.td
  clang/test/CXX/lex/lex.literal/lex.ccon/p1.cpp
  clang/test/FixIt/format.m
  clang/test/Lexer/multi-character-character-constant.c
  clang/test/Preprocessor/expr_multichar.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87962.292954.patch
Type: text/x-patch
Size: 4700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200919/e256dbb8/attachment.bin>


More information about the cfe-commits mailing list