aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangrefactoring
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2018-08-07 15:21:20 +0200
committerIvan Donchevskii <ivan.donchevskii@qt.io>2018-08-08 14:07:13 +0000
commit62e776aa8ed54bf448e355a55cf4f0e6c4579877 (patch)
tree69cda5d86bbc9ef9a68b0284684a55adea6519b7 /src/plugins/clangrefactoring
parent44b931f7f5bfc1ccdfb456300f13297d88397298 (diff)
Clang: Provide include directory only for libclang
Only libclang has issues with the include directory search therefore undefining include folders makes sense only for libclang options builder. Change-Id: Ie3f62f5f3a89503e6e0ab59e18889e92425c3abc Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Diffstat (limited to 'src/plugins/clangrefactoring')
-rw-r--r--src/plugins/clangrefactoring/clangqueryprojectsfindfilter.cpp2
-rw-r--r--src/plugins/clangrefactoring/refactoringengine.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/clangrefactoring/clangqueryprojectsfindfilter.cpp b/src/plugins/clangrefactoring/clangqueryprojectsfindfilter.cpp
index 654253ae9ad..336a681ab2a 100644
--- a/src/plugins/clangrefactoring/clangqueryprojectsfindfilter.cpp
+++ b/src/plugins/clangrefactoring/clangqueryprojectsfindfilter.cpp
@@ -153,7 +153,7 @@ Utils::SmallStringVector ClangQueryProjectsFindFilter::compilerArguments(CppTool
{
using CppTools::CompilerOptionsBuilder;
- CompilerOptionsBuilder builder(*projectPart, CLANG_VERSION, CLANG_RESOURCE_DIR);
+ CompilerOptionsBuilder builder(*projectPart);
return Utils::SmallStringVector(builder.build(fileKind,
CompilerOptionsBuilder::PchUsage::None));
diff --git a/src/plugins/clangrefactoring/refactoringengine.cpp b/src/plugins/clangrefactoring/refactoringengine.cpp
index 952ed9bf191..b5127e2b88f 100644
--- a/src/plugins/clangrefactoring/refactoringengine.cpp
+++ b/src/plugins/clangrefactoring/refactoringengine.cpp
@@ -74,7 +74,7 @@ void RefactoringEngine::startLocalRenaming(const CppTools::CursorInEditor &data,
QString filePath = data.filePath().toString();
QTextCursor textCursor = data.cursor();
- CompilerOptionsBuilder optionsBuilder{*projectPart, CLANG_VERSION, CLANG_RESOURCE_DIR};
+ CompilerOptionsBuilder optionsBuilder{*projectPart};
Utils::SmallStringVector commandLine{optionsBuilder.build(
fileKindInProjectPart(projectPart, filePath),
CppTools::getPchUsage())};