This is an archive of the discontinued LLVM Phabricator instance.

Do not print include_next/pragma once warnings when input is a header.
ClosedPublic

Authored by erikjv on Oct 26 2016, 7:51 AM.

Details

Summary

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

Diff Detail

Repository
rL LLVM

Event Timeline

erikjv updated this revision to Diff 75890.Oct 26 2016, 7:51 AM
erikjv retitled this revision from to Do not print include_next/pragma once warnings when input is a header..
erikjv updated this object.
erikjv added a reviewer: bkramer.
erikjv added a subscriber: cfe-commits.
bkramer accepted this revision.Oct 27 2016, 6:11 AM
bkramer edited edge metadata.

lg

This revision is now accepted and ready to land.Oct 27 2016, 6:11 AM
This revision was automatically updated to reflect the committed changes.