publish: add cpp trap1

generated from commit 913a235073d8ce514be8a2b1691544ddc8fa07d5