PR44684: Look through parens and similar constructs when determining
authorRichard Smith <richard@metafoo.co.uk>
Thu, 6 Feb 2020 03:01:33 +0000 (19:01 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Thu, 6 Feb 2020 20:21:54 +0000 (12:21 -0800)
commitda3dc0011e06c9f1aebe71d76eae92dc76e3db2e
tree5bbd199521902ee70ddb176d4fb81950bcee4ac1
parent6f5a159eab8d3fecdbbc741a38c970c0149b3c96
PR44684: Look through parens and similar constructs when determining
whether a call is to a builtin.

We already had a general mechanism to do this but for some reason
weren't using it. In passing, check for the other unary operators that
can intervene in a reasonably-direct function call (we already handled
'&' but missed '*' and '+').

This reverts commit aaae6b1b617378362462c1685e754813ed82b394,
reinstating af80b8ccc5772c14920d4554b7ca7e15f2fad1c4, with a fix to
clang-tidy.
clang-tools-extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp
clang/lib/AST/Expr.cpp
clang/lib/AST/ExprConstant.cpp
clang/test/Parser/builtin_classify_type.c
clang/test/Sema/constant-builtins.c