From e9e51e0041abbbf950ed11d6b4fea8616cbd28bb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 23 Jul 2018 11:08:35 +0200 Subject: Add more c++ file extensions --- src/main.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index ecbf9cd..6dfd256 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -212,21 +212,6 @@ void validateFilePath(const _tinydir_char_t *projectConfPath) } } -const _tinydir_char_t *sourceFileExtensions[] = { TINYDIR_STRING("c"), TINYDIR_STRING("cc"), TINYDIR_STRING("cpp"), TINYDIR_STRING("cxx") }; -bool isSourceFile(tinydir_file *file) -{ - if(!file->is_reg) - return false; - - for(const _tinydir_char_t *sourceFileExtension : sourceFileExtensions) - { - if(_tinydir_strcmp(sourceFileExtension, file->extension) == 0) - return true; - } - - return false; -} - bool isPathSubPathOf(const FileString &path, const FileString &subPathOf) { return _tinydir_strncmp(path.c_str(), subPathOf.c_str(), subPathOf.size()) == 0; -- cgit v1.2.3