diff options
author | Erik Verbruggen <erikjv@me.com> | 2016-10-27 14:17:10 +0000 |
---|---|---|
committer | Erik Verbruggen <erikjv@me.com> | 2016-10-27 14:17:10 +0000 |
commit | ca12756c3c4698a21b8a8ed681682da7dba09b1b (patch) | |
tree | 1213de866ff672c394cddedd9f9812eec93f36bc /include/clang/Basic/LangOptions.h | |
parent | 32adf66f72945d7155cbffebde4f06a2d7911782 (diff) |
Do not print include_next/pragma once warnings when input is a header.
r276653 suppressed the pragma once warning when generating a PCH file.
This patch extends that to any main file for which clang is told (with
the -x option) that it's a header file. It will also suppress the
warning "#include_next in primary source file".
Differential Revision: http://reviews.llvm.org/D25989
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.h')
-rw-r--r-- | include/clang/Basic/LangOptions.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index d4ecd1f765..10635b1122 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -132,6 +132,10 @@ public: /// host code generation. std::string OMPHostIRFile; + /// \brief Indicates whether the front-end is explicitly told that the + /// input is a header file (i.e. -x c-header). + bool IsHeaderFile; + LangOptions(); // Define accessors/mutators for language options of enumeration type. |