data, utility: Fixes to run Opensource Projects
templateSpecializationArgsAsWritten returning null caused a crash VisitMemberExprInDeclBody for vardecl was missing subdirectories for headersearchpaths, that the user does not need to add a hugh amount of folders
This commit is contained in:
@@ -52,6 +52,8 @@ std::vector<std::string> FileSystem::getFileNamesFromDirectoryUpdatedAfter(
|
||||
return files;
|
||||
}
|
||||
|
||||
|
||||
|
||||
std::vector<FileInfo> FileSystem::getFileInfosFromPaths(
|
||||
const std::vector<FilePath>& paths, const std::vector<std::string>& fileExtensions
|
||||
){
|
||||
@@ -136,3 +138,13 @@ bool FileSystem::equivalent(const std::string& pathA, const std::string& pathB)
|
||||
|
||||
return boost::filesystem::path(pathA).compare(boost::filesystem::path(pathB)) == 0;
|
||||
}
|
||||
|
||||
std::vector<FilePath> FileSystem::getSubDirectoies(const FilePath &path) {
|
||||
std::vector<FilePath> v;
|
||||
for ( boost::filesystem::recursive_directory_iterator end, dir(path.str());
|
||||
dir != end; ++dir ) {
|
||||
if(boost::filesystem::is_directory(dir->path()))
|
||||
v.push_back(FilePath(dir->path()));
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user