]> granicus.if.org Git - clang/commit
1) Enforce C99 6.7.3p2: "Types other than pointer types derived from
authorChris Lattner <sabre@nondot.org>
Wed, 2 Apr 2008 06:50:17 +0000 (06:50 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 2 Apr 2008 06:50:17 +0000 (06:50 +0000)
commit96b77fc05ed4a052a9e614f72b0e83572408ce48
tree35ac356f0c87e5144e3b78ab1af299b1f48578f2
parentd9654557562e77564309f6b83b493a9a424e008a
1) Enforce C99 6.7.3p2: "Types other than pointer types derived from
object or incomplete types shall not be restrict-qualified."

2) Warn about qualifiers on function types: C99 6.7.3p8: "If the
specification of a function type includes any type qualifiers, the
behavior is undefined."

3) Implement restrict on C++ references.

4) fix some locations for various C++ reference diagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49081 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticKinds.def
lib/Sema/SemaType.cpp
test/Sema/declspec.c