Skip to content

Commit

Permalink
Merge pull request #2341 from hzeller/feature-20250121-stray-absl-str…
Browse files Browse the repository at this point in the history
…ingview

Fix stray absl string_view dependency.
  • Loading branch information
hzeller authored Jan 21, 2025
2 parents e90ef18 + 4c74243 commit 931a691
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/bin/check-potential-problems.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ EXIT_CODE=0

# absl has a string_view but there is also std::string_view.
# Use the std::string_view throughout.
find verible -name "*.h" -o -name "*.cc" | \
xargs grep -n "absl::string_view"
find verible -name "*.h" -o -name "*.cc" | xargs grep -n "absl::string_view"
if [ $? -eq 0 ]; then
echo "::error:: use std::string_view instead of absl::string_view"
echo
EXIT_CODE=1
fi

# ... same for absl string_view dependency.
find verible -name BUILD | xargs grep -n absl/strings:string_view
if [ $? -eq 0 ]; then
echo "::error:: use std::string_view instead of absl::string_view"
echo
Expand Down
1 change: 0 additions & 1 deletion verible/common/util/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ cc_library(
hdrs = ["simple-zip.h"],
deps = [
"//third_party/portable_endian",
"@abseil-cpp//absl/strings:string_view",
"@zlib",
],
)
Expand Down

0 comments on commit 931a691

Please sign in to comment.