src: fixed clang warnings, fixed undefined symbols logs, fixed code convention violations
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
#include "utility/FileSystem.h"
|
||||
|
||||
#include "boost/filesystem.hpp"
|
||||
|
||||
#include "utility/logging/logging.h"
|
||||
|
||||
std::vector<std::string> FileSystem::getSourceFilesFromDirectory(
|
||||
const std::string& path, const std::vector<std::string>& extensions
|
||||
)
|
||||
{
|
||||
){
|
||||
std::vector<std::string> files;
|
||||
|
||||
if (boost::filesystem::is_directory(path))
|
||||
{
|
||||
boost::filesystem::recursive_directory_iterator it(path);
|
||||
boost::filesystem::recursive_directory_iterator endit;
|
||||
while(it != endit)
|
||||
while (it != endit)
|
||||
{
|
||||
if (boost::filesystem::is_regular_file(*it) && isValidExtension(it->path().string(), extensions))
|
||||
{
|
||||
@@ -36,9 +36,9 @@ bool FileSystem::isValidExtension(const std::string& filepath, const std::vector
|
||||
{
|
||||
boost::filesystem::path path(filepath);
|
||||
|
||||
for(std::string extension : extensions)
|
||||
for (std::string extension : extensions)
|
||||
{
|
||||
if(path.extension() == extension)
|
||||
if (path.extension() == extension)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user