-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libcxx] Slightly improved policy for handling experimental features
Summary: Following the discussion on the libcxx-dev mailing list (http://lists.llvm.org/pipermail/libcxx-dev/2019-May/000358.html), this implements the new policy for handling experimental features and their deprecation. We basically add a deprecation warning for std::experimental::filesystem, and we remove a bunch of <experimental/*> headers that were now empty. Reviewers: mclow.lists, EricWF Subscribers: mgorny, christof, jkorous, dexonsmith, arphaman, libcxx-commits, jfb Tags: #libc Differential Revision: https://reviews.llvm.org/D62428 llvm-svn: 363072
- Loading branch information
Showing
36 changed files
with
238 additions
and
697 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
libcxx/test/libcxx/experimental/diagnostics/syserr/use_header_warning.fail.cpp
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
libcxx/test/libcxx/experimental/diagnostics/syserr/version.pass.cpp
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
libcxx/test/libcxx/experimental/filesystem/deprecated.fail.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| //===----------------------------------------------------------------------===// | ||
| // | ||
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
| // See https://llvm.org/LICENSE.txt for license information. | ||
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| // | ||
| //===----------------------------------------------------------------------===// | ||
|
|
||
| // REQUIRES: verify-support | ||
| // UNSUPPORTED: c++98, c++03 | ||
|
|
||
| // <experimental/filesystem> | ||
|
|
||
| #include <experimental/filesystem> | ||
|
|
||
| using namespace std::experimental::filesystem; // expected-error {{'filesystem' is deprecated: std::experimental::filesystem has now been deprecated in favor of C++17's std::filesystem. Please stop using it and start using std::filesystem. This experimental version will be removed in LLVM 11. You can remove this warning by defining the _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM macro.}} | ||
|
|
||
| int main(int, char**) { | ||
| return 0; | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
libcxx/test/libcxx/experimental/numerics/numeric.ops/use_header_warning.fail.cpp
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
libcxx/test/libcxx/experimental/numerics/numeric.ops/version.pass.cpp
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
libcxx/test/libcxx/experimental/strings/string.view/use_header_warning.fail.cpp
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
libcxx/test/libcxx/experimental/strings/string.view/version.pass.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.