src: file extension for header and source in config

header and source extensions are now in the projectsettings
This commit is contained in:
Andreas Stallinger
2015-03-18 15:48:59 +01:00
parent e3f1f004a0
commit 69ea6adddd
5 changed files with 25 additions and 8 deletions
+2 -7
View File
@@ -86,13 +86,8 @@ void Project::parseCode()
// TODO: move this creation to another place (after projectsettings have been loaded)
if (!m_fileManager)
{
std::vector<std::string> sourceExtensions;
sourceExtensions.push_back(".cpp");
sourceExtensions.push_back(".cc");
std::vector<std::string> includeExtensions;
includeExtensions.push_back(".h");
includeExtensions.push_back(".hpp");
std::vector<std::string> sourceExtensions = ProjectSettings::getInstance()->getSourceExtensions();
std::vector<std::string> includeExtensions = ProjectSettings::getInstance()->getHeaderExtensions();
m_fileManager = std::make_shared<FileManager>(sourcePaths, includePaths, sourceExtensions, includeExtensions);
}