[PATCH] D25989: Do not print include_next/pragma once warnings when input is a header.

Erik Verbruggen via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 26 07:51:33 PDT 2016


erikjv created this revision.
erikjv added a reviewer: bkramer.
erikjv added a subscriber: cfe-commits.

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".


https://reviews.llvm.org/D25989

Files:
  include/clang/Basic/LangOptions.h
  lib/Basic/LangOptions.cpp
  lib/Frontend/CompilerInvocation.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: D25989.75890.patch
Type: text/x-patch
Size: 5536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161026/1d84c653/attachment.bin>


More information about the cfe-commits mailing list