compilerplugins/clang/unreffun.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f00d5385440e065ef4cfc50fb281cfcee46385f8 Author: Stephan Bergmann <sberg...@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 <sberg...@redhat.com> Tested-by: Stephan Bergmann <sberg...@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())) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits