]> granicus.if.org Git - clang/commit
Ignore ConstantExpr in IgnoreParens
authorReid Kleckner <rnk@google.com>
Wed, 26 Dec 2018 17:44:40 +0000 (17:44 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 26 Dec 2018 17:44:40 +0000 (17:44 +0000)
commitf9e2ca2ab17197472bbde11fe6cc6115c2a5dc09
tree0ddbeba3a2d5a5acafa8f51824b619518b8c0cb6
parent7e3a9ce433bf3ef170d4cd6ae85828407393c20a
Ignore ConstantExpr in IgnoreParens

Summary:
This moves it up from IgnoreParenImpCasts to IgnoreParens, so that more
helpers ignore it. For most clients, this ensures that these helpers
behave the same with and without C++17 enabled, which is what appears to
introduce these new expression nodes.

Fixes PR39881

Reviewers: void, rsmith

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D55853

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350068 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
test/CodeGenCXX/mangle-ms-templates.cpp