I need to add a branch circuit to an existing breaker panel which is framed in a finished wall. The circuit will be going to an in-wall junction box that will be added less than a foot to the right of the panel. There is a 2x6 stud along the right-side of the panel and after that is a wall cavity where the junction box will be cut into the wall. I can drill from inside the panel, through the sheet metal and through the stud in order to pass the NM cable, but I won't be able to enlarge the hole in the stud in order to insert a cable clamp (unless I cut a large hole in the wall to bore the hole in the stud to a larger diameter). So I was thinking I could get a snap-lock cable clamp and insert it into the hole on the panel side. The clamp will lock into the edge of the hole in the panel's sheet metal and will clamp the cable on the inside of the panel. But would it violate code having the clamping portion of the cable clamp on the inside of the panel?