We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3d9b37 commit 2a692d2Copy full SHA for 2a692d2
llvm/include/llvm/DebugInfo/LogicalView/Core/LVOptions.h
@@ -41,7 +41,9 @@ namespace logicalview {
41
// Generate get and set 'std::string' functions.
42
#define STD_STRING_FUNCTION(FAMILY, FIELD) \
43
std::string get##FAMILY##FIELD() const { return FAMILY.FIELD; } \
44
- void set##FAMILY##FIELD(std::string FIELD) { FAMILY.FIELD = FIELD; } \
+ void set##FAMILY##FIELD(std::string FIELD) { \
45
+ FAMILY.FIELD = std::move(FIELD); \
46
+ } \
47
void reset##FAMILY##FIELD() { FAMILY.FIELD = ""; }
48
49
// Generate get and set 'std::set' functions.
0 commit comments