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

Colomban Wendling notifications at xxxxx
Tue Jan 26 23:12:31 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 };
> +

> what about testing  `type1_t var{};` or `type1_t var{ 0, 0 };`

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

> what about testing `auto func()->type1_t` C++11 syntax 

This is more related, but still quite outside the scope here, as AFAIK `->` syntax is not supported at all yet. (OT, WTF is about this syntax?  why add a new one?)

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


More information about the Github-comments mailing list