]> granicus.if.org Git - clang/commit
[clang] Implement -Wcast-qual for C++
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 3 Jul 2017 17:59:22 +0000 (17:59 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 3 Jul 2017 17:59:22 +0000 (17:59 +0000)
commit2ea9de261c4475b62359e9ac613fb1ca09676418
tree048ff384eeade89ee46d564fb05726371cc8a5eb
parent063721498032b28ccb1bc0a4cb257882317113bb
[clang] Implement -Wcast-qual for C++

Summary:
This way, the behavior of that warning flag
more closely resembles that of GCC.

Do note that there is at least one false-negative (see FIXME in tests).

Fixes PR4802.

Testing:
```
ninja check-clang-sema check-clang-semacxx
```

Reviewers: dblaikie, majnemer, rnk

Reviewed By: dblaikie, rnk

Subscribers: mclow.lists, cfe-commits, alexfh, rnk

Differential Revision: https://reviews.llvm.org/D33102

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307045 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ReleaseNotes.rst
lib/Sema/SemaCast.cpp
test/Sema/warn-cast-qual.c
test/SemaCXX/warn-cast-qual.cpp [new file with mode: 0644]