1818
1919#include " boost/algorithm/string/classification.hpp"
2020#include " boost/algorithm/string/split.hpp"
21- #include " boost/filesystem.hpp"
2221
2322#include " phasar/Config/Configuration.h"
2423#include " phasar/Config/Version.h"
@@ -38,8 +37,7 @@ PhasarConfig::PhasarConfig() {
3837std::string PhasarConfig::readConfigFile (const std::string &Path) {
3938 // We use a local file reading function to make phasar_config independent of
4039 // other phasar libraries.
41- if (boost::filesystem::exists (Path) &&
42- !boost::filesystem::is_directory (Path)) {
40+ if (std::filesystem::exists (Path) && !std::filesystem::is_directory (Path)) {
4341 std::ifstream Ifs (Path, std::ios::binary);
4442 if (Ifs.is_open ()) {
4543 Ifs.seekg (0 , std::ifstream::end);
@@ -58,7 +56,7 @@ void PhasarConfig::loadGlibcSpecialFunctionNames() {
5856 const std::string GLIBCFunctionListFilePath =
5957 ConfigurationDirectory () + GLIBCFunctionListFileName;
6058
61- if (boost ::filesystem::exists (GLIBCFunctionListFilePath)) {
59+ if (std ::filesystem::exists (GLIBCFunctionListFilePath)) {
6260 // Load glibc function names specified in the config file
6361 std::vector<std::string> GlibcFunctions;
6462 std::string Glibc = readConfigFile (GLIBCFunctionListFilePath);
@@ -76,7 +74,7 @@ void PhasarConfig::loadGlibcSpecialFunctionNames() {
7674void PhasarConfig::loadLLVMSpecialFunctionNames () {
7775 const std::string LLVMFunctionListFilePath =
7876 ConfigurationDirectory () + LLVMIntrinsicFunctionListFileName;
79- if (boost ::filesystem::exists (LLVMFunctionListFilePath)) {
77+ if (std ::filesystem::exists (LLVMFunctionListFilePath)) {
8078 // Load LLVM function names specified in the config file
8179 std::string LLVMIntrinsics = readConfigFile (LLVMFunctionListFilePath);
8280
@@ -94,7 +92,7 @@ void PhasarConfig::loadLLVMSpecialFunctionNames() {
9492}
9593
9694const std::string PhasarConfig::PhasarDir = std::string([]() {
97- std::string CurrPath = boost ::filesystem::current_path ().string ();
95+ std::string CurrPath = std ::filesystem::current_path ().string ();
9896 size_t I = CurrPath.rfind (" build" , CurrPath.length ());
9997 return CurrPath.substr (0 , I);
10098}());
0 commit comments