From a2656563f1a7639a99276fda90b6c8f675d20fc5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Nov 2017 09:46:06 +0100 Subject: loplugin:unnecessaryparen: Warn about parentheses around literals ...that are not composed of multiple tokens, like ("foo" "bar"). Also don't yet warn about Boolean literals, which are sometimes wrapped in parentheses to silence unreachable-code warnings. To avoid multiple warnings about code like f((0)) switch to generally using a set of ParenExpr to keep track of which occurrences have already been handled. Change-Id: I036a25a92836ec6ab6c56ea848f71bc6d63822bc Reviewed-on: https://gerrit.libreoffice.org/45317 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- unodevtools/source/skeletonmaker/skeletonmaker.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unodevtools') diff --git a/unodevtools/source/skeletonmaker/skeletonmaker.cxx b/unodevtools/source/skeletonmaker/skeletonmaker.cxx index 091b9357d80f..5ddaf8ee1d4f 100644 --- a/unodevtools/source/skeletonmaker/skeletonmaker.cxx +++ b/unodevtools/source/skeletonmaker/skeletonmaker.cxx @@ -254,7 +254,7 @@ SAL_IMPLEMENT_MAIN() if ( types.empty() && options.componenttype != 3) { std::cerr - << ("\nError: no type is specified, use the -T option at least once\n"); + << "\nError: no type is specified, use the -T option at least once\n"; printUsageAndExit(programname, version); exit(EXIT_FAILURE); } -- cgit