Bruno Ricci 9b6dfac5ad [AST] Store some data of CXXNewExpr as trailing objects
Store the optional array size expression, optional initialization expression
and optional placement new arguments in a trailing array. Additionally store
the range for the parenthesized type-id in a trailing object if needed since
in the vast majority of cases the type is not parenthesized (not a single new
expression in the translation unit of SemaDecl.cpp has a parenthesized type-id).

This saves 2 pointers per CXXNewExpr in all cases, and 2 pointers + 8 bytes
per CXXNewExpr in the common case where the type is not parenthesized.

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

Reviewed By: rjmccall

llvm-svn: 350527
2019-01-07 15:04:45 +00:00
..
2018-07-30 19:24:48 +00:00
2018-08-09 21:09:38 +00:00
2018-12-29 02:02:30 +00:00
2018-12-29 02:02:30 +00:00
2018-07-30 19:24:48 +00:00
2018-07-30 19:24:48 +00:00
2018-12-10 12:37:46 +00:00
2018-10-31 03:48:47 +00:00
2018-07-30 19:24:48 +00:00
2018-12-14 03:35:10 +00:00
2018-08-09 21:09:38 +00:00
2018-10-31 03:48:47 +00:00
2018-07-30 19:24:48 +00:00
2018-07-30 19:24:48 +00:00
2018-07-30 19:24:48 +00:00