From f00d5385440e065ef4cfc50fb281cfcee46385f8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 28 Sep 2017 18:30:41 +0200 Subject: [PATCH] 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 Tested-by: Stephan Bergmann --- compilerplugins/clang/unreffun.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()))