[英]clang-format: Break after return type with __attribute__
我在.clang-format
中設置了以下選項:
AlwaysBreakAfterReturnType: All
但是,如果我有一個 function 的形式
int __attribute__((deprecated))
someFunc(void);
它被重新格式化為
int __attribute__((deprecated)) someFunc(void);
有沒有辦法讓 clang-format 讓AlwaysBreakAfterReturnType
與__attribute__
一起工作?
這是版本 14.0.0。
看起來好像
int
someFunc(void) __attribute__((deprecated));
同樣有效,並且適用於 clang 格式。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.