summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/externvar.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-11 13:41:01 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-11 13:42:41 +0100
commita9d06182f8bc6ad79f72ec3d604d28d232c62ccc (patch)
treee8d659349c5a791ebb55a6d29e413b1e3a3179bb /compilerplugins/clang/externvar.cxx
parent698bdcdb0c87f5e0453c522b64d20fba851ba47a (diff)
loplugin:externvar (clang-cl)
Change-Id: I81877e46cf95dcc7de16b797fca33658036bf9e8
Diffstat (limited to 'compilerplugins/clang/externvar.cxx')
-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(