blob: 6a95bb63d10b377fa03d5425a7a8708fdbb132c0 [file] [log] [blame]
#!/bin/bash
# This script renames all the functions and the macros defined in
# absl/base/dynamic_annotations.{h,cc}.
#
# Chromium's dynamic_annotations live in //base/third_party/dynamic_annotations
# which conflict with Abseil's versions (ODR violations).
# In order to avoid problems in Chromium, this copy of Abseil has its own
# dynamic_annotations renamed.
# -------------------------- dynamic_annotations -------------------------
for w in \
GetRunningOnValgrind \
RunningOnValgrind \
ValgrindSlowdown \
; do
find absl/ -type f -exec sed -i "s/\b$w\b/Absl$w/g" {} \;
done