[ASTImporter] Add test for C++ casts and fix broken const_cast importing.
authorRaphael Isemann <teemperor@gmail.com>
Mon, 20 Aug 2018 16:20:01 +0000 (16:20 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 20 Aug 2018 16:20:01 +0000 (16:20 +0000)
commitc705bb840172ce32d90e1b11b887726e338b9df7
treec0a3b091f64cda25bea3d17aac8c8c3f202ae40d
parent7b1a7bd5bab1dfc1f411daab4761d2842f564fd6
[ASTImporter] Add test for C++ casts and fix broken const_cast importing.

Summary:
The ASTImporter does currently not handle const_casts. This patch adds the
missing const_cast importer code and the test case that discovered this.

Reviewers: a.sidorin, a_sidorin

Reviewed By: a_sidorin

Subscribers: a_sidorin, martong, cfe-commits

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

llvm-svn: 340182
clang/lib/AST/ASTImporter.cpp
clang/test/Import/cxx-casts/Inputs/F.cpp [new file with mode: 0644]
clang/test/Import/cxx-casts/test.cpp [new file with mode: 0644]
clang/tools/clang-import-test/clang-import-test.cpp