codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.92k stars 362 forks source link

Macro makes Spading fails #361

Open manutoo opened 8 years ago

manutoo commented 8 years ago

Environment

I'm using Macros and Spade shows them like they were functions, and thus doesn't show the function containing the Macros, making Spade nearly useless

Steps to recreate

2 different kinds of macro :

define ForLoopD(x, NbStep) for (int x = 0; x < (NbStep); ++x)

usage : ForLoopD (j, 10) { /* do something */ }

possible fix (?) : if there's no parameter before an unknown name, it's probably a macro and not a function

define Ini C3dEngine::m_pIniFile

usage : Ini->SetValue(Section, Entry, 1);

possible fix : no idea :P

codecadwallader commented 8 years ago

Thanks for reporting the issue. There currently isn't any special handling logic for C++ macros so that will require new implementation.

manutoo commented 8 years ago

Would it be long to implement ? (ie: is it something I could hope to see someday ? :) )

codecadwallader commented 8 years ago

It's never bad to hope, but I don't make any promises. If you're really interested in this feature, I recommend diving in and seeing what you can learn/do to speed it along. http://www.codemaid.net/contribute has some introductory information. :)

Darky-Lucera commented 7 years ago

Same here, sometimes Spade (C++, VS2015 u3, CodeMaid 10.3) is changing some methods by macros inside them. Do you know is there is someone working on this?

codecadwallader commented 7 years ago

Not to my knowledge, please feel free to help pitch in!