[Github-comments] [geany] C, C++, C#, D: Improve return type and var type recognition (#889)

elextr notifications at xxxxx
Tue Jan 26 23:18:37 UTC 2016


> +};
> +
> +const struct type1 func2();
> +const struct type1 var2 = { 0, 0 };
> +
> +typedef type1 type1_t;
> +
> +const type1_t func3();
> +const type1_t var3 = { 0, 0 };
> +
> +struct type1 func4();
> +struct type1 var4 = { 0, 0 };
> +
> +type1_t func5();
> +type1_t var5 = { 0, 0 };
> +

> Nothing to do with reporting the var type, it's "just" another mean of initializing. So different issue, possibly different test case.

Fair enough

> AFAIK -> syntax is not supported at all yet.

For some reason I thought it was, maybe another language.

> (OT, WTF is about this syntax? why add a new one?)

So it is after parameter declaration and so can use decltype(parameter) where the parameter type is from a template parameter and so not known until template parameter deduction.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/889/files#r50917934
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160126/c9a153c8/attachment.html>


More information about the Github-comments mailing list