commit | 9e8790c7654ae5dc6fcff73a6022eb9c0f618795 | [log] [tgz] |
---|---|---|
author | Ben Hamilton (Ben Gertzfield) <benhamilton@google.com> | Tue Jan 23 20:32:41 2024 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jan 23 20:33:47 2024 |
tree | 82b6cf208ae4dc999a07a4200371a2bb2909e189 | |
parent | 2d40bda9b44b069d279c8dcabcc0af20d70bd280 [diff] |
[Format] Fix detection of languages when reading from stdin (#79051) The code cleanup in #74794 accidentally broke detection of languages by reading file content from stdin, e.g. via `clang-format -dump-config - < /path/to/filename`. This PR adds unit and integration tests to reproduce the issue and adds a fix. Fixes: #79023 NOKEYCHECK=True GitOrigin-RevId: d813af73f70f6b2fd41621d640cc35e595b9da4c