[cfe-commits] r94391 - in /cfe/trunk/tools/CIndex: CIndex.cpp CXCursor.cpp

Douglas Gregor dgregor at apple.com
Mon Jan 25 07:51:41 PST 2010


On Jan 24, 2010, at 4:40 PM, Daniel Dunbar wrote:

> Author: ddunbar
> Date: Sun Jan 24 18:40:30 2010
> New Revision: 94391
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=94391&view=rev
> Log:
> CIndex: Don't crash when visitor passes null child statements, and sprinkle some
> asserts in cursor construction functions to make this more obvious.

Silly me. Thanks!

> Doug, please check. c-index-test would previously crash on this code:
> --
> for(;;) {}
> --
> Do we need a custom visit of the for statement to cover the variable
> declarations?


Yes. And also for the condition variables of if/switch/while. I'm planning to do those now.

	- Doug



More information about the cfe-commits mailing list