Handle trailing commas in cppref codemod
commita8f800c3feaac8da1479d216d6053e3340568104
authorShai Szulanski <iahs@meta.com>
Fri, 17 Feb 2023 17:47:23 +0000 (17 09:47 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Feb 2023 17:47:23 +0000 (17 09:47 -0800)
tree75a634c90f206834905aae9692805eac53be0886
parent61ab0e31c7281a6a109c4057f2644fbf46c65b4e
Handle trailing commas in cppref codemod

Summary: The grammar allows an extra comma anywhere in the middle of the whitespace, so add it to the list of characters expanded over.

Reviewed By: Mizuchi

Differential Revision: D43374990

fbshipit-source-id: ff9385f83d68fda9172c6314e352b73cf781da64
third-party/thrift/src/thrift/compiler/codemod/cppref_to_structured_test.py
third-party/thrift/src/thrift/compiler/codemod/file_manager.cc
third-party/thrift/src/thrift/compiler/codemod/remove_cpp_noexcept_move_test.py