logic: Give clang higher precedence in global header search path detection

This commit is contained in:
Eberhard Graether
2017-11-08 22:33:25 +01:00
parent fe4a921836
commit 593a5f909c
+2 -1
View File
@@ -116,6 +116,7 @@ std::shared_ptr<CombinedPathDetector> utility::getCxxVsHeaderPathDetector()
std::shared_ptr<CombinedPathDetector> utility::getCxxHeaderPathDetector()
{
std::shared_ptr<CombinedPathDetector> combinedDetector = getCxxVsHeaderPathDetector();
combinedDetector->addDetector(std::make_shared<CxxHeaderPathDetector>("clang"));
combinedDetector->addDetector(std::make_shared<CxxHeaderPathDetector>("gcc"));
return combinedDetector;
}
@@ -123,7 +124,7 @@ std::shared_ptr<CombinedPathDetector> utility::getCxxHeaderPathDetector()
std::shared_ptr<CombinedPathDetector> utility::getCxxFrameworkPathDetector()
{
std::shared_ptr<CombinedPathDetector> combinedDetector = std::make_shared<CombinedPathDetector>();
combinedDetector->addDetector(std::make_shared<CxxFrameworkPathDetector>("gcc"));
combinedDetector->addDetector(std::make_shared<CxxFrameworkPathDetector>("clang"));
combinedDetector->addDetector(std::make_shared<CxxFrameworkPathDetector>("gcc"));
return combinedDetector;
}