CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

IDE: Autocomplete for members of struct - pointer access ?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pet007



Joined: 25 Jan 2023
Posts: 21

View user's profile Send private message

IDE: Autocomplete for members of struct - pointer access ?
PostPosted: Sun Oct 13, 2024 3:39 am     Reply with quote

Hello,
is here any chance, that IDE is able to recognize (autocomplete via CTRL+space) members of object (structure) accessed via pointer ? This one is working only for non-pointer access to the object (structure).
Thanks.

See simple example.
Code:
typedef struct {
 u8 *buf;
 u8 tm;
} tTest;

tTest tObj;

void main()
{       
   u8 l_buf[8];   
   tTest* pTest = &tObj;   
   
   pTest->buf = l_buf;             // <- autocomplete here
   pTest->tm = 0;                  // <- autocomplete here
Ttelmah



Joined: 11 Mar 2010
Posts: 19529

View user's profile Send private message

PostPosted: Tue Oct 15, 2024 3:03 am     Reply with quote

I think you would have to ask CCS, but it is unlikely. As far as the IDE is
concerned, it is a pointer, and it does not know 'what to'. That was a feature
that Visual Studio used not to do, but was added about ten years ago.
CCS might well consider adding it to a future update, if you point this out.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group