IDA C++ SDK 9.2
Loading...
Searching...
No Matches
srclang.hpp
Go to the documentation of this file.
1#ifndef SRCLANG_H
2#define SRCLANG_H
3
4#include <typeinf.hpp>
5
10
13#define SRCLANG_C 0x01
14#define SRCLANG_CPP 0x02
15#define SRCLANG_OBJC 0x04
16#define SRCLANG_SWIFT 0x08
17#define SRCLANG_GO 0x10
18#define SRCLANG_OBJCPP 0x20
20
22typedef int srclang_t;
23
24
28
29idaman bool ida_export select_parser_by_name(const char *name);
30
31
35
36idaman bool ida_export select_parser_by_srclang(srclang_t lang);
37
38
43
44idaman bool ida_export get_selected_parser_name(qstring *out);
45
46
53
54idaman int ida_export set_parser_argv(const char *parser_name, const char *argv);
55
56
64
65idaman int ida_export parse_decls_for_srclang(
66 srclang_t lang,
67 til_t *til,
68 const char *input,
69 bool is_path);
70
71
79
80idaman int ida_export parse_decls_with_parser_ext(
81 const char *parser_name,
82 til_t *til,
83 const char *input,
84 int hti_flags);
85
86
92
93idaman bool ida_export get_parser_option(
94 qstring *out,
95 const char *parser_name,
96 const char *option_name);
97
98
105
106idaman bool ida_export set_parser_option(
107 const char *parser_name,
108 const char *option_name,
109 const char *option_value);
110
111
119
120idaman int ida_export parse_decls_with_parser(
121 const char *parser_name,
122 til_t *til,
123 const char *input,
124 bool is_path);
125
126
127
128#endif // !SRCLANG_H
_qstring< char > qstring
regular string
Definition pro.h:3771
idaman bool ida_export select_parser_by_name(const char *name)
Set the parser with the given name as the current parser.
idaman bool ida_export get_selected_parser_name(qstring *out)
Get current parser name.
idaman int ida_export parse_decls_with_parser_ext(const char *parser_name, til_t *til, const char *input, int hti_flags)
Parse type declarations using the parser with the specified name.
idaman bool ida_export select_parser_by_srclang(srclang_t lang)
Set the parser that supports the given language(s) as the current parser.
idaman bool ida_export set_parser_option(const char *parser_name, const char *option_name, const char *option_value)
Set option for the parser with the specified name.
idaman int ida_export parse_decls_for_srclang(srclang_t lang, til_t *til, const char *input, bool is_path)
Parse type declarations in the specified language.
idaman int ida_export set_parser_argv(const char *parser_name, const char *argv)
Set the command-line args to use for invocations of the parser with the given name.
int srclang_t
Bitmask that describes all source languages supported by a compiler. Combination of Source language I...
Definition srclang.hpp:22
idaman int ida_export parse_decls_with_parser(const char *parser_name, til_t *til, const char *input, bool is_path)
Parse type declarations using the parser with the specified name.
idaman bool ida_export get_parser_option(qstring *out, const char *parser_name, const char *option_name)
Get option for the parser with the specified name.
Type Information Library.
Definition typeinf.hpp:728
Type information in IDA.