Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Re-factoring for "add extern"

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
sitnduck Posted - Jul 22 2024 : 08:30:59 AM
When I create a global variable in a CPP file, it would be nice to be able to generate an "extern" in the header file, e.g.:

CPP
int g_iMyGlobal = 0;

H
extern int g_iMyGlobal;

Apologies if this exists and I missed it!
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 14 2024 : 11:00:07 AM
That makes sense, and I just wanted to make sure that I understood what you were thinking properly here I have put in a feature request for this:

case=164869
sitnduck Posted - Aug 14 2024 : 07:53:09 AM
Yes, something like that, it's very similar to "Quick actions and re-factoring->Create Declaration". It would be an added "->Create Extern Declaration", and generates that line in the header.

Thank you!
feline Posted - Jul 23 2024 : 08:34:25 AM
I don't know of any command for this, so I don't think you have missed one

How would VA know you are planning on making this an extern? Or just offer the option on any file scope variable in a cpp file? Since being a file scope, so "global" variable doesn't mean its an extern variable, not something we would want to try to do automatically.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000