1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include "sal/config.h"
12 #include "rtl/ustring.hxx"
14 OUString
f(sal_Unicode c
, int n
)
17 // expected-note@+1 {{literal 'rtl::OUString' variable defined here [loplugin:elidestringvar]}}
19 // expected-note@+1 {{literal 'rtl::OUString' variable defined here [loplugin:elidestringvar]}}
21 static constexpr OUStringLiteral
s4lit(u
"a");
22 // expected-note@+1 {{literal 'rtl::OUString' variable defined here [loplugin:elidestringvar]}}
29 // expected-error@+1 {{replace single use of literal 'rtl::OUString' variable with a literal [loplugin:elidestringvar]}}
32 // expected-error@+1 {{replace single use of literal 'rtl::OUString' variable with a literal [loplugin:elidestringvar]}}
35 // expected-error@+1 {{replace single use of literal 'rtl::OUString' variable with a literal [loplugin:elidestringvar]}}
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */