This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Fix Clang -Wdeprecated-declarations with MSVC's CRT.
ClosedPublic

Authored by STL_MSFT on Jan 25 2017, 10:36 AM.

Details

Summary

[libcxx] [test] Fix Clang -Wdeprecated-declarations with MSVC's CRT.

libcxx's tests use various C Standard Library functions that have been
marked by MSVC's CRT as deprecated by Microsoft (not by ISO).

libcxx's usage is cromulent (just checking with decltype to see if the functions
are being dragged in by various headers as required by the Standard), so
defining _CRT_SECURE_NO_WARNINGS will silence the warnings in a targeted manner.
This needs to be defined before including any CRT headers.

Also, make this file prettier.

Diff Detail

Event Timeline

STL_MSFT created this revision.Jan 25 2017, 10:36 AM
EricWF accepted this revision.Feb 4 2017, 2:55 PM
This revision is now accepted and ready to land.Feb 4 2017, 2:55 PM
STL_MSFT closed this revision.Feb 5 2017, 3:05 PM