microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.53k stars 1.56k forks source link

clang-format can fail for certain files after running clang-tidy fix code actions #10034

Open sean-mcmanus opened 2 years ago

sean-mcmanus commented 2 years ago

I've reproed it with 3 different internal files so far.

sean-mcmanus commented 2 years ago

3 of the repro files stoppeed reproing for some reason, and the one remaining case was worked around via copying the command line from the output window and running it in the terminal. So the command line we call is good -- I don't know what could be causing it to fail when we do the processing via stdin/stdout during formatting. The file was large and with many edits -- not sure if other users are hitting this or not.