[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Fri Sep 29 11:33:00 UTC 2017
compilerplugins/clang/unreffun.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f00d5385440e065ef4cfc50fb281cfcee46385f8
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Sep 28 18:30:41 2017 +0200
Adapt loplugin:unreffun to clang-cl (uses of DllMain and wmain)
Change-Id: I6ef1c55ce0fb8fa350559612780a1091d8627d3e
Reviewed-on: https://gerrit.libreoffice.org/42915
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
Tested-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/compilerplugins/clang/unreffun.cxx b/compilerplugins/clang/unreffun.cxx
index 74eeec2e66ef..dae7efcab9c0 100644
--- a/compilerplugins/clang/unreffun.cxx
+++ b/compilerplugins/clang/unreffun.cxx
@@ -113,7 +113,7 @@ bool UnrefFun::VisitFunctionDecl(FunctionDecl const * decl) {
? decl->isThisDeclarationADefinition() : decl->isFirstDecl())
|| !compiler.getSourceManager().isInMainFile(canon->getLocation())
|| isInUnoIncludeFile(canon)
- || canon->isMain()
+ || canon->isMain() || canon->isMSVCRTEntryPoint()
|| (decl->getTemplatedKind() == FunctionDecl::TK_FunctionTemplate
&& (decl->getDescribedFunctionTemplate()->spec_begin()
!= decl->getDescribedFunctionTemplate()->spec_end()))
More information about the Libreoffice-commits
mailing list