]> granicus.if.org Git - clang/commit
Fix the behavior of -Wignored-qualifiers on return type qualifiers in
authorChandler Carruth <chandlerc@gmail.com>
Wed, 23 Feb 2011 18:51:59 +0000 (18:51 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 23 Feb 2011 18:51:59 +0000 (18:51 +0000)
commitd067c07c6cbf099b25aba38bcb66f38e79d0c420
treef1335f61d0db3ee2ab6e5251a96853ad8574eaa1
parent87fb9404cd962b78c98947d75d68be1691c4e737
Fix the behavior of -Wignored-qualifiers on return type qualifiers in
several ways. We now warn for more of the return types, and correctly
locate the ignored ones. Also adds fix-it hints to remove the ignored
qualifiers. Fixes much of PR9058, although not all of it.

Patch by Hans Wennborg, a couple of minor style tweaks from me.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126321 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/DeclSpec.h
lib/Parse/ParseDecl.cpp
lib/Sema/SemaType.cpp
test/Sema/return.c
test/SemaCXX/return.cpp