[SyntaxTree] Add support for `LiteralExpression`
authorEduardo Caldas <ecaldas@google.com>
Thu, 23 Jul 2020 09:20:06 +0000 (09:20 +0000)
committerEduardo Caldas <ecaldas@google.com>
Tue, 4 Aug 2020 14:05:09 +0000 (14:05 +0000)
commit860cbbdd6b84017e6d37e1752b0358a05da6b115
tree1b712f325b5c1a9755c8a9ecc760dd2fe404fd5b
parent62a933b72c5b060bcb2c7332d05082f002d6c65a
[SyntaxTree] Add support for `LiteralExpression`

We use inheritance to model the grammar's disjunction rule:
literal:
  integer-literal
  character-literal
  floating-point-literal
  string-literal
  boolean-literal
  pointer-literal
  user-defined-literal

Differential Revision: https://reviews.llvm.org/D85186
clang/include/clang/Tooling/Syntax/Nodes.h
clang/lib/Tooling/Syntax/Nodes.cpp