================
@@ -208,6 +208,14 @@ NestedNameSpecifierLocBuilder(const
NestedNameSpecifierLocBuilder &Other)
BufferCapacity);
}
+NestedNameSpecifierLocBuilder::NestedNameSpecifierLocBuilder(
+ NestedNameSpecifierLocBuilder &&Other)
+ : Representation(std::move(Other.Representation)), Buffer(Other.Buffer),
+ BufferSize(Other.BufferSize), BufferCapacity(Other.BufferCapacity) {
+ Other.Buffer = nullptr;
+ Other.BufferCapacity = Other.BufferSize = 0;
----------------
cor3ntin wrote:
nit: you could use std::exchange here
https://github.com/llvm/llvm-project/pull/180484
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits