Skip to content

Commit

Permalink
Update the mined words to support omitting things.
Browse files Browse the repository at this point in the history
Don't include `reserved` as something generated as it would take special casing
on the test file generation.

Also regenerated all the files with current words.
  • Loading branch information
thomasvl committed Jul 26, 2023
1 parent 7009bd7 commit 9dc83be
Show file tree
Hide file tree
Showing 13 changed files with 3,266 additions and 3,680 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ Tests/SwiftProtobufPluginLibraryTests/DescriptorTestData.swift: build ${PROTOC_G
# = Remove any comments from the line.
# = Break each such line into words (stripping all punctuation)
# = Remove words that differ only in case
# = Remove anything that will cause proto parsing issues (things named "reserved")
#
# Selecting lines with 'public', 'func' or 'var' ensures we get every
# public protocol, struct, enum, or class name, as well as every
Expand All @@ -445,6 +446,7 @@ Protos/mined_words.txt: Sources/SwiftProtobuf/*
tr " " "\n" | \
sed -e 's/^_//' | \
sort -uf | \
grep -vE '(reserved)' | \
grep '^[a-zA-Z_]' > $@

# Build some proto files full of landmines
Expand Down
Loading

0 comments on commit 9dc83be

Please sign in to comment.