diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2013-01-27 20:12:04 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2013-01-27 20:12:04 +0000 |
| commit | bfec916e5fc40f22ac11267e78a024cd8dcf3bbf (patch) | |
| tree | 7a4ac2f001bce397ed206c2a57ca28fc42507c22 /include | |
| parent | 1df08370da6fb4578272295aabfacfb12e1d40f9 (diff) | |
| download | clang-bfec916e5fc40f22ac11267e78a024cd8dcf3bbf.tar.gz clang-bfec916e5fc40f22ac11267e78a024cd8dcf3bbf.tar.bz2 clang-bfec916e5fc40f22ac11267e78a024cd8dcf3bbf.tar.xz | |
PR15067: Don't assert when a UCN appears in a C90 file.
Unfortunately, we can't accept the UCN as an extension because we're
required to treat it as two tokens for preprocessing purposes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.td | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index e3bff51b8e..81e8e9cf84 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -127,6 +127,11 @@ def warn_cxx98_compat_literal_ucn_escape_basic_scs : Warning< def warn_cxx98_compat_literal_ucn_control_character : Warning< "universal character name referring to a control character " "is incompatible with C++98">, InGroup<CXX98Compat>, DefaultIgnore; +def warn_ucn_not_valid_in_c89 : Warning< + "universal character names are only valid in C99 or C++; " + "treating as '\\' followed by identifier">, InGroup<Unicode>; +def warn_ucn_not_valid_in_c89_literal : ExtWarn< + "universal character names are only valid in C99 or C++">, InGroup<Unicode>; // Literal @@ -165,8 +170,6 @@ def ext_string_too_long : Extension<"string literal of length %0 exceeds " "support">, InGroup<OverlengthStrings>; def err_character_too_large : Error< "character too large for enclosing character literal type">; -def warn_ucn_not_valid_in_c89 : ExtWarn< - "unicode escape sequences are only valid in C99 or C++">, InGroup<Unicode>; def warn_cxx98_compat_unicode_literal : Warning< "unicode literals are incompatible with C++98">, InGroup<CXX98Compat>, DefaultIgnore; |
