In Virginia we have our own versions of the 2012 ICC Codes
The VCC (Virginia Construction Code) adopts the VRC (Virginia Residential Code) for all R5 residential buildings & their accessory structures.
The VCC includes section 310.8.1
To add requirements not included in the VRC prescriptive or performance provisions.
VCC 310.8.1 Additional requirements.
Methods of construction, materials, systems, equipment or components for Group R-5 structures not addressed by prescriptive or performance provisions of the IRC shall comply with applicable IBC requirements.
1210.4 Toilet room location.
Toilet rooms shall not open directly into a room used for the preparation of food for service to the public.
Leading me to think a residential inspector can require compliance with the VCC when food is served to the public, such as a bed & breakfast in a R-5 use group but not a private single family home.