Insert includes after license header in thrift codemods
commit0f138536d2d6fbd6e083ac26fd6b135625b17fa1
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)
tree059c27d6633dec2c50df792241e15f59ffb6cd95
parenta8f800c3feaac8da1479d216d6053e3340568104
Insert includes after license header in thrift codemods

Summary: Add new include blocks before the first definition to avoid the license header

Reviewed By: Mizuchi, vitaut

Differential Revision: D43331162

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