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
19
21typedef int srclang_t;
22
23
27
28idaman bool ida_export select_parser_by_name(const char *name);
29
30
34
35idaman bool ida_export select_parser_by_srclang(srclang_t lang);
36
37
42
43idaman bool ida_export get_selected_parser_name(qstring *out);
44
45
52
53idaman int ida_export set_parser_argv(const char *parser_name, const char *argv);
54
55
63
64idaman int ida_export parse_decls_for_srclang(
65 srclang_t lang,
66 til_t *til,
67 const char *input,
68 bool is_path);
69
70
78
79idaman int ida_export parse_decls_with_parser_ext(
80 const char *parser_name,
81 til_t *til,
82 const char *input,
83 int hti_flags);
84
85
91
92idaman bool ida_export get_parser_option(
93 qstring *out,
94 const char *parser_name,
95 const char *option_name);
96
97
104
105idaman bool ida_export set_parser_option(
106 const char *parser_name,
107 const char *option_name,
108 const char *option_value);
109
110
118
119idaman int ida_export parse_decls_with_parser(
120 const char *parser_name,
121 til_t *til,
122 const char *input,
123 bool is_path);
124
125
126
127#endif // !SRCLANG_H
_qstring< char > qstring
regular string
Definition pro.h:3694
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:21
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:725
Type information in IDA.