File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,15 @@ EXIT_CODE=0
21
21
22
22
# absl has a string_view but there is also std::string_view.
23
23
# Use the std::string_view throughout.
24
- find verible -name " *.h" -o -name " *.cc" | \
25
- xargs grep -n " absl::string_view"
24
+ find verible -name " *.h" -o -name " *.cc" | xargs grep -n " absl::string_view"
25
+ if [ $? -eq 0 ]; then
26
+ echo " ::error:: use std::string_view instead of absl::string_view"
27
+ echo
28
+ EXIT_CODE=1
29
+ fi
30
+
31
+ # ... same for absl string_view dependency.
32
+ find verible -name BUILD | xargs grep -n absl/strings:string_view
26
33
if [ $? -eq 0 ]; then
27
34
echo " ::error:: use std::string_view instead of absl::string_view"
28
35
echo
Original file line number Diff line number Diff line change @@ -665,7 +665,6 @@ cc_library(
665
665
hdrs = ["simple-zip.h" ],
666
666
deps = [
667
667
"//third_party/portable_endian" ,
668
- "@abseil-cpp//absl/strings:string_view" ,
669
668
"@zlib" ,
670
669
],
671
670
)
You can’t perform that action at this time.
0 commit comments