]> granicus.if.org Git - clang/commit
Wire up '-Wignored-qualifiers' to the warning on 'const' in 'const int f()'.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 14 Jul 2010 06:36:18 +0000 (06:36 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 14 Jul 2010 06:36:18 +0000 (06:36 +0000)
commit5495f37302f7c82192dab1ce8d9c9fe76ed0ee37
tree32d6d6983c6603ac3733ed1f2d8f10dee397c2b5
parent773eb03d8c12639e4219869a97c3b45ff13a1533
Wire up '-Wignored-qualifiers' to the warning on 'const' in 'const int f()'.
This flag and warning match GCC semantics. Also, move it to -Wextra as this is
a largely cosmetic issue and doesn't seem to mask problems. Subsequent fixes to
the tests which no longer by default emit the warning. Added explicit test
cases for both C and C++ behavior with the warning turned on.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108325 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
test/Sema/block-call.c
test/Sema/block-return.c
test/Sema/return.c
test/Sema/struct-cast.c
test/SemaCXX/ambig-user-defined-conversions.cpp
test/SemaCXX/conditional-expr.cpp
test/SemaCXX/friend.cpp
test/SemaCXX/return.cpp
test/SemaTemplate/deduction.cpp