Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for exact function in unwanted function check
check-unwanted-cpp-functions.py has false positives. The script reports `asprintf` as usage of `sprintf`. To prevent issues like this, modify the regex for checking functions so that we only report exact matches. BUG=b:320231979 TEST=`devtools/check-unwanted-cpp-functions.py --check_all_files` and check that there are no `sprintf` reports. Change-Id: Ieed8121b525e3e84ab3cc4414acd3db1535aad9c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5248447 Commit-Queue: Baili Deng <bailideng@google.com> Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com> Reviewed-by: Li-Yu Yu <aaronyu@google.com>
- Loading branch information