compilerplugins/clang/externandnotdefined.cxx |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit 3c535b25110cb2b9cde41dd469d9ece2b52b1444
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Feb 17 09:36:32 2022 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Thu Feb 17 22:35:57 2022 +0100

    Don't exclude vcl/source/app/salplug.cxx from loplugin:externandnotdefined
    
    Whatever exactly the original reason to do so, it appears to no longer be
    relevant.  (Maybe that salplug.cxx got reworked in the meantime?)
    
    Change-Id: I5187635dcb095ca505b38992b19770fe232f5124
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130115
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/compilerplugins/clang/externandnotdefined.cxx 
b/compilerplugins/clang/externandnotdefined.cxx
index 676f666ba621..5fd59ca4b58c 100644
--- a/compilerplugins/clang/externandnotdefined.cxx
+++ b/compilerplugins/clang/externandnotdefined.cxx
@@ -11,8 +11,6 @@
 
 #include <string>
 
-#include "config_clang.h"
-
 #include "plugin.hxx"
 
 // Having an extern prototype for a method in a module and not actually 
declaring that method is dodgy.
@@ -61,11 +59,6 @@ bool ExternAndNotDefined::VisitFunctionDecl(const 
FunctionDecl * functionDecl) {
     {
         return true;
     }
-    StringRef fileName { getFilenameOfLocation(functionDecl->getLocation()) };
-    // 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",

Reply via email to