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:
@@ -19,12 +19,12 @@
|
||||
#ifndef _UAPI_LINUX_SOCKET_H
|
||||
#define _UAPI_LINUX_SOCKET_H
|
||||
#define _K_SS_MAXSIZE 128
|
||||
#define _K_SS_ALIGNSIZE (__alignof__ (struct sockaddr *))
|
||||
#define _K_SS_ALIGNSIZE (__alignof__(struct sockaddr *))
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
typedef unsigned short __kernel_sa_family_t;
|
||||
struct __kernel_sockaddr_storage {
|
||||
__kernel_sa_family_t ss_family;
|
||||
char __data[_K_SS_MAXSIZE - sizeof(unsigned short)];
|
||||
__kernel_sa_family_t ss_family;
|
||||
char __data[_K_SS_MAXSIZE - sizeof(unsigned short)];
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
} __attribute__ ((aligned(_K_SS_ALIGNSIZE)));
|
||||
} __attribute__((aligned(_K_SS_ALIGNSIZE)));
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user