[webkit-dev] Tagged assertions...

Said Abou-Hallawa sabouhallawa at apple.com
Thu Nov 6 12:20:06 PST 2014


These assertions can’t be uniquely identified if they are repeated in the same function

ASSERT(false);
ASSERT_NOT_REACHED();

And more importantly the same function can have the same assertion repeated in multiple places 

void function()
{
	int result = 0;

	result += someFunction();
	ASSERT(result > 0);
	result += anotherFunction();
	ASSERT(result > 0);
}

I am not saying we have a problem that we have to fix.  I am just saying if we need to uniquely identify the bugs related to a specific assertion easily or we need to automate the linkage between the assertions and Bugzailla, we need tags for the assertions.


More information about the webkit-dev mailing list