Switch kernel header parsing to python libclang
Replace the tokenizer in cpp.py with libclang. Bug: 18937958 Change-Id: I27630904c6d2849418cd5ca3d3c612ec3078686d
This commit is contained in:
@@ -22,9 +22,9 @@
|
||||
#define SELNL_MSG_BASE 0x10
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
enum {
|
||||
SELNL_MSG_SETENFORCE = SELNL_MSG_BASE,
|
||||
SELNL_MSG_POLICYLOAD,
|
||||
SELNL_MSG_MAX
|
||||
SELNL_MSG_SETENFORCE = SELNL_MSG_BASE,
|
||||
SELNL_MSG_POLICYLOAD,
|
||||
SELNL_MSG_MAX
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
};
|
||||
#define SELNL_GRP_NONE 0x00000000
|
||||
@@ -32,20 +32,20 @@ enum {
|
||||
#define SELNL_GRP_ALL 0xffffffff
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
enum selinux_nlgroups {
|
||||
SELNLGRP_NONE,
|
||||
SELNLGRP_NONE,
|
||||
#define SELNLGRP_NONE SELNLGRP_NONE
|
||||
SELNLGRP_AVC,
|
||||
SELNLGRP_AVC,
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
#define SELNLGRP_AVC SELNLGRP_AVC
|
||||
__SELNLGRP_MAX
|
||||
__SELNLGRP_MAX
|
||||
};
|
||||
#define SELNLGRP_MAX (__SELNLGRP_MAX - 1)
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
struct selnl_msg_setenforce {
|
||||
__s32 val;
|
||||
__s32 val;
|
||||
};
|
||||
struct selnl_msg_policyload {
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__u32 seqno;
|
||||
__u32 seqno;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user