astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2021-07-21 20:13:38 +02:00
parent d2843b70ca
commit b1547a387e
6 changed files with 15 additions and 13 deletions

View File

@ -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);
}
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
{

View File

@ -1408,8 +1408,7 @@ private:
ASSERT_EQUALS("", errout.str());
}
void returnReference22()
{
void returnReference22() {
check("int& f() {\n"
" std::unique_ptr<int> p = std::make_unique<int>(1);\n"
" return *p;\n"