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 "config_clang.h"
12 #include "unreffun.hxx"
14 template <typename
> struct S
21 void g(); // expected-error {{Unreferenced function declaration [loplugin:unreffun]}}
23 void h() // expected-error {{Unreferenced externally visible function definition [loplugin:unreffun]}}
29 extern void j(); // expected-error {{Unreferenced function declaration [loplugin:unreffun]}}
32 k() // expected-error {{Unreferenced externally visible function definition [loplugin:unreffun]}}
36 extern void l(); // expected-note {{first declaration is here [loplugin:unreffun]}}
37 void l() // expected-error {{Unreferenced externally visible function definition [loplugin:unreffun]}}
43 // The below produced a false "Unreferenced externally invisible function definition" for Local::f
44 // prior to <https://github.com/llvm/llvm-project/commit/d812488d3c54c07f24d4bef79e329f17e7f19c3b>
45 // "Call MarkVirtualMembersReferenced on an actual class definition" in Clang 17:
46 #if CLANG_VERSION >= 170000
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */