T O P I C R E V I E W |
Jastonite |
Posted - May 30 2012 : 4:28:45 PM Can there be an option to check the spelling of string arguments to C/C++ preprocessor macros? I am most concerned about the strings I present to the user, and those strings are most often passed to the _T() macro. Currently I am using a separate Visual Studio Extension to check those strings, but I would prefer not to run two extensions to check spelling. |
4 L A T E S T R E P L I E S (Newest First) |
accord |
Posted - Jun 01 2012 : 7:20:48 PM Thank you for the explanation. I have put in a request for an option to be able to turn this on to see what the developers make of it:
case=67001 |
Jastonite |
Posted - Jun 01 2012 : 10:46:02 AM Correction, I forgot a symbol in my example. It shoud read: const TCHAR* sztGreeting = _T("Helllo"); |
Jastonite |
Posted - Jun 01 2012 : 10:30:41 AM I am referring to the documentation under "Preprocessor Macros" http://www.wholetomato.com/products/features/misspelled.asp
So, any string passed to the _T() macro will not be checked. ex: TCHAR sztGreeting = _T("Helllo");
The spell checking works as advertised, but I find it unfortunate that it will not check strings passed to preprocessor macros. I presume there was some justification for that design decision (since it is specifically mentioned in the documentation), but it would be nice if there were an option to enable that kind of spell checking. |
accord |
Posted - May 31 2012 : 7:36:25 PM Can you please post an example macro where spell checking don't work? |