File tree 3 files changed +19
-2
lines changed
3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -1069,3 +1069,19 @@ QString msgRemoveRedundantOverload(const AbstractMetaFunctionCPtr &func,
1069
1069
+ " \" due to presence of an overload taking a \" " _L1
1070
1070
+ type + " \" parameter." _L1;
1071
1071
}
1072
+
1073
+ QString msgCommandLineArguments (const QStringList &argv)
1074
+ {
1075
+ QString result = " Command line:\n " _L1;
1076
+ for (const QString &arg : argv) {
1077
+ result.append (u' ' );
1078
+ const bool quote = arg.contains (u' ' );
1079
+ if (quote)
1080
+ result.append (u' "' );
1081
+ result.append (arg);
1082
+ if (quote)
1083
+ result.append (u' "' );
1084
+ }
1085
+ result.append (u' \n ' );
1086
+ return result;
1087
+ }
Original file line number Diff line number Diff line change @@ -281,4 +281,6 @@ QString msgCannotCall(const AbstractMetaFunctionCPtr &func,
281
281
QString msgRemoveRedundantOverload (const AbstractMetaFunctionCPtr &func,
282
282
const QString &type);
283
283
284
+ QString msgCommandLineArguments (const QStringList &argv);
285
+
284
286
#endif // MESSAGES_H
Original file line number Diff line number Diff line change @@ -252,8 +252,7 @@ int shibokenMain(const QStringList &argV)
252
252
QHashSeed::setDeterministicGlobalSeed ();
253
253
254
254
ReportHandler::install ();
255
- if (ReportHandler::isDebug (ReportHandler::SparseDebug))
256
- qCInfo (lcShiboken ()).noquote ().nospace () << appName << ' ' << argV.join (u' ' );
255
+ ReportHandler::addGeneralMessage (msgCommandLineArguments (argV));
257
256
258
257
Options options;
259
258
options.setOptions (argV);
You can’t perform that action at this time.
0 commit comments