Hi, Attached patch refactors the semantic check of some thread safety attributes which share same semantic check function that uses a bool parameter to turn on / off different checks for different attributes. This patch removes the bool parameter from the functions by extracting common checks and providing a dedicated check function for each thread safety attribute.
This will make the code easier to read and make the semantic handlers consistent across all attributes so we can automate some of the checks through tblgen (which I plan to do in next patch). Please review thanks! Michael
SemaAttr.patch
Description: SemaAttr.patch
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
