[clang] Improve Serialization/Imporing/Dumping of APValues
authorTyker <tyker1@outlook.com>
Thu, 1 Oct 2020 15:58:07 +0000 (17:58 +0200)
committerTyker <tyker1@outlook.com>
Wed, 21 Oct 2020 17:03:13 +0000 (19:03 +0200)
commitcf34dd0c4e84b69bb901f9cd4f3491852238ec44
tree374f9f672a18ddc70ca83abf8c0354fe2c4afda7
parent8b7dac81d378c339d3e55f6f51cd0c42803903ad
[clang] Improve Serialization/Imporing/Dumping of APValues

Changes:
 - initializer expressions of constexpr variable are now wraped in a ConstantExpr. this is mainly used for testing purposes. the old caching system has not yet been removed.
 - Add all the missing Serialization and Importing for APValue.
 - Improve dumping of APValue when ASTContext isn't available.
 - Cleanup leftover from last patch.
 - Add Tests for Import and serialization.

Differential Revision: https://reviews.llvm.org/D63640
clang/include/clang/AST/APValue.h
clang/include/clang/AST/ASTContext.h
clang/include/clang/AST/ASTImporter.h
clang/lib/AST/APValue.cpp
clang/lib/AST/ASTContext.cpp
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/Expr.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/test/ASTMerge/APValue/APValue.cpp [new file with mode: 0644]