summaryrefslogtreecommitdiff
path: root/solenv/clang-format
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-09-12 15:38:05 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-09-24 12:53:39 +0200
commita7d40f575463467698df76f041e558cb3bea7c85 (patch)
tree49f60f551e72c1a0a802ec40a39bd0543d654f33 /solenv/clang-format
parent417d993b8b8a86c019758ee0850e4b42967e2afa (diff)
compiler check for rtl::OUStringConcat instances
Something like auto str = "string" + OUString::number( 10 ); will not be OUString but actually rtl::OUStringConcat (which gets implicitly converted to OUString, but not with auto). Since those refer to temporaries from the expression, they should not outlive the expression. Change-Id: Ib4cde4b38befb3d49927d0cf01c52ebb2d36df89 Reviewed-on: https://gerrit.libreoffice.org/78830 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'solenv/clang-format')
-rw-r--r--solenv/clang-format/blacklist4
1 files changed, 3 insertions, 1 deletions
diff --git a/solenv/clang-format/blacklist b/solenv/clang-format/blacklist
index 14dcd2ae8fae..9d0ac1972cd5 100644
--- a/solenv/clang-format/blacklist
+++ b/solenv/clang-format/blacklist
@@ -1778,7 +1778,8 @@ compilerplugins/clang/store/tutorial/tutorial3.cxx
compilerplugins/clang/store/tutorial/tutorial3.hxx
compilerplugins/clang/store/unusedcode.cxx
compilerplugins/clang/store/valueof.cxx
-compilerplugins/clang/stringconcat.cxx
+compilerplugins/clang/stringconcatauto.cxx
+compilerplugins/clang/stringconcatliterals.cxx
compilerplugins/clang/stringconstant.cxx
compilerplugins/clang/stringstatic.cxx
compilerplugins/clang/subtlezeroinit.cxx
@@ -1815,6 +1816,7 @@ compilerplugins/clang/test/refcounting.cxx
compilerplugins/clang/test/salbool.cxx
compilerplugins/clang/test/salunicodeliteral.cxx
compilerplugins/clang/test/salunicodeliteral.hxx
+compilerplugins/clang/test/stringconcatauto.cxx
compilerplugins/clang/test/stringconstant.cxx
compilerplugins/clang/test/unnecessarycatchthrow.cxx
compilerplugins/clang/test/unnecessaryoverride-dtor.cxx