summaryrefslogtreecommitdiff
path: root/src/plugins/clangrefactoring
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-10-25 16:07:21 +0200
committerEike Ziller <eike.ziller@qt.io>2017-10-25 16:07:21 +0200
commit7f626b1182cae5407fa5495b264aa3d9170aa09d (patch)
tree9a87c924c34adf333a2bd33200a31afb29af511a /src/plugins/clangrefactoring
parent81f5c1c8ec19bb58fc4cfb607e2c2f8ebf5cc6d8 (diff)
parentdd6092371374212b407ff248ba1fa5ba8fde795d (diff)
downloadqt-creator-7f626b1182cae5407fa5495b264aa3d9170aa09d.tar.gz
Merge remote-tracking branch 'origin/4.5'
Change-Id: Iceaa4ca40b5318744bde8a76c6d3ccca08df71bb
Diffstat (limited to 'src/plugins/clangrefactoring')
-rw-r--r--src/plugins/clangrefactoring/clangqueryprojectsfindfilter.h2
-rw-r--r--src/plugins/clangrefactoring/clangrefactoring.qbs80
2 files changed, 82 insertions, 0 deletions
diff --git a/src/plugins/clangrefactoring/clangqueryprojectsfindfilter.h b/src/plugins/clangrefactoring/clangqueryprojectsfindfilter.h
index a92c994f0d..c8558e5286 100644
--- a/src/plugins/clangrefactoring/clangqueryprojectsfindfilter.h
+++ b/src/plugins/clangrefactoring/clangqueryprojectsfindfilter.h
@@ -50,6 +50,8 @@ class SearchInterface;
class ClangQueryProjectsFindFilter : public Core::IFindFilter
{
+ Q_OBJECT
+
public:
ClangQueryProjectsFindFilter(ClangBackEnd::RefactoringServerInterface &server,
SearchInterface &searchInterface,
diff --git a/src/plugins/clangrefactoring/clangrefactoring.qbs b/src/plugins/clangrefactoring/clangrefactoring.qbs
new file mode 100644
index 0000000000..15c2ada59e
--- /dev/null
+++ b/src/plugins/clangrefactoring/clangrefactoring.qbs
@@ -0,0 +1,80 @@
+import qbs
+import qbs.FileInfo
+
+QtcPlugin {
+ name: "ClangRefactoring"
+
+ Depends { name: "libclang"; required: false }
+ condition: libclang.present && libclang.toolingEnabled
+
+ Depends { name: "ClangSupport" }
+ Depends { name: "Utils" }
+
+ Depends { name: "ClangPchManager" }
+ Depends { name: "Core" }
+ Depends { name: "CppTools" }
+ Depends { name: "ProjectExplorer" }
+ Depends { name: "TextEditor" }
+
+ cpp.defines: {
+ var defines = base;
+ defines.push("CLANGPCHMANAGER_LIB");
+
+ // The following defines are used to determine the clang include path for intrinsics.
+ defines.push('CLANG_VERSION="' + libclang.llvmVersion + '"');
+ var resourceDir = FileInfo.joinPaths(libclang.llvmLibDir, "clang", libclang.llvmVersion,
+ "include");
+ defines.push('CLANG_RESOURCE_DIR="' + resourceDir + '"');
+ return defines;
+ }
+
+ cpp.includePaths: ["."]
+
+ files: [
+ "baseclangquerytexteditorwidget.cpp",
+ "baseclangquerytexteditorwidget.h",
+ "clangqueryexamplehighlighter.cpp",
+ "clangqueryexamplehighlighter.h",
+ "clangqueryexamplehighlightmarker.h",
+ "clangqueryexampletexteditorwidget.cpp",
+ "clangqueryexampletexteditorwidget.h",
+ "clangqueryhighlighter.cpp",
+ "clangqueryhighlighter.h",
+ "clangqueryhighlightmarker.h",
+ "clangqueryhoverhandler.cpp",
+ "clangqueryhoverhandler.h",
+ "clangqueryprojectsfindfilter.cpp",
+ "clangqueryprojectsfindfilter.h",
+ "clangqueryprojectsfindfilter.ui",
+ "clangqueryprojectsfindfilterwidget.cpp",
+ "clangqueryprojectsfindfilterwidget.h",
+ "clangquerytexteditorwidget.cpp",
+ "clangquerytexteditorwidget.h",
+ "clangrefactoringplugin.cpp",
+ "clangrefactoringplugin.h",
+ "projectpartutilities.cpp",
+ "projectpartutilities.h",
+ "qtcreatorclangqueryfindfilter.cpp",
+ "qtcreatorclangqueryfindfilter.h",
+ "qtcreatorsearch.cpp",
+ "qtcreatorsearch.h",
+ "qtcreatorsearchhandle.cpp",
+ "qtcreatorsearchhandle.h",
+ "querysqlitestatementfactory.h",
+ "refactoringclient.cpp",
+ "refactoringclient.h",
+ "refactoringconnectionclient.cpp",
+ "refactoringconnectionclient.h",
+ "refactoringengine.cpp",
+ "refactoringengine.h",
+ "refactoringprojectupdater.cpp",
+ "refactoringprojectupdater.h",
+ "searchhandle.cpp",
+ "searchhandle.h",
+ "searchinterface.cpp",
+ "searchinterface.h",
+ "sourcelocations.h",
+ "symbolquery.cpp",
+ "symbolquery.h",
+ ]
+}