precisely specify the regexps of our unused-function exemptions
Summary:
The previous values were not obviously regular expressions, but they
were evaluated as such. Thus, they could have failed under a few
circumstances:
* the same path exists under a different repository (^ at the
beginning protects against this)
* the file matches with the prefix, any character, and then cpp, and
then has some additional suffix ($ at the end and \. protects against this)
Test Plan: Relied on CI.
Reviewers: seemethere
Subscribers:
Tasks:
Tags:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79313
Approved by: https://github.com/malfet
Author
Michael Andreas Dagitses