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_ns.h b/libc/kernel/uapi/scsi/fc/fc_ns.h
index 627cd46..cd028f3 100644
--- a/libc/kernel/uapi/scsi/fc/fc_ns.h
+++ b/libc/kernel/uapi/scsi/fc/fc_ns.h
@@ -22,48 +22,48 @@
 #define FC_NS_SUBTYPE 2
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 enum fc_ns_req {
- FC_NS_GA_NXT = 0x0100,
- FC_NS_GI_A = 0x0101,
- FC_NS_GPN_ID = 0x0112,
+  FC_NS_GA_NXT = 0x0100,
+  FC_NS_GI_A = 0x0101,
+  FC_NS_GPN_ID = 0x0112,
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_NS_GNN_ID = 0x0113,
- FC_NS_GSPN_ID = 0x0118,
- FC_NS_GID_PN = 0x0121,
- FC_NS_GID_NN = 0x0131,
+  FC_NS_GNN_ID = 0x0113,
+  FC_NS_GSPN_ID = 0x0118,
+  FC_NS_GID_PN = 0x0121,
+  FC_NS_GID_NN = 0x0131,
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_NS_GID_FT = 0x0171,
- FC_NS_GPN_FT = 0x0172,
- FC_NS_GID_PT = 0x01a1,
- FC_NS_RPN_ID = 0x0212,
+  FC_NS_GID_FT = 0x0171,
+  FC_NS_GPN_FT = 0x0172,
+  FC_NS_GID_PT = 0x01a1,
+  FC_NS_RPN_ID = 0x0212,
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_NS_RNN_ID = 0x0213,
- FC_NS_RFT_ID = 0x0217,
- FC_NS_RSPN_ID = 0x0218,
- FC_NS_RFF_ID = 0x021f,
+  FC_NS_RNN_ID = 0x0213,
+  FC_NS_RFT_ID = 0x0217,
+  FC_NS_RSPN_ID = 0x0218,
+  FC_NS_RFF_ID = 0x021f,
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_NS_RSNN_NN = 0x0239,
+  FC_NS_RSNN_NN = 0x0239,
 };
 enum fc_ns_pt {
- FC_NS_UNID_PORT = 0x00,
+  FC_NS_UNID_PORT = 0x00,
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_NS_N_PORT = 0x01,
- FC_NS_NL_PORT = 0x02,
- FC_NS_FNL_PORT = 0x03,
- FC_NS_NX_PORT = 0x7f,
+  FC_NS_N_PORT = 0x01,
+  FC_NS_NL_PORT = 0x02,
+  FC_NS_FNL_PORT = 0x03,
+  FC_NS_NX_PORT = 0x7f,
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- FC_NS_F_PORT = 0x81,
- FC_NS_FL_PORT = 0x82,
- FC_NS_E_PORT = 0x84,
- FC_NS_B_PORT = 0x85,
+  FC_NS_F_PORT = 0x81,
+  FC_NS_FL_PORT = 0x82,
+  FC_NS_E_PORT = 0x84,
+  FC_NS_B_PORT = 0x85,
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 };
 struct fc_ns_pt_obj {
- __u8 pt_type;
+  __u8 pt_type;
 };
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 struct fc_ns_fid {
- __u8 fp_flags;
- __u8 fp_fid[3];
+  __u8 fp_flags;
+  __u8 fp_fid[3];
 };
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 #define FC_NS_FID_LAST 0x80
@@ -71,76 +71,76 @@
 #define FC_NS_BPW 32
 struct fc_ns_fts {
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __be32 ff_type_map[FC_NS_TYPES / FC_NS_BPW];
+  __be32 ff_type_map[FC_NS_TYPES / FC_NS_BPW];
 };
 struct fc_ns_ff {
- __be32 fd_feat[FC_NS_TYPES * 4 / FC_NS_BPW];
+  __be32 fd_feat[FC_NS_TYPES * 4 / FC_NS_BPW];
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 };
 struct fc_ns_gid_pt {
- __u8 fn_pt_type;
- __u8 fn_domain_id_scope;
+  __u8 fn_pt_type;
+  __u8 fn_domain_id_scope;
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __u8 fn_area_id_scope;
- __u8 fn_resvd;
+  __u8 fn_area_id_scope;
+  __u8 fn_resvd;
 };
 struct fc_ns_gid_ft {
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __u8 fn_resvd;
- __u8 fn_domain_id_scope;
- __u8 fn_area_id_scope;
- __u8 fn_fc4_type;
+  __u8 fn_resvd;
+  __u8 fn_domain_id_scope;
+  __u8 fn_area_id_scope;
+  __u8 fn_fc4_type;
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 };
 struct fc_gpn_ft_resp {
- __u8 fp_flags;
- __u8 fp_fid[3];
+  __u8 fp_flags;
+  __u8 fp_fid[3];
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __be32 fp_resvd;
- __be64 fp_wwpn;
+  __be32 fp_resvd;
+  __be64 fp_wwpn;
 };
 struct fc_ns_gid_pn {
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __be64 fn_wwpn;
+  __be64 fn_wwpn;
 };
 struct fc_gid_pn_resp {
- __u8 fp_resvd;
+  __u8 fp_resvd;
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __u8 fp_fid[3];
+  __u8 fp_fid[3];
 };
 struct fc_gspn_resp {
- __u8 fp_name_len;
+  __u8 fp_name_len;
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- char fp_name[];
+  char fp_name[];
 };
 struct fc_ns_rft_id {
- struct fc_ns_fid fr_fid;
+  struct fc_ns_fid fr_fid;
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- struct fc_ns_fts fr_fts;
+  struct fc_ns_fts fr_fts;
 };
 struct fc_ns_rn_id {
- struct fc_ns_fid fr_fid;
+  struct fc_ns_fid fr_fid;
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __be64 fr_wwn;
+  __be64 fr_wwn;
 } __attribute__((__packed__));
 struct fc_ns_rsnn {
- __be64 fr_wwn;
+  __be64 fr_wwn;
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __u8 fr_name_len;
- char fr_name[];
+  __u8 fr_name_len;
+  char fr_name[];
 } __attribute__((__packed__));
 struct fc_ns_rspn {
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- struct fc_ns_fid fr_fid;
- __u8 fr_name_len;
- char fr_name[];
+  struct fc_ns_fid fr_fid;
+  __u8 fr_name_len;
+  char fr_name[];
 } __attribute__((__packed__));
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 struct fc_ns_rff_id {
- struct fc_ns_fid fr_fid;
- __u8 fr_resvd[2];
- __u8 fr_feat;
+  struct fc_ns_fid fr_fid;
+  __u8 fr_resvd[2];
+  __u8 fr_feat;
 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- __u8 fr_type;
+  __u8 fr_type;
 } __attribute__((__packed__));
 #endif