package diffast-langs-cpp-parsing

  1. Overview
  2. Docs
module Xlist = Diffast_misc.Xlist
module Binding = Diffast_misc.Binding
module Astloc = Langs_common.Astloc
module BID = Binding.ID
module C = Context
module L = Label
val encode_ident : string -> string
val decode_pat : Str.regexp
val decode_ident : string -> string
type pp_if_cond =
  1. | PP_IF of string * Obj.t list
  2. | PP_IFDEF of Common.ident
  3. | PP_IFNDEF of Common.ident
type pp_if_cond_sub =
  1. | PP_NONE
  2. | PP_CLOSING
  3. | PP_STR
  4. | PP_EXPR
  5. | PP_INIT
type pp_compl = {
  1. mutable c_brace : int;
  2. mutable c_paren : int;
}
type pp_if_section_info = {
  1. mutable i_line : int;
  2. mutable i_context : C.t;
  3. mutable i_sub_context : C.sub;
  4. mutable i_label : L.t;
  5. mutable i_brace_level : int;
  6. mutable i_paren_level : int;
  7. mutable i_templ_param_arg_level : int;
  8. mutable i_cond : pp_if_cond;
  9. mutable i_cond_sub : pp_if_cond_sub;
  10. mutable i_pp_elif : int list;
  11. mutable i_pp_else : int option;
  12. mutable i_lbraces : int;
  13. mutable i_rbraces : int;
  14. mutable i_odd : bool;
  15. mutable i_odd_canceled : bool;
  16. mutable i_broken : bool;
  17. mutable i_paren_closing : bool;
  18. mutable i_brace_closing : int;
  19. mutable i_brace_opening : bool;
  20. mutable i_func_head : bool;
  21. mutable i_func_body : bool;
  22. mutable i_semicolon : bool;
  23. mutable i_comma : bool;
  24. mutable i_cond_expr : bool;
  25. mutable i_cond_expr_ : bool;
  26. mutable i_asm : bool;
  27. mutable i_begin_asm : bool;
  28. mutable i_pp_if_compl : pp_compl;
  29. mutable i_lack_of_dtor : bool;
  30. mutable i_class_brace_opening : bool;
  31. mutable i_follows_comma : bool;
  32. mutable i_brace_paren_closing : bool;
  33. mutable i_broken_func_head : bool;
  34. mutable i_templ_closing : bool;
}
val pp_if_cond_to_string : pp_if_cond -> string
val pp_if_cond_sub_to_string : pp_if_cond_sub -> string
val pp_compl_to_string : pp_compl -> string
val pp_if_section_info_to_string : pp_if_section_info -> string
val make_pp_if_section_info : ?cond_sub:pp_if_cond_sub -> ?pp_elif:int list -> ?pp_else:int option -> int -> C.t -> C.sub -> int -> int -> int -> pp_if_cond -> pp_if_section_info
val dummy_info : pp_if_section_info
module ElaboratedType : sig ... end
module PlaceholderType : sig ... end
module CvQualifier : sig ... end
module TypeSpec : sig ... end
class decl_specs : object ... end
class qualifiers : object ... end
class virt_specs : object ... end
module Type : sig ... end
module Name : sig ... end
type t =
  1. | NoInfo
  2. | NameSpec of Name.Spec.c
  3. | External of Common.name
val from_spec : Name.Spec.c -> t
val from_name : Common.name -> t
val get_external : t -> Common.name
val get_spec : t -> Name.Spec.c
val merge : t -> 'a -> 'a
val to_string : t -> string
OCaml

Innovation. Community. Security.