[cfe-dev] Patch: clang_CXXMethod_isVirtual

Douglas Gregor dgregor at apple.com
Thu May 12 08:22:50 PDT 2011


On May 12, 2011, at 5:08 AM, Erik Verbruggen wrote:

> Hello,
> 
> Attached is a patch which adds the "clang_CXXMethod_isVirtual" to libclang. It is (very) similar to clang_CXXMethod_isStatic.
> 
> I tried to add test-cases, but I could not find any for clang_CXXMethod_isStatic. So, are they needed, and if so, is there an example I can use?

Usually, we teach c-index-test to query this information and print it out, so that we can check for that output in one of the test/Index/* tests. 

But, your patch looks good. I've committed it as r131230, with the addition of this function to the two "exports" files in tools/libclang. Thanks!

	- Doug




More information about the cfe-dev mailing list