summaryrefslogtreecommitdiff
path: root/tests/headers/allowlist-file.hpp
blob: b0354a047f37e29947b2c40264d8f5693deee45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// bindgen-flags: --allowlist-file ".*/allowlisted/file.*" --allowlist-type AllowlistMe -- -Itests/headers


// Forward declaration of struct that's defined in an allowlisted file.
struct StructWithAllowlistedDefinition;

#include "allowlisted/file.hpp"

// Actual definition of struct that has a forward declaration in an allowlisted file.
struct StructWithAllowlistedFwdDecl {
    int b;
};

class Ignored {
    char c;
};

// Also have an explicitly allowlisted type
class AllowlistMe {
    int foo;
};