This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Reword the "code outside header guard" warning.
ClosedPublic

Authored by bkramer on Feb 21 2017, 3:00 AM.

Details

Summary

The check doesn't really know if the code it is warning about came before
or after the header guard, so phrase it more neutral instead of complaining
about code before the header guard. The location for the warning is still
not optimal, but I don't think fixing that is worth the effort, the
preprocessor doesn't give us a better location.

Diff Detail

Repository
rL LLVM

Event Timeline

bkramer created this revision.Feb 21 2017, 3:00 AM
alexfh accepted this revision.Feb 21 2017, 3:32 AM

LG. Thank you for the fix!

This revision is now accepted and ready to land.Feb 21 2017, 3:32 AM
This revision was automatically updated to reflect the committed changes.