diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-08 18:46:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-08 18:46:40 +0000 |
commit | de076650fa79a02743b5fe57a72f991ba24779f9 (patch) | |
tree | ac56895f8a3fe956fd5bc26cf656c67ab1ad4e23 /include/clang/Basic | |
parent | b8e240ed8b8f58c7b7fe82776bd6147b437f5d53 (diff) |
reject the #__include_macros directive unless it comes from the
predefines buffer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticLexKinds.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index 74a1b5903a..adce63c489 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -85,6 +85,8 @@ def warn_hex_escape_too_large : ExtWarn<"hex escape sequence out of range">; def pp_hash_warning : Warning<"#warning%0">; def pp_include_next_in_primary : Warning< "#include_next in primary source file">; +def pp_include_macros_out_of_predefines : Error< + "the #__include_macros directive is only for internal use by -imacros">; def pp_include_next_absolute_path : Warning<"#include_next with absolute path">; def ext_c99_whitespace_required_after_macro_name : ExtWarn< "ISO C99 requires whitespace after the macro name">; |