HomePhabricator

[AST] Refactor PredefinedExpr

Description

[AST] Refactor PredefinedExpr

Make the following changes to PredefinedExpr:

  1. Move PredefinedExpr below StringLiteral so that it can use its definition.
  2. Rename IdentType to IdentKind to be more in line with clang's conventions, and propagate the change to its users.
  3. Move the location and the IdentKind into the newly available space of the bit-fields of Stmt.
  4. Only store the function name when needed. When parsing all of Boost, of the 1357 PredefinedExpr 919 have no function name.

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

Reviewed By: rjmccall

Details

Committed
brunoricciOct 27 2018, 12:21 PM
Reviewer
rjmccall
Differential Revision
D53605: [AST] Refactor PredefinedExpr
Parents
rL345459: [AST] Widen the bit-fields of Stmt to 8 bytes.
Branches
Unknown
Tags
Unknown