I just cleaned lawnmower carburator with that stuff. It would probably be ok to use inside of barrels but may take a toll on certain gun finishes.
The Chinese carburator was mostly plastic so the stuff might not be that harsh, however, one must remember Glock frames are made out of plastic so that stuff can be quite tough and durable