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@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
419d664fb7
commit
f00d538544
@ -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()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user