From 71d9e8d3e403329428edbda747c7d6bbc705c95f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 8 Nov 2023 08:49:28 +0100 Subject: Adapt loplugin:stringconcatliterals to clang-cl ...whose handling of PredefinedExpr (representing `__func__`) deliberately differs in IgnoreParens and IgnoreParenImpCasts, see the comment in StringConcatLiterals::isStringLiteral Change-Id: I8b001d65369adc3d2a2c47e0cf32578a72ef4eec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159111 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- compilerplugins/clang/test/stringconcatliterals.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'compilerplugins/clang/test') diff --git a/compilerplugins/clang/test/stringconcatliterals.cxx b/compilerplugins/clang/test/stringconcatliterals.cxx index 8b390f28fbbb..0575eb252bc0 100644 --- a/compilerplugins/clang/test/stringconcatliterals.cxx +++ b/compilerplugins/clang/test/stringconcatliterals.cxx @@ -40,6 +40,7 @@ void f(std::ostream& s1) s1 << "foo" << OUString(FOO); // expected-error@-1 {{replace '<<' between string literals with juxtaposition}} s1 << "foo" << OUString(foo); + s1 << "foo" << __func__; OString s2; s2 = "foo" + OString("foo"); // expected-error@-1 {{replace '+' between string literals with juxtaposition}} -- cgit