logic: Changed include files being analyzed solely by path

* removed header extensions
* added source extensions to source path setup screen
* added caching to hasFilePath check
* don't show header list in CDB setup
* removed TestSettings.xml
This commit is contained in:
Eberhard Graether
2016-05-19 21:47:09 +02:00
parent 5295267513
commit 86d1ff2905
26 changed files with 236 additions and 393 deletions
+21
View File
@@ -174,6 +174,27 @@ FilePath FilePath::concat(const FilePath& other) const
return boost::filesystem::path(m_path) / other.m_path;
}
bool FilePath::contains(const FilePath& other) const
{
if (!isDirectory())
{
return false;
}
boost::filesystem::path dir = m_path;
boost::filesystem::path dir2 = other.m_path;
auto dir_len = std::distance(dir.begin(), dir.end());
auto dir2_len = std::distance(dir2.begin(), dir2.end());
if (dir_len > dir2_len)
{
return false;
}
return std::equal(dir.begin(), dir.end(), dir2.begin());
}
std::string FilePath::str() const
{
return m_path.generic_string();