You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When .clang-format includes the setting Language: C, clang-format do not format header files (.h) and displays the message Configuration file(s) do(es) not support C++.
Adding // clang-format Language: C to the beginning of the header files solves the problem and the headers are formatted as expected, but this should be considered a workaround.
There should be an option for telling clang-format to treat all header files as C in order to prevent having to add the comment to all header files. In addition, the default language for header files should match the language set in the .clang-format file.