C++17 Filesystem Support Lands In LLVM's Libc++ Library
Written by Michael Larabel in LLVM on 29 July 2018 at 11:48 AM EDT. 7 Comments
LLVM --
This week support for the official C++17 "filesystem" feature landed within LLVM's libc++ standard library.

C++17 adds file-system abstractions based upon the Boost library's filesystem support. This functionality makes it easier for C++ programs to perform file/directory operations across platforms in a standard manner. The file-system technical specification continues to be available here for all of the details.

While there has been filesystem support within GCC's libstdc++ library, this week the support just landed into LLVM's alternative libc++ library. (Though previously there was "experimental/filesystem" support via libc++experimental.) Eric Fiselier confirmed the landing this week but noted that it's not yet considered ABI stable. Similar to libstdc++, the filesystem support is in its own separate library as libc++fs.

The support is available in libc++ as of this commit. This will be part of this fall's LLVM 7.0 release.

The libc++ C++ standard library is most commonly used on macOS and FreeBSD platforms but less commonly can be used on Linux systems too. Those that haven't checked out libc++ in a while can do so via libcxx.llvm.org.
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Related LLVM News
Popular News This Week