Can verify somewhat relative paths: ./test from \hphp
commit969157f3c67b8abe1ee94270d7700b61f8a40c01
authorAlma Thaler <almathaler@fb.com>
Thu, 28 Jul 2022 21:44:17 +0000 (28 14:44 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 28 Jul 2022 21:44:17 +0000 (28 14:44 -0700)
tree8aa1d2aad0c4401835a45925f9605343c8ea664d
parent0715cecb2dcf4790bb7f4e3f639a01f5bf68481b
Can verify somewhat relative paths: ./test from \hphp

Summary:
Previously verify failed on 753 files when run on `./test`:
```
~/fbsource/fbcode/hphp]$ buck2 run hack/src/hackc:hackc -- verify -l -a ./test
```
(the problem is using the `./` in the path rather than just `test`)
Because the assembler couldn't tokenize `HHAS` that looks like this:
```
.includes {
  ./test/slow/thrift/common.inc
}
```
So here we modify the closure that assembles `includes`, add an `expect_decl_into_ffi_str` method, and modify the decl regex.

Reviewed By: aorenste

Differential Revision: D38135736

fbshipit-source-id: 92321544c8fe2d9e752f11a9ac4468a8c4b431f1
hphp/hack/src/hackc/hackc/assemble.rs