• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // bindgen-flags: --allowlist-file ".*/allowlisted/file.*" --allowlist-type AllowlistMe -- -Itests/headers
2 
3 
4 // Forward declaration of struct that's defined in an allowlisted file.
5 struct StructWithAllowlistedDefinition;
6 
7 #include "allowlisted/file.hpp"
8 
9 // Actual definition of struct that has a forward declaration in an allowlisted file.
10 struct StructWithAllowlistedFwdDecl {
11     int b;
12 };
13 
14 class Ignored {
15     char c;
16 };
17 
18 // Also have an explicitly allowlisted type
19 class AllowlistMe {
20     int foo;
21 };
22