[Fixed Point] [AST] Add an AST serialization code for fixed-point literals.
authorVince Bridgers <vince.a.bridgers@gmail.com>
Tue, 7 Apr 2020 19:46:08 +0000 (14:46 -0500)
committereinvbri <vince.a.bridgers@ericsson.com>
Tue, 14 Apr 2020 18:20:49 +0000 (13:20 -0500)
commit161fc1d9118f4f64887cf7845a51ec79f1a8602f
treeb49e478c80bca3f133636cd098b4845776e5d783
parente68f1f2d4301a0f2c6dd5fdf90e4579e68499f3f
[Fixed Point] [AST] Add an AST serialization code for fixed-point literals.

Summary:
This patch adds the EXPR_FIXEDPOINT_LITERAL AST
code to serialize FixedPointLiterals. They were previously
being serialized with the code for integer literals, which
doesn't work properly.

Reviewers: leonardchan, rjmccall

Reviewed By: leonardchan, rjmccall

Subscribers: vabridgers, JesperAntonsson, bjope, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D57226
clang/include/clang/AST/Expr.h
clang/include/clang/Serialization/ASTBitCodes.h
clang/lib/AST/Expr.cpp
clang/lib/Serialization/ASTReaderStmt.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/lib/Serialization/ASTWriterStmt.cpp
clang/test/PCH/Inputs/fixed-point-literal.h [new file with mode: 0644]
clang/test/PCH/fixed-point-literal.c [new file with mode: 0644]