plugin: Don't warn about inline virtual methods from system macros; whitelist two...
commit282351bf126ca09cb5c3b9bf4663a52dc7f355e3
authorthakis <thakis@chromium.org>
Thu, 7 May 2015 23:43:17 +0000 (7 16:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 May 2015 23:43:56 +0000 (7 23:43 +0000)
treeeb3d73d5542c64ba1044eccee558f57c88dcc16d
parent761459b405fb12f703ce6f9636406815368ad3b4
plugin: Don't warn about inline virtual methods from system macros; whitelist two non-system macros.

Even though CR_BEGIN_MSG_MAP_EX and BEGIN_SAFE_MSG_MAP_EX are from chromium
code, they are interface-compatible with the system macro BEGIN_MSG_MAP_EX
and so we can't fix the style plugin warnings about them.  So whitelist these
two macros.

BUG=484721

Review URL: https://codereview.chromium.org/1126413004

Cr-Commit-Position: refs/heads/master@{#328880}
tools/clang/plugins/FindBadConstructsConsumer.cpp
tools/clang/plugins/tests/system/windows.h
tools/clang/plugins/tests/virtual_bodies.h
tools/clang/plugins/tests/virtual_bodies.txt