Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么此命令不生成在大括号前拆分行的源代码?
echo 'main(){}' | clang-format -style='{BreakBeforeBraces: Allman}'
我刚收到#llvmIRC 频道的回复:
#llvm
jyknight $ 因为它适合一行。 jyknight $ $ echo 'main(){foo(); 酒吧();}' | clang-format -style='{BreakBeforeBraces: Allman}'