[all-commits] [llvm/llvm-project] 860cbb: [SyntaxTree] Add support for `LiteralExpression`

Eduardo Caldas via All-commits all-commits at lists.llvm.org
Tue Aug 4 07:05:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 860cbbdd6b84017e6d37e1752b0358a05da6b115
      https://github.com/llvm/llvm-project/commit/860cbbdd6b84017e6d37e1752b0358a05da6b115
  Author: Eduardo Caldas <ecaldas at google.com>
  Date:   2020-08-04 (Tue, 04 Aug 2020)

  Changed paths:
    M clang/include/clang/Tooling/Syntax/Nodes.h
    M clang/lib/Tooling/Syntax/Nodes.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list