When generating pre-compiled headers, or when opening a header file with
libclang, suppress the warnings "#pragma once in main file" and
"#include_next in primary source file".
Fixes PR16686 and PR24390.
Paths
| Differential D15926
Do not print certain warnings when input is a header. AbandonedPublic Authored by erikjv on Jan 6 2016, 7:34 AM.
Details
Diff Detail Event Timelineerikjv updated this object. mehdi_amini added inline comments. aaron.ballman added inline comments.
Revision Contents
Diff 60023 include/clang/Basic/LangOptions.h
lib/Frontend/CompilerInvocation.cpp
lib/Lex/PPDirectives.cpp
lib/Lex/PPMacroExpansion.cpp
lib/Lex/Pragma.cpp
|
Should move the initializer to the constructor (not certain that MSVC 2013 supports this construct, but it's also more consistent).