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,13 +21,13 @@
#include <linux/compiler.h>
#include <linux/ioctl.h>
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#define BLKPG _IO(0x12,105)
#define BLKPG _IO(0x12, 105)
struct blkpg_ioctl_arg {
int op;
int flags;
int op;
int flags;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
int datalen;
void __user *data;
int datalen;
void __user * data;
};
#define BLKPG_ADD_PARTITION 1
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
@@ -37,12 +37,12 @@ struct blkpg_ioctl_arg {
#define BLKPG_VOLNAMELTH 64
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
struct blkpg_partition {
long long start;
long long length;
int pno;
long long start;
long long length;
int pno;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
char devname[BLKPG_DEVNAMELTH];
char volname[BLKPG_VOLNAMELTH];
char devname[BLKPG_DEVNAMELTH];
char volname[BLKPG_VOLNAMELTH];
};
#endif
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */