Switch kernel header parsing to python libclang
Replace the tokenizer in cpp.py with libclang.
Bug: 18937958
Change-Id: I27630904c6d2849418cd5ca3d3c612ec3078686d
diff --git a/libc/kernel/uapi/scsi/fc/fc_gs.h b/libc/kernel/uapi/scsi/fc/fc_gs.h
index b41fc56..05b6c52 100644
--- a/libc/kernel/uapi/scsi/fc/fc_gs.h
+++ b/libc/kernel/uapi/scsi/fc/fc_gs.h
@@ -21,60 +21,60 @@
#include <linux/types.h>
struct fc_ct_hdr {
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __u8 ct_rev;
- __u8 ct_in_id[3];
- __u8 ct_fs_type;
- __u8 ct_fs_subtype;
+ __u8 ct_rev;
+ __u8 ct_in_id[3];
+ __u8 ct_fs_type;
+ __u8 ct_fs_subtype;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __u8 ct_options;
- __u8 _ct_resvd1;
- __be16 ct_cmd;
- __be16 ct_mr_size;
+ __u8 ct_options;
+ __u8 _ct_resvd1;
+ __be16 ct_cmd;
+ __be16 ct_mr_size;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __u8 _ct_resvd2;
- __u8 ct_reason;
- __u8 ct_explan;
- __u8 ct_vendor;
+ __u8 _ct_resvd2;
+ __u8 ct_reason;
+ __u8 ct_explan;
+ __u8 ct_vendor;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
};
#define FC_CT_HDR_LEN 16
enum fc_ct_rev {
- FC_CT_REV = 1
+ FC_CT_REV = 1
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
};
enum fc_ct_fs_type {
- FC_FST_ALIAS = 0xf8,
- FC_FST_MGMT = 0xfa,
+ FC_FST_ALIAS = 0xf8,
+ FC_FST_MGMT = 0xfa,
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_FST_TIME = 0xfb,
- FC_FST_DIR = 0xfc,
+ FC_FST_TIME = 0xfb,
+ FC_FST_DIR = 0xfc,
};
enum fc_ct_cmd {
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_FS_RJT = 0x8001,
- FC_FS_ACC = 0x8002,
+ FC_FS_RJT = 0x8001,
+ FC_FS_ACC = 0x8002,
};
enum fc_ct_reason {
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_FS_RJT_CMD = 0x01,
- FC_FS_RJT_VER = 0x02,
- FC_FS_RJT_LOG = 0x03,
- FC_FS_RJT_IUSIZ = 0x04,
+ FC_FS_RJT_CMD = 0x01,
+ FC_FS_RJT_VER = 0x02,
+ FC_FS_RJT_LOG = 0x03,
+ FC_FS_RJT_IUSIZ = 0x04,
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_FS_RJT_BSY = 0x05,
- FC_FS_RJT_PROTO = 0x07,
- FC_FS_RJT_UNABL = 0x09,
- FC_FS_RJT_UNSUP = 0x0b,
+ FC_FS_RJT_BSY = 0x05,
+ FC_FS_RJT_PROTO = 0x07,
+ FC_FS_RJT_UNABL = 0x09,
+ FC_FS_RJT_UNSUP = 0x0b,
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
};
enum fc_ct_explan {
- FC_FS_EXP_NONE = 0x00,
- FC_FS_EXP_PID = 0x01,
+ FC_FS_EXP_NONE = 0x00,
+ FC_FS_EXP_PID = 0x01,
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_FS_EXP_PNAM = 0x02,
- FC_FS_EXP_NNAM = 0x03,
- FC_FS_EXP_COS = 0x04,
- FC_FS_EXP_FTNR = 0x07,
+ FC_FS_EXP_PNAM = 0x02,
+ FC_FS_EXP_NNAM = 0x03,
+ FC_FS_EXP_COS = 0x04,
+ FC_FS_EXP_FTNR = 0x07,
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
};
#endif