diff options
author | hjk <[email protected]> | 2017-02-24 16:09:39 +0100 |
---|---|---|
committer | Tobias Hunger <[email protected]> | 2017-02-24 16:49:18 +0000 |
commit | 3e225628ee6967d224fcdcc30e42015c9be74862 (patch) | |
tree | 09a681abe98f5fa683196af31923e5c17182e256 /src/plugins/clangcodemodel/clangcodemodelplugin.cpp | |
parent | 92d818f327b43c50411f4ffffca30700d82024a0 (diff) |
Revert "Clang: Add possibility to "pgo-train" libclang with a batch file"
This reverts commit 07f4ae622770cc99782edc8bf14d2a385bf17778,
which broke compilation
clangbatchfileprocessor.cpp:170:27: error: ambiguous overload for
'operator==' (operand types are 'const QChar' and 'char')
and only worked in QT_TEST=1 cases.
Change-Id: I089427359958221882cb4e4369c4b88d71779acf
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/clangcodemodel/clangcodemodelplugin.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangcodemodelplugin.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp index 0aa9cbff3ff..ba1bc10376b 100644 --- a/src/plugins/clangcodemodel/clangcodemodelplugin.cpp +++ b/src/plugins/clangcodemodel/clangcodemodelplugin.cpp @@ -25,7 +25,6 @@ #include "clangcodemodelplugin.h" -#include "clangbatchfileprocessor.h" #include "clangconstants.h" #include "clangprojectsettingswidget.h" @@ -75,13 +74,8 @@ void addProjectPanelWidget() bool ClangCodeModelPlugin::initialize(const QStringList &arguments, QString *errorMessage) { - Q_UNUSED(arguments); - Q_UNUSED(errorMessage); - - connect(ProjectExplorer::ProjectExplorerPlugin::instance(), - &ProjectExplorer::ProjectExplorerPlugin::finishedInitialization, - this, - &ClangCodeModelPlugin::maybeHandleBatchFileAndExit); + Q_UNUSED(arguments) + Q_UNUSED(errorMessage) CppTools::CppModelManager::instance()->activateClangCodeModel(&m_modelManagerSupportProvider); @@ -95,16 +89,6 @@ void ClangCodeModelPlugin::extensionsInitialized() { } -// For e.g. creation of profile-guided optimization builds. -void ClangCodeModelPlugin::maybeHandleBatchFileAndExit() const -{ - const QString batchFilePath = QString::fromLocal8Bit(qgetenv("QTC_CLANG_BATCH")); - if (!batchFilePath.isEmpty() && QTC_GUARD(QFileInfo::exists(batchFilePath))) { - const bool runSucceeded = runClangBatchFile(batchFilePath); - QCoreApplication::exit(!runSucceeded); - } -} - #ifdef WITH_TESTS QList<QObject *> ClangCodeModelPlugin::createTestObjects() const { |