Skip to content

Commit 4266360

Browse files
jvillardfacebook-github-bot
authored andcommitted
[build] taking the .mli into account actually broke the build
Summary: oops_house Reviewed By: mbouaziz Differential Revision: D5070159 fbshipit-source-id: ba9232e
1 parent 8dacc2d commit 4266360

2 files changed

Lines changed: 71 additions & 33 deletions

File tree

infer/src/clang/ctl_parser_types.ml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -46,39 +46,39 @@ let mode_const = "mode"
4646

4747
exception ALParsingException of string
4848

49-
(* Data structures for type parser.
50-
Correspondence with clang types inferred from
51-
StringRef BuiltinType::getName in
52-
https://clang.llvm.org/doxygen/Type_8cpp_source.html
49+
(** Data structures for type parser.
50+
Correspondence with clang types inferred from
51+
StringRef BuiltinType::getName in
52+
https://clang.llvm.org/doxygen/Type_8cpp_source.html
5353
*)
5454
type builtin_kind =
55-
| Void (* void *)
56-
| Bool (* bool *)
57-
| Char_U (* char *)
58-
| UChar (* unsigned char *)
59-
| WChar_U (* wchar_t *)
60-
| Char16 (* char16_t *)
61-
| Char32 (* char32_t *)
62-
| UShort (* unsigned short *)
63-
| UInt (* unsigned int *)
64-
| ULong (* unsigned long *)
65-
| ULongLong (* unsigned long long *)
66-
| Int128 (* __int128 *)
67-
| UInt128 (* unsigned __int128 *)
68-
| SChar (* signed char *)
69-
| Short (* short *)
70-
| Int (* int *)
71-
| Long (* long *)
72-
| LongLong (* long long *)
73-
| Half (* half of __fp16 *)
74-
| Float (* float *)
75-
| Double (* double *)
76-
| LongDouble (* long double *)
77-
| Float128 (* __float128 *)
78-
| NullPtr (* nullptr_t *)
79-
| ObjCId (* id *)
80-
| ObjCClass (* Class *)
81-
| ObjCSel (* SEL *)
55+
| Void (** void *)
56+
| Bool (** bool *)
57+
| Char_U (** char *)
58+
| UChar (** unsigned char *)
59+
| WChar_U (** wchar_t *)
60+
| Char16 (** char16_t *)
61+
| Char32 (** char32_t *)
62+
| UShort (** unsigned short *)
63+
| UInt (** unsigned int *)
64+
| ULong (** unsigned long *)
65+
| ULongLong (** unsigned long long *)
66+
| Int128 (** __int128 *)
67+
| UInt128 (** unsigned __int128 *)
68+
| SChar (** signed char *)
69+
| Short (** short *)
70+
| Int (** int *)
71+
| Long (** long *)
72+
| LongLong (** long long *)
73+
| Half (** half of __fp16 *)
74+
| Float (** float *)
75+
| Double (** double *)
76+
| LongDouble (** long double *)
77+
| Float128 (** __float128 *)
78+
| NullPtr (** nullptr_t *)
79+
| ObjCId (** id *)
80+
| ObjCClass (** Class *)
81+
| ObjCSel (** SEL *)
8282
(* | OCLSampler | OCLEvent | OCLClkEvent | OCLQueue | OCLNDRange
8383
| OCLReserveID | Dependent | Overload | BoundMember | PseudoObject
8484
| UnknownAny | BuiltinFn | ARCUnbridgedCast | OMPArraySection *)

infer/src/clang/ctl_parser_types.mli

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,44 @@ val suggestion_const : string
2727
val severity_const : string
2828
val mode_const : string
2929

30-
type abs_ctype
30+
(** Data structures for type parser.
31+
Correspondence with clang types inferred from
32+
StringRef BuiltinType::getName in
33+
https://clang.llvm.org/doxygen/Type_8cpp_source.html
34+
*)
35+
type builtin_kind =
36+
| Void (** void *)
37+
| Bool (** bool *)
38+
| Char_U (** char *)
39+
| UChar (** unsigned char *)
40+
| WChar_U (** wchar_t *)
41+
| Char16 (** char16_t *)
42+
| Char32 (** char32_t *)
43+
| UShort (** unsigned short *)
44+
| UInt (** unsigned int *)
45+
| ULong (** unsigned long *)
46+
| ULongLong (** unsigned long long *)
47+
| Int128 (** __int128 *)
48+
| UInt128 (** unsigned __int128 *)
49+
| SChar (** signed char *)
50+
| Short (** short *)
51+
| Int (** int *)
52+
| Long (** long *)
53+
| LongLong (** long long *)
54+
| Half (** half of __fp16 *)
55+
| Float (** float *)
56+
| Double (** double *)
57+
| LongDouble (** long double *)
58+
| Float128 (** __float128 *)
59+
| NullPtr (** nullptr_t *)
60+
| ObjCId (** id *)
61+
| ObjCClass (** Class *)
62+
| ObjCSel (** SEL *)
3163

32-
val tmp_c_type_equal : ?name_c_type : string -> Clang_ast_t.c_type -> abs_ctype -> bool
64+
type abs_ctype =
65+
| BuiltIn of builtin_kind
66+
| Pointer of abs_ctype
67+
68+
val tmp_c_type_equal : Clang_ast_t.c_type -> abs_ctype -> bool
69+
70+
val abs_ctype_to_string : abs_ctype -> string

0 commit comments

Comments
 (0)