| Outline View and user-defines data types [message #177143] |
Fri, 22 September 2006 09:27  |
Eclipse User |
|
|
|
Originally posted by: christian.welzel.brosa.net
Hi,
i have a simple question. Is it possible to display user-defined data types
in the outline view? We have defined several data types, e.g. uint8, uint16.
If there is a function with this data types in the header, outline doesn't
display this function. (E.g. uint8 do_something( void ) ).
I hope, anayone has an answer. Thanks.
Christian
|
|
|
| Re: Outline View and user-defines data types [message #177278 is a reply to message #177143] |
Mon, 25 September 2006 05:31   |
Eclipse User |
|
|
|
Christian Welzel wrote:
> Hi,
>
> i have a simple question. Is it possible to display user-defined data types
> in the outline view? We have defined several data types, e.g. uint8, uint16.
> If there is a function with this data types in the header, outline doesn't
> display this function. (E.g. uint8 do_something( void ) ).
> I hope, anayone has an answer. Thanks.
>
> Christian
>
>
I'd suggest to disable the option "Follow #include's when parsing
working copies" under Preferences > C/C++.
Disabling this option often improves the usability of the outline view.
If I create a C file containing only the line
uint8 do_something( void ) {}
with the above option enabled, the outline view is empty.
When I disable the option (and force a reconcile by typing some
whitespace), the outline view shows the function.
HTH,
Toni
--
Anton Leherbauer
Wind River CDT Team, Austria
|
|
|
|
| Re: Outline View and user-defines data types [message #177533 is a reply to message #177278] |
Thu, 28 September 2006 02:41  |
Eclipse User |
|
|
|
Originally posted by: christian.welzel.brosa.net
Hi Anton,
this works, but I think this is a bug in CDT.
Thank you,
Christian
"Anton Leherbauer" <anton.leherbauer@windriver.com> schrieb im Newsbeitrag
news:ef87l4$e73$1@utils.eclipse.org...
> Christian Welzel wrote:
>> Hi,
>>
>> i have a simple question. Is it possible to display user-defined data
>> types in the outline view? We have defined several data types, e.g.
>> uint8, uint16. If there is a function with this data types in the header,
>> outline doesn't display this function. (E.g. uint8 do_something(
>> void ) ).
>> I hope, anayone has an answer. Thanks.
>>
>> Christian
>
> I'd suggest to disable the option "Follow #include's when parsing working
> copies" under Preferences > C/C++.
> Disabling this option often improves the usability of the outline view.
>
> If I create a C file containing only the line
>
> uint8 do_something( void ) {}
>
> with the above option enabled, the outline view is empty.
> When I disable the option (and force a reconcile by typing some
> whitespace), the outline view shows the function.
>
> HTH,
> Toni
> --
> Anton Leherbauer
> Wind River CDT Team, Austria
|
|
|
Powered by
FUDForum. Page generated in 0.06741 seconds