summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/callingconv-cast.c
Commit message (Collapse)AuthorAgeFilesLines
* Extend -Wcast-calling-convention to warn on declarations as well as definitionsReid Kleckner2017-01-311-0/+13
| | | | | | | | | My original warning was very conservative and I never revisited the heuristics that were used. This would have caught http://crbug.com/687251 at compile time. llvm-svn: 293677
* Fix line numbers in calling convention testReid Kleckner2016-05-171-9/+9
| | | | llvm-svn: 269787
* Fix calling convention testReid Kleckner2016-05-171-3/+0
| | | | llvm-svn: 269781
* Relax -Wcalling-convention-cast when casting to the default convention (cdecl)Reid Kleckner2016-05-111-0/+9
| | | | llvm-svn: 269214
* Disable -Wcast-calling-convention by default (follow-up to r269116)Hans Wennborg2016-05-111-8/+11
| | | | llvm-svn: 269148
* Wildcard away paths in fixit CHECKs in my last testcaseReid Kleckner2016-05-101-9/+9
| | | | | | Oops. :( llvm-svn: 269118
* Add -Wcast-calling-convention to warn when casting away calling conventionsReid Kleckner2016-05-101-0/+54
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
OpenPOWER on IntegriCloud