summaryrefslogtreecommitdiff
path: root/libre/qtcreator/qtcreator-preload-plugins.patch
blob: d4ec515fe055542d9504330bc8e07275b8c3b13e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/plugins/clangtools/clangtidyclazyrunner.cpp b/src/plugins/clangtools/clangtidyclazyrunner.cpp
index 166d1c94e0..de0b9cc67b 100644
--- a/src/plugins/clangtools/clangtidyclazyrunner.cpp
+++ b/src/plugins/clangtools/clangtidyclazyrunner.cpp
@@ -67,7 +67,7 @@ static QStringList clazyPluginArguments(const ClangDiagnosticConfig diagnosticCo
     QStringList arguments;
 
     if (diagnosticConfig.isClazyEnabled()) {
-        arguments << XclangArgs({"-add-plugin", "clazy"});
+        arguments << XclangArgs({"-load", "ClazyPlugin.so", "-add-plugin", "clazy"});
         if (!diagnosticConfig.clazyChecks().isEmpty())
             arguments << XclangArgs({"-plugin-arg-clazy", diagnosticConfig.clazyChecks()});
     }