[roll pigweed] pw_span: Switch from std::span to pw::span
This changes uses of std::span to pw::span. No changes are made to build
dependencies in this commit.
This change was made with the following shell script:
#!/bin/bash
readonly FILES="$(git ls-files '*.rst' '*.md' '*.h' '*.cc' '*.py')"
readonly PW_NS_FILES="$(git grep -l 'namespace pw\>' | grep -v generate_decoding_test_data.cc)"
echo "Updating #includes"
sed -i --follow-symlinks \
's/#include <span>/#include "pw_span\/span.h"/g' ${FILES}
for name in span as_bytes as_writable_bytes dynamic_extent; do
echo Renaming std::$name to pw::$name
sed -i --follow-symlinks "s/std::$name/pw::$name/g" ${FILES}
sed -i --follow-symlinks "s/pw::$name/$name/g" ${PW_NS_FILES}
sed -i --follow-symlinks "s/using $name;//" ${PW_NS_FILES}
done
git checkout pw_span
pw format -b origin/main --fix
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98264
https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: 175770017a7e238..6c5df358e638a6f
Roller-URL: https://ci.chromium.org/b/8810067541979021697
Cq-Cl-Tag: roller-builder:pigweed-zephyr-roller
Cq-Cl-Tag: roller-bid:8810067541979021697
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I2418d479771ad8869987b2e691d0a4d5b76219ea
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/100192
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed