Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Outline View and user-defines data types
Outline View and user-defines data types [message #177143] Fri, 22 September 2006 09:27 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #177292 is a reply to message #177143] Mon, 25 September 2006 06:55 Go to previous messageGo to next message
Eclipse UserFriend
Christian,

I could not reproduce your problem with the following snippet:

===========================
typedef char uint8 ;


uint8 getValue() {

return 27 ;

}


===========================

I suggest that you create a minimal example which is reproducable. You can
post it here or even create a bugzilla for this.


Cheers,


Norbert
Re: Outline View and user-defines data types [message #177533 is a reply to message #177278] Thu, 28 September 2006 02:41 Go to previous message
Eclipse UserFriend
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
Previous Topic:CDT+Zylin plugins on Eclipse
Next Topic:Extending CDT
Goto Forum:
  


Current Time: Sun Nov 09 17:19:35 EST 2025

Powered by FUDForum. Page generated in 0.06741 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top