aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-05-10 21:00:03 +0000
committerReid Kleckner <rnk@google.com>2016-05-10 21:00:03 +0000
commit9f49733c65b002716d7fc02e255360272f9d1e57 (patch)
treeacab3227ce3bec9c4547cad15f8561a6c465c18e /clang/unittests/Basic/VirtualFileSystemTest.cpp
parent220f7da488900708e314993f1a5fbb3a2563b605 (diff)
downloadllvm-9f49733c65b002716d7fc02e255360272f9d1e57.zip
llvm-9f49733c65b002716d7fc02e255360272f9d1e57.tar.gz
llvm-9f49733c65b002716d7fc02e255360272f9d1e57.tar.bz2
Add -Wcast-calling-convention to warn when casting away calling conventions
Summary: This only warns on casts of the address of a function defined in the current TU. In this case, the fix is likely to be local and the warning useful. Here are some things we could experiment with in the future: - Fire on declarations as well as definitions - Limit the warning to non-void function prototypes - Limit the warning to mismatches of caller and callee cleanup CCs This warning is currently off by default while we study its usefulness. Reviewers: thakis, rtrieu Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D17348 llvm-svn: 269116
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions