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

@@ -21,30 +21,30 @@
#include <asm/bitsperlong.h>
struct msqid64_ds {
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
struct ipc64_perm msg_perm;
__kernel_time_t msg_stime;
struct ipc64_perm msg_perm;
__kernel_time_t msg_stime;
#if __BITS_PER_LONG != 64
unsigned long __unused1;
unsigned long __unused1;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#endif
__kernel_time_t msg_rtime;
__kernel_time_t msg_rtime;
#if __BITS_PER_LONG != 64
unsigned long __unused2;
unsigned long __unused2;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#endif
__kernel_time_t msg_ctime;
__kernel_time_t msg_ctime;
#if __BITS_PER_LONG != 64
unsigned long __unused3;
unsigned long __unused3;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#endif
__kernel_ulong_t msg_cbytes;
__kernel_ulong_t msg_qnum;
__kernel_ulong_t msg_qbytes;
__kernel_ulong_t msg_cbytes;
__kernel_ulong_t msg_qnum;
__kernel_ulong_t msg_qbytes;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
__kernel_pid_t msg_lspid;
__kernel_pid_t msg_lrpid;
__kernel_ulong_t __unused4;
__kernel_ulong_t __unused5;
__kernel_pid_t msg_lspid;
__kernel_pid_t msg_lrpid;
__kernel_ulong_t __unused4;
__kernel_ulong_t __unused5;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
};
#endif