search for: t_mystruct

Displaying 2 results from an estimated 2 matches for "t_mystruct".

Did you mean: mystruct
2012 Nov 23
2
[LLVMdev] clang code-completion question
...t possible to make clang to complete pointers to functions as a functions? I mean, I want to get function prototype, with returning value type and all the parameters. 2) Is it possible to make completion work inside structure initializers? I mean, like that: typedef struct { int a; int b; } T_MyStruct; int main(void) { T_MyStruct my_struct = { .a = 0, ./*cursor is here. I want to get list of struct members: [a, b]*/ }; } Thanks. -- Regards, Dmitry [image: Встроенное изображение 1] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists...
2012 Nov 28
0
[LLVMdev] Fwd: clang code-completion question
...quot; <cfe-dev at cs.uiuc.edu> Hello, Nick! Thank you for your reply. Regarding to pointers to functions: look at this code: static void _some_func(int a, int b, int c) { //-- do something } typedef void (*T_pMyFunc) (int a, int b, int c); typedef struct { T_pMyFunc p_my_func; } T_MyStruct; int main(void) { T_MyStruct my_struct = { .p_my_func = _some_func, }; _some_func/*cursor is here. I see function signature: int a, int b, int c. Everything is great*/ my_struct./*cursor is here. I see only member T_pMyFunc p_my_func, but there's no function signature. Ther...