Files
pytorch/c10/test
Jacob Szwejbka d026ae7be6 Protect files that ET depends on to be pinned to c++17 (#169899)
Needed for https://github.com/pytorch/pytorch/issues/167822

ExecuTorch is still pinned to c++17 and will remain that way for the forseeable future. We take a dep on these headers and pytorch/pytorch wants to bump to c++20. This is a pretty minimal way to avoid the issue recommended by @r-barnes

Added a unittest with the version restricted and then added a new linter that I manually tested by modifying the files to use a c++20 feature and verified it died.

Previous version that went under review before I trashed the git history and broke the CLA job: https://github.com/pytorch/pytorch/pull/168204
Pull Request resolved: https://github.com/pytorch/pytorch/pull/169899
Approved by: https://github.com/larryliu0820
2025-12-09 22:59:44 +00:00
..
2025-11-18 14:31:49 +00:00