summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/externandnotdefined.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/externandnotdefined.cxx')
-rw-r--r--compilerplugins/clang/externandnotdefined.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/compilerplugins/clang/externandnotdefined.cxx b/compilerplugins/clang/externandnotdefined.cxx
index 5d65579a6af1..a45c5c9f9a9d 100644
--- a/compilerplugins/clang/externandnotdefined.cxx
+++ b/compilerplugins/clang/externandnotdefined.cxx
@@ -64,6 +64,10 @@ bool ExternAndNotDefined::VisitFunctionDecl(const FunctionDecl * functionDecl) {
if (loplugin::hasPathnamePrefix(fileName, SRCDIR "/filter/qa/")) {
return true;
}
+ // keeps the code structure of salplug.cxx easier to follow
+ if (fileName == SRCDIR "/vcl/source/app/salplug.cxx") {
+ return true;
+ }
report(
DiagnosticsEngine::Warning,
"extern prototype in main file without definition",