[infra] Clone Presubmit rule for banned APIs and adapt for C++

First rule will help avoid regressions of:
https://skia-review.googlesource.com/c/skia/+/585746

Based on:
https://github.com/google/skia-buildbot/blob/59b0489a4d464c274e278425ebbda34f8afc5dd4/PRESUBMIT.py#L88-L158

Change-Id: I9b5b2169c8ae3a409b75db0e5d762bed5f2b68ca
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/586896
Reviewed-by: John Stiles <johnstiles@google.com>
Reviewed-by: Ravi Mistry <rmistry@google.com>
1 file changed