fune/tools/clang-tidy/test/performance-unnecessary-copy-initialization.cpp

7 lines
141 B
C++

#include "structures.h"
extern const std::string& constReference();
void foo() {
const std::string UnnecessaryCopy = constReference();
}