Devin Jeanpierre | d3f959f | 2021-10-27 18:47:50 +0000 | [diff] [blame] | 1 | // Part of the Crubit project, under the Apache License v2.0 with LLVM |
| 2 | // Exceptions. See /LICENSE for license information. |
| 3 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 4 | |
| 5 | // Standalone AST -> IR conversion functions, which can be used independently |
| 6 | // of ast_visitor. |
| 7 | // |
| 8 | // This allows us to, for example, perform a subset of the work of ast_visitor |
| 9 | // inside of a ClangMR or other tool. |
Dmitri Gribenko | e4e77d0 | 2022-03-17 14:09:39 +0000 | [diff] [blame] | 10 | #ifndef CRUBIT_RS_BINDINGS_FROM_CC_AST_CONVERT_H_ |
| 11 | #define CRUBIT_RS_BINDINGS_FROM_CC_AST_CONVERT_H_ |
Devin Jeanpierre | d3f959f | 2021-10-27 18:47:50 +0000 | [diff] [blame] | 12 | |
| 13 | #include "rs_bindings_from_cc/ir.h" |
Lukasz Anforowicz | cec7a8a | 2022-04-27 10:24:51 -0700 | [diff] [blame] | 14 | #include "clang/AST/Decl.h" |
Devin Jeanpierre | d3f959f | 2021-10-27 18:47:50 +0000 | [diff] [blame] | 15 | |
Marcel Hlopko | f15e8ce | 2022-04-08 08:46:09 -0700 | [diff] [blame] | 16 | namespace crubit { |
Devin Jeanpierre | d3f959f | 2021-10-27 18:47:50 +0000 | [diff] [blame] | 17 | |
Devin Jeanpierre | d3f959f | 2021-10-27 18:47:50 +0000 | [diff] [blame] | 18 | SpecialMemberFunc GetCopyCtorSpecialMemberFunc( |
| 19 | const clang::RecordDecl& record_decl); |
| 20 | |
| 21 | SpecialMemberFunc GetMoveCtorSpecialMemberFunc( |
| 22 | const clang::RecordDecl& record_decl); |
| 23 | |
| 24 | SpecialMemberFunc GetDestructorSpecialMemberFunc( |
| 25 | const clang::RecordDecl& record_decl); |
| 26 | |
Marcel Hlopko | f15e8ce | 2022-04-08 08:46:09 -0700 | [diff] [blame] | 27 | } // namespace crubit |
Devin Jeanpierre | d3f959f | 2021-10-27 18:47:50 +0000 | [diff] [blame] | 28 | |
Dmitri Gribenko | e4e77d0 | 2022-03-17 14:09:39 +0000 | [diff] [blame] | 29 | #endif // CRUBIT_RS_BINDINGS_FROM_CC_AST_CONVERT_H_ |