logic: Don't store CxxCompilerHeaderPath in Global Include Paths
* show path in Global Include Paths preferences * add to CXX indexer commands * add migration to remove from app settings
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
#include "utilityCxx.h"
|
||||
|
||||
#include "ResourcePaths.h"
|
||||
|
||||
namespace utility
|
||||
{
|
||||
std::vector<FilePath> replaceOrAddCxxCompilerHeaderPath(const std::vector<FilePath>& headerSearchPaths)
|
||||
{
|
||||
std::vector<FilePath> newHeaderSearchPaths;
|
||||
const FilePath cxxCompilerHeaderPath = ResourcePaths::getCxxCompilerHeaderPath();
|
||||
|
||||
for (const FilePath& path : headerSearchPaths)
|
||||
{
|
||||
if (path != cxxCompilerHeaderPath)
|
||||
{
|
||||
newHeaderSearchPaths.push_back(path);
|
||||
}
|
||||
}
|
||||
|
||||
newHeaderSearchPaths.push_back(cxxCompilerHeaderPath);
|
||||
return newHeaderSearchPaths;
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
#ifndef UTILITY_CXX_H
|
||||
#define UTILITY_CXX_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <utility/file/FilePath.h>
|
||||
|
||||
namespace utility
|
||||
{
|
||||
std::vector<FilePath> replaceOrAddCxxCompilerHeaderPath(const std::vector<FilePath>& headerSearchPaths);
|
||||
}
|
||||
|
||||
#endif // UTILITY_CXX_H
|
||||
Reference in New Issue
Block a user