Kaydet (Commit) e49a3970 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Check that loplugin:unreffun warns for explicitly "extern" functions

Change-Id: Ic43f007af4480b358916c2b27796a9b248ea9eb7
Reviewed-on: https://gerrit.libreoffice.org/60496
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 6b12e4a9
...@@ -22,4 +22,18 @@ void h() // expected-error {{Unreferenced externally visible function definition ...@@ -22,4 +22,18 @@ void h() // expected-error {{Unreferenced externally visible function definition
{ {
} }
void i() {}
extern void j(); // expected-error {{Unreferenced function declaration [loplugin:unreffun]}}
extern void
k() // expected-error {{Unreferenced externally visible function definition [loplugin:unreffun]}}
{
}
extern void l(); // expected-note {{first declaration is here [loplugin:unreffun]}}
void l() // expected-error {{Unreferenced externally visible function definition [loplugin:unreffun]}}
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
void f(); void f();
extern void i();
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment