Unverified Commit d813af73 authored by Ben Hamilton (Ben Gertzfield)'s avatar Ben Hamilton (Ben Gertzfield) Committed by GitHub
Browse files

[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
parent eabddf22
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment