簡體   English   中英

clang-format:在返回類型后使用 __attribute__ 中斷

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM