More checks in presubmit for usage of banned C++ features

To avoid banned functions and features in C++ from being used
accidentally, add more presubmit checks.

This tests most of what is currently banned from C++11/14 except
for threads and thread_local. Those were excluded because
of a difficulty in expressing when they were ok and when not
and because of too many false positives.

This change follows a discussion on the cxx mailing list about how
to avoid that people use banned functions from pure ignorance.

Change-Id: I585c05efd72e62d2148be90a3088aa99c6279646
Reviewed-by: Daniel Cheng <>
Reviewed-by: danakj <>
Reviewed-by: Peter Kasting <>
Commit-Queue: Daniel Bratell <>
Cr-Commit-Position: refs/heads/master@{#644978}
1 file changed