[PATCH] D15926: Do not print certain warnings when input is a header.

Erik Verbruggen via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 6 07:34:32 PST 2016


erikjv created this revision.
erikjv added reviewers: klimek, rsmith.
erikjv added a subscriber: cfe-commits.

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.


http://reviews.llvm.org/D15926

Files:
  include/clang/Basic/SourceManager.h
  include/clang/Frontend/FrontendOptions.h
  lib/Frontend/CompilerInstance.cpp
  lib/Frontend/CompilerInvocation.cpp
  lib/Frontend/FrontendActions.cpp
  lib/Lex/PPDirectives.cpp
  lib/Lex/PPMacroExpansion.cpp
  lib/Lex/Pragma.cpp
  test/Preprocessor/header_is_main_file.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15926.44121.patch
Type: text/x-patch
Size: 6930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160106/cd760ff2/attachment.bin>


More information about the cfe-commits mailing list