[英]clang-format: empty line before and after control statements
是否有可能實現在控制狀態(for、if 等)之前和之后插入空行?
例如,我有以下源代碼:
if(bCondition)
{
// some code
}
for(int i : vecOfInts)
{
// some code
}
if(bAnotherCondition)
{
// some code
}
這就是我想要的:
if(bCondition)
{
// some code
}
for(int i : vecOfInts)
{
// some code
}
if(bAnotherCondition)
{
// some code
}
閱讀官方文檔https://clang.llvm.org/docs/ClangFormatStyleOptions.html ,似乎沒有這個選項。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.