Placing [[nodisard]] at the end of a function instead of the beginning
Hello,
Simple question, how can I have ReSharper suggest moving [[nodiscard]] to the end of a function instead of the beginning? I hate how busy it makes the header files using it at the start of the function.
Thank you.
Please sign in to leave a comment.
Hello,
Could you please clarify what you mean by “end of a function”? Do you prefer
int f [[nodiscard]] ();
to[[nodiscard]] int f();
?Sorry, I'm getting back so late. Yes, the former over the latter.
int f [[nodiscard]] ();
I've filed RSCPP-36556 to track this, but I've never seen this style used in a code base.