clang-format doesn't always include space after WARN_UNUSED_RESULT |
||
Issue description
If the type has leading :: then no space is included between the tokens.
As a contrived example:
// OK
WARN_UNUSED_RESULT std::string* Foo(int x) {
return nullptr;
}
// Expecting a space after WARN_UNUSED_RESULT
WARN_UNUSED_RESULT::std::string* Foo(int x) {
return nullptr;
}
,
Feb 13 2017
Yeah, probably not very common situation. In the case of WARN_UNUSED_RESULT specifically, it is generally seen at the end of a function signature rather than the start. And leading a leading "::" isn't that common outside of tests (in this case it came up on ::testing::AssertionResult).
,
Oct 26 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by dcheng@chromium.org
, Feb 13 2017