[Libreoffice-commits] core.git: compilerplugins/clang

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 4 12:25:24 UTC 2020


 compilerplugins/clang/test/makeshared.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 30ededbd00c3b69bc7bfe72d1431e17df82542a6
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Aug 4 11:50:37 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Aug 4 14:24:47 2020 +0200

    Adapt compilerplugins/clang/test/makeshared.cxx to MSVC standard library
    
    > error: 'error' diagnostics seen but not expected:
    >   File compilerplugins/clang/test/makeshared.cxx Line 47: rather use make_shared than constructing from 'unique_ptr<int>' [loplugin:makeshared]
    >   File compilerplugins/clang/test/makeshared.cxx Line 49: rather use make_shared than constructing from 'unique_ptr<int>' [loplugin:makeshared]
    >   File compilerplugins/clang/test/makeshared.cxx Line 53: rather use make_shared than constructing from 'unique_ptr<int>' [loplugin:makeshared]
    
    Change-Id: I5d2d1b129c9d0fee496eceb4e2cf14f5853ba00b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100074
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/compilerplugins/clang/test/makeshared.cxx b/compilerplugins/clang/test/makeshared.cxx
index fe73d7e0e47c..d3ac22389c8f 100644
--- a/compilerplugins/clang/test/makeshared.cxx
+++ b/compilerplugins/clang/test/makeshared.cxx
@@ -43,13 +43,13 @@ void test1()
 
 void test2()
 {
-    // expected-error-re at +1 {{rather use make_shared than constructing from {{.+}} (aka 'unique_ptr<int>') [loplugin:makeshared]}}
+    // expected-error-re at +1 {{rather use make_shared than constructing from {{.*}}'unique_ptr<int>'{{.*}} [loplugin:makeshared]}}
     std::shared_ptr<int> x = std::make_unique<int>(1);
-    // expected-error-re at +1 {{rather use make_shared than constructing from {{.+}} (aka 'unique_ptr<int>') [loplugin:makeshared]}}
+    // expected-error-re at +1 {{rather use make_shared than constructing from {{.*}}'unique_ptr<int>'{{.*}} [loplugin:makeshared]}}
     x = std::make_unique<int>(1);
     (void)x;
 
-    // expected-error-re at +1 {{rather use make_shared than constructing from {{.+}} (aka 'unique_ptr<int>') [loplugin:makeshared]}}
+    // expected-error-re at +1 {{rather use make_shared than constructing from {{.*}}'unique_ptr<int>'{{.*}} [loplugin:makeshared]}}
     std::shared_ptr<int> y(std::make_unique<int>(1));
     (void)y;
 


More information about the Libreoffice-commits mailing list