]> granicus.if.org Git - clang/commit
[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)
commitae679b05d34a1503557bd00c1d99d327b6f413e9
tree8a85bdcc35f56a492e628ac2078f70dad7ca9ab9
parent5b14cddec6bdb8da8f375dfe0c0910ff970a0e05
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340182 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTImporter.cpp
test/Import/cxx-casts/Inputs/F.cpp [new file with mode: 0644]
test/Import/cxx-casts/test.cpp [new file with mode: 0644]
tools/clang-import-test/clang-import-test.cpp