diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-21 06:13:51 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-21 06:13:51 +0000 |
commit | 4f6988e4874e78ff109af7053d7b98c2f591788b (patch) | |
tree | b3047b66733453298d7f63b35b29500e31a2c22c /include/clang/Basic/DiagnosticLexKinds.td | |
parent | d685fc0eccf468b6d16204965b92f7ed65ee62b2 (diff) |
Preprocessor: support defined() with operator names for MS compatibility
Also flesh out missing tests, improve diagnostic QOI and fix a couple of corner
cases found in the process.
Fixes PR10606.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticLexKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.td | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index 6240ce0705..5d3a4be61a 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -353,7 +353,7 @@ def err_pp_error_opening_file : Error< def err_pp_empty_filename : Error<"empty filename">; def err_pp_include_too_deep : Error<"#include nested too deeply">; def err_pp_expects_filename : Error<"expected \"FILENAME\" or <FILENAME>">; -def err_pp_macro_not_identifier : Error<"macro names must be identifiers">; +def err_pp_macro_not_identifier : Error<"macro name must be an identifier">; def err_pp_missing_macro_name : Error<"macro name missing">; def err_pp_missing_rparen_in_macro_def : Error< "missing ')' in macro parameter list">; @@ -379,8 +379,6 @@ def err_pp_expected_value_in_expr : Error<"expected value in expression">; def err_pp_expected_rparen : Error<"expected ')' in preprocessor expression">; def err_pp_expected_eol : Error< "expected end of line in preprocessor expression">; -def err_pp_defined_requires_identifier : Error< - "operator 'defined' requires an identifier">; def err_pp_expected_after : Error<"missing %1 after %0">; def err_pp_colon_without_question : Error<"':' without preceding '?'">; def err_pp_division_by_zero : Error< |