Added a version of almostRealPath that takes a const std::string& parameter so we don't have to use c_str() everywhere

This commit is contained in:
Derek Bankieris
2016-10-21 15:06:35 -05:00
parent 75c35752d6
commit 108d3d40c5
2 changed files with 5 additions and 0 deletions

View File

@ -69,6 +69,10 @@ std::string getFileName( clang::CompilerInstance & ci , clang::SourceLocation sl
}
#include <iostream>
char * almostRealPath( const std::string& in_path ) {
return almostRealPath(in_path.c_str());
}
/*
This function returns almost absolute path of the directory of the incoming path.
It does not follow the last symbolic link.