Skip to content

Conversation

AntiTopQuark
Copy link
Contributor

mapleFU
mapleFU previously approved these changes Jan 23, 2024
Copy link
Member

@mapleFU mapleFU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@mapleFU
Copy link
Member

mapleFU commented Jan 23, 2024

Seems lint failed, would you mind run ./x.py format or using clang-format to format the edited file?

@AntiTopQuark
Copy link
Contributor Author

Seems lint failed, would you mind run ./x.py format or using clang-format to format the edited file?

done, thank you very much

@@ -168,7 +168,7 @@ struct StringInStatusOr<T, std::enable_if_t<sizeof(T) < sizeof(std::string)>> :
StringInStatusOr(StringInStatusOr<U>&& v) : BaseType(new std::string(*std::move(v))) {} // NOLINT
template <typename U, typename std::enable_if_t<!StringInStatusOr<U>::inplace, int> = 0>
StringInStatusOr(StringInStatusOr<U>&& v) // NOLINT
: BaseType((typename StringInStatusOr<U>::BaseType &&)(std::move(v))) {}
: BaseType((typename StringInStatusOr<U>::BaseType&&)(std::move(v))) {}
Copy link
Member

@mapleFU mapleFU Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @PragmaTwice 🤔 why would this file always get format?

Copy link
Member

@git-hulk git-hulk Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was caused by clang-format-16 behaving differently from clang-format-14, that said clang-format-16 will remove the space between the type and &&, but clang-format-14 won't do that.

@git-hulk git-hulk merged commit 0a2bb1a into apache:unstable Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants