clang/win plugin: Do not warn on dllexport inline move constructors.
commit130ce4bc6a38d2b4b904499c5e14db1841835c2a
authorthakis <thakis@chromium.org>
Mon, 11 May 2015 18:47:28 +0000 (11 11:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 May 2015 18:48:46 +0000 (11 18:48 +0000)
treeadc620899ff1d92669bbc01214d0c317ed849583
parent5c796832c90f68b332b0586f9e21959d1a4915f1
clang/win plugin: Do not warn on dllexport inline move constructors.

This is like https://codereview.chromium.org/1129093002 , but for move
constructors instead of copy constructors.

Also add a test for https://codereview.chromium.org/1129093002 (and this).
Since testing dllexport on non-win requires a -target and can't depend on
system headers (windows system headers aren't installed where we run tests),
convert the test the new test was based on to be standalone (we should do
this for all tests, http://crbug.com/486559)

BUG=483986,486559

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

Cr-Commit-Position: refs/heads/master@{#329208}
tools/clang/plugins/FindBadConstructsConsumer.cpp
tools/clang/plugins/tests/missing_ctor.cpp
tools/clang/plugins/tests/missing_ctor.h
tools/clang/plugins/tests/missing_ctor.txt
tools/clang/plugins/tests/missing_ctor_dllexport.cpp [copied from tools/clang/plugins/tests/missing_ctor.cpp with 75% similarity]
tools/clang/plugins/tests/missing_ctor_dllexport.flags [new file with mode: 0644]
tools/clang/plugins/tests/missing_ctor_dllexport.h [new file with mode: 0644]
tools/clang/plugins/tests/missing_ctor_dllexport.txt [new file with mode: 0644]
tools/clang/plugins/tests/test.sh