]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add noexcept to filesystem::path query functions
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Feb 2019 00:25:39 +0000 (00:25 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Feb 2019 00:25:39 +0000 (00:25 +0000)
commit5256b0dd6ec0c5fcd98fb8b494084c1cc9a52da8
tree0b7f248aca7388225e5d71b337a99568ac7771e5
parentb74edfe62d5451f38adacfb63e7232332147d19e
Add noexcept to filesystem::path query functions

In the standard these member functions are specified in terms of the
potentially-throwing path decompositions functions, but we implement
them without constructing any new paths or doing anything else that can
throw.

PR libstdc++/71044
* include/bits/fs_path.h (path::has_root_name)
(path::has_root_directory, path::has_root_path)
(path::has_relative_path, path::has_parent_path)
(path::has_filename, path::has_stem, path::has_extension)
(path::is_absolute, path::is_relative, path::_M_find_extension): Add
noexcept.
* src/c++17/fs_path.cc (path::has_root_name)
(path::has_root_directory, path::has_root_path)
(path::has_relative_path, path::has_parent_path)
(path::has_filename, path::_M_find_extension): Add noexcept.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268713 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_path.h
libstdc++-v3/src/c++17/fs_path.cc