You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
Mordachai
Posted - Aug 16 2016 : 11:14:52 AM Refactor is able to add the needed include file on demand. It can sense when a known symbol isn't in the current scope, and one option is to add the include.
It would also be really useful / time-saving / exactly the sort of function VA excels at if it offered to add the necessary namespace qualifiers as well.
So - it detects a symbol is known, but not in scope. It could then detect that the scope is known, but in a different name space (vs. not being included at all). If in another name space, then one of the refactors could be "qualify name".
A common scenario for me might be to have a bunch of char-type dependent "smart" function overloads in namespace Toolbox::SmartChar.
So when I type:
get_length(pszName)
VA's refactor menu could include: "Add Include" "Fully Qualify Name" "Introduce Namespace into local scope" "Introduce Namespace into file scope"
Fully Qualify name would result in:
Toolbox::SmartChar::get_length(pszName)
Add include - does what it always has (and maybe it's a default pref for whether that also fully qualifies the name for me by default?)
Introduce Namespace... add:
using namespace Toolbox::SmartChar;
for me - at various scopes (local being the most local, file being after include files, but before everything else...
3 L A T E S T R E P L I E S (Newest First)
accord
Posted - Oct 27 2016 : 11:56:00 AM Thank you, I have added your interest to the case.