summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/externvar.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/externvar.cxx b/compilerplugins/clang/externvar.cxx
index b9b5648258f4..fc4bd7af7942 100644
--- a/compilerplugins/clang/externvar.cxx
+++ b/compilerplugins/clang/externvar.cxx
@@ -73,6 +73,9 @@ public:
// not needed and will not be emitted"
return true;
}
+ if (loplugin::DeclCheck(def).Var("_pRawDllMain").GlobalNamespace()) {
+ return true;
+ }
SourceLocation argLoc;
if (compat::isMacroArgExpansion(compiler, def->getLocation(), &argLoc)
&& (Lexer::getImmediateMacroName(