]> granicus.if.org Git - clang/commit
Make __builtin_types_compatible_p more like GCC's
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 16 Oct 2017 22:58:37 +0000 (22:58 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 16 Oct 2017 22:58:37 +0000 (22:58 +0000)
commit73c1500cc3b3a4cd39a7c59753a7d0e63887a839
tree9b2812de349f55a9dbdadc5bb8cfd832eed25448
parentd9cf6d49343f126b890470a9a89b31e524aac4ec
Make __builtin_types_compatible_p more like GCC's

GCC ignore qualifiers on array types. Since we seem to have this
function primarily for GCC compatibility, we should try to match that
behavior.

This also adds a few more test-cases __builtin_types_compatible_p,
which were inspired by GCC's documentation on the builtin.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315951 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/Parser/builtin_types_compatible.c