parent
d2843b70ca
commit
b1547a387e
|
@ -1508,7 +1508,10 @@ bool Library::isimporter(const std::string& file, const std::string &importer) c
|
||||||
return (it != mImporters.end() && it->second.count(importer) > 0);
|
return (it != mImporters.end() && it->second.count(importer) > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Library::isSmartPointer(const Token* tok) const { return detectSmartPointer(tok); }
|
bool Library::isSmartPointer(const Token* tok) const
|
||||||
|
{
|
||||||
|
return detectSmartPointer(tok);
|
||||||
|
}
|
||||||
|
|
||||||
const Library::SmartPointer* Library::detectSmartPointer(const Token* tok) const
|
const Library::SmartPointer* Library::detectSmartPointer(const Token* tok) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -1408,8 +1408,7 @@ private:
|
||||||
ASSERT_EQUALS("", errout.str());
|
ASSERT_EQUALS("", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void returnReference22()
|
void returnReference22() {
|
||||||
{
|
|
||||||
check("int& f() {\n"
|
check("int& f() {\n"
|
||||||
" std::unique_ptr<int> p = std::make_unique<int>(1);\n"
|
" std::unique_ptr<int> p = std::make_unique<int>(1);\n"
|
||||||
" return *p;\n"
|
" return *p;\n"
|
||||||
|
|
Loading…
Reference in New Issue