On 4/2/23 22:18, juzhe.zh...@rivai.ai wrote:
OK, would you mind telling me some tool can help for formatting of .MD file?
Since clang-format only works on .cc/.h file.
No idea. I don't use clang-format. But I've also had 30+ years in this codebase, so most of its coding conventions are ones that I've internalized. When I do something outside GCC I struggle mightly to conform to other conventions.

Given how often this construct seems to appear, perhaps move it into a helper in the .cc file. That would seem to reduce code duplication and allow you to use clang-format.




I have asked many people how to format .MD file but I didn't get the answer.
So that's why you can see formatting of .MD file is not good. Unlike .cc/.h files.
Can you force clang-format to treat it like C++ code?

jeff

Reply via email to