This is an archive of the discontinued LLVM Phabricator instance.

[Preamble] Empty preamble is not an error.
ClosedPublic

Authored by hokein on Aug 13 2018, 3:23 AM.

Details

Summary

Empty preamble is valid for source file which doesn't have any
preprocessor and #includes.

This patch makes clang treat an empty preamble as a normal preamble.

Check: ninja check-clang

A testcase is added in https://reviews.llvm.org/D50627.

Diff Detail

Repository
rC Clang

Event Timeline

hokein created this revision.Aug 13 2018, 3:23 AM
This revision is now accepted and ready to land.Aug 13 2018, 4:19 AM
This revision was automatically updated to reflect the committed changes.