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:
Tao Bao
2015-01-28 10:07:51 -08:00
parent 11829be3e1
commit d7db594b8d
670 changed files with 32589 additions and 32507 deletions

View File

@@ -22,28 +22,28 @@
#define NFS4_OPAQUE_LIMIT 1024
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
enum cld_command {
Cld_Create,
Cld_Remove,
Cld_Check,
Cld_Create,
Cld_Remove,
Cld_Check,
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Cld_GraceDone,
Cld_GraceDone,
};
struct cld_name {
uint16_t cn_len;
uint16_t cn_len;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
unsigned char cn_id[NFS4_OPAQUE_LIMIT];
unsigned char cn_id[NFS4_OPAQUE_LIMIT];
} __attribute__((packed));
struct cld_msg {
uint8_t cm_vers;
uint8_t cm_vers;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
uint8_t cm_cmd;
int16_t cm_status;
uint32_t cm_xid;
union {
uint8_t cm_cmd;
int16_t cm_status;
uint32_t cm_xid;
union {
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
int64_t cm_gracetime;
struct cld_name cm_name;
} __attribute__((packed)) cm_u;
int64_t cm_gracetime;
struct cld_name cm_name;
} __attribute__((packed)) cm_u;
} __attribute__((packed));
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#endif