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,19 +21,19 @@
#include <linux/types.h>
struct ifaddrlblmsg {
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
__u8 ifal_family;
__u8 __ifal_reserved;
__u8 ifal_prefixlen;
__u8 ifal_flags;
__u8 ifal_family;
__u8 __ifal_reserved;
__u8 ifal_prefixlen;
__u8 ifal_flags;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
__u32 ifal_index;
__u32 ifal_seq;
__u32 ifal_index;
__u32 ifal_seq;
};
enum {
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
IFAL_ADDRESS = 1,
IFAL_LABEL = 2,
__IFAL_MAX
IFAL_ADDRESS = 1,
IFAL_LABEL = 2,
__IFAL_MAX
};
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#define IFAL_MAX (__IFAL_MAX - 1)