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:
Andreas Stallinger
2015-09-16 17:08:16 +02:00
parent fb5316cb7f
commit 73b1b77ca8
14 changed files with 110 additions and 16 deletions
+12
View File
@@ -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;
}