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/.
9 #include "config_clang.h"
11 // CLANG_VERSION = older versions of clang need something different in getParentFunctionDecl
12 // WIN32 = TODO, see corresponding TODO in compilerplugins/clang/unusedfields.cxx
13 #if CLANG_VERSION < 110000 || defined _WIN32
14 // expected-no-diagnostics
17 #include <string_view>
21 // expected-error@+1 {{write [loplugin:unusedvarsglobal]}}
22 extern const std::u16string_view literal1
;
24 const std::u16string_view
something::literal1(u
"xxx");
27 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */