I recently wrote a macro that opens and inserts comments in every single function in my VS Solution. The reason for this is because we are going to be implementing a trace of all of the functions called for each process. We aren't sure yet what the least "expensive" way to do this would be (from a performance standpoint), but that isn't the purpose of this post.
What I am having trouble with is the ability to access CodeElements other than functions and namespaces, etc. Specifically, I need to be able to access the "getter" and "setter" properties for private class variables. Because this isn't Java, and you don't need to write specific get()/set() methods, my macro that looks for functions doesn't cut it. I noticed there was a CodeElement.Kin d that was a vsCMPart.vsCMPa rtPropertySetSt mt but that wasn't working for whatever reason. Anyway, I would definitely appreciate any words of wisdon that you felt you could contribute.
Thank you
What I am having trouble with is the ability to access CodeElements other than functions and namespaces, etc. Specifically, I need to be able to access the "getter" and "setter" properties for private class variables. Because this isn't Java, and you don't need to write specific get()/set() methods, my macro that looks for functions doesn't cut it. I noticed there was a CodeElement.Kin d that was a vsCMPart.vsCMPa rtPropertySetSt mt but that wasn't working for whatever reason. Anyway, I would definitely appreciate any words of wisdon that you felt you could contribute.
Thank you
Comment