This is an archive of the discontinued LLVM Phabricator instance.

Rename identifiers named `__output`
ClosedPublic

Authored by arichardson on Nov 2 2017, 2:19 AM.

Details

Summary

In the CHERI clang compiler output and input are keywords and therefore
we can't compile libc++ with our compiler.

Event Timeline

arichardson created this revision.Nov 2 2017, 2:19 AM
EricWF accepted this revision.Nov 6 2017, 6:25 PM

LGTM minus inline comments.

test/support/nasty_macros.hpp
55

Shouldn't these not be defined when running the tests with a CHER compiler? Otherwise the macro will conflict with the keyword?

This revision is now accepted and ready to land.Nov 6 2017, 6:25 PM
arichardson added inline comments.Nov 7 2017, 5:20 AM
test/support/nasty_macros.hpp
55

It isn't being used anywhere in libcxx so that should be fine. The tests are still working for me since it doesn't seem like we are compiling with -Werror=reserved-id-macro.

This revision was automatically updated to reflect the committed changes.