Bug 1432410 - Add tests in tree to make sure we don't regress with clang-tidy on static-analisys. Tests wrote in part by :sylvestre. r=gps
MozReview-Commit-ID: IWxzKfWNIHG
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#include "structures.h"
|
||||
|
||||
extern const std::string& constReference();
|
||||
|
||||
void foo() {
|
||||
const std::string UnnecessaryCopy = constReference();
|
||||
}
|
||||
Reference in New Issue
Block a user