diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-02-14 04:13:17 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-02-14 04:13:17 +0000 |
commit | 5773155aa1b1e219b140ecdb61f207581211edbf (patch) | |
tree | 609e1652b8d6beb16940da8dd9b615d9023ef060 /include/clang/Basic/DiagnosticLexKinds.td | |
parent | c17fda9295b4e1e4a16cc5eb73b23cd668b29eba (diff) | |
download | clang-5773155aa1b1e219b140ecdb61f207581211edbf.tar.gz |
Print a note to the called macro when diagnosing err_embedded_directive
Fixes PR40713, see there for the motivation for this.
Differential Revision: https://reviews.llvm.org/D58161
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticLexKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.td | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index bb85bed94d..da73e62c9d 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -391,6 +391,7 @@ def warn_cxx98_compat_empty_fnmacro_arg : Warning< "empty macro arguments are incompatible with C++98">, InGroup<CXX98CompatPedantic>, DefaultIgnore; def note_macro_here : Note<"macro %0 defined here">; +def note_macro_expansion_here : Note<"expansion of macro %0 requested here">; def err_pp_opencl_variadic_macros : Error<"variadic macros not supported in OpenCL">; |