From b1547a387ef9e6fd75bc4509408ab03238d85e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 21 Jul 2021 20:13:38 +0200 Subject: [PATCH] astyle formatting [ci skip] --- cfg/boost.cfg | 4 ++-- cfg/qt.cfg | 4 ++-- cfg/wxwidgets.cfg | 4 ++-- lib/library.cpp | 5 ++++- lib/symboldatabase.h | 8 ++++---- test/testautovariables.cpp | 3 +-- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/cfg/boost.cfg b/cfg/boost.cfg index 9ed67d79a..1cc2f3824 100644 --- a/cfg/boost.cfg +++ b/cfg/boost.cfg @@ -81,7 +81,7 @@ - + @@ -90,7 +90,7 @@ - + diff --git a/cfg/qt.cfg b/cfg/qt.cfg index e25a451d4..398544377 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -5228,10 +5228,10 @@ - + - + diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index e4a316e7d..6a689f18b 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -5235,10 +5235,10 @@ - + - + diff --git a/lib/library.cpp b/lib/library.cpp index 57eefa9f5..05423828f 100644 --- a/lib/library.cpp +++ b/lib/library.cpp @@ -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 { diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index e40811e15..9acdd18a5 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -1205,17 +1205,17 @@ public: nonneg int pointer; ///< 0=>not pointer, 1=>*, 2=>**, 3=>***, etc nonneg int constness; ///< bit 0=data, bit 1=*, bit 2=** Reference reference = Reference::None; ///< Is the outermost indirection of this type a reference or rvalue - ///< reference or not? pointer=2, Reference=LValue would be a T**& + ///< reference or not? pointer=2, Reference=LValue would be a T**& const Scope* typeScope; ///< if the type definition is seen this point out the type scope const ::Type* smartPointerType; ///< Smart pointer type const Token* smartPointerTypeToken; ///< Smart pointer type token const Library::SmartPointer* smartPointer; ///< Smart pointer const Library::Container* container; ///< If the type is a container defined in a cfg file, this is the used - ///< container + ///< container const Token* containerTypeToken; ///< The container type token. the template argument token that defines the - ///< container element type. + ///< container element type. std::string originalTypeName; ///< original type name as written in the source code. eg. this might be "uint8_t" - ///< when type is CHAR. + ///< when type is CHAR. ValueType() : sign(UNKNOWN_SIGN), diff --git a/test/testautovariables.cpp b/test/testautovariables.cpp index dd93b9694..977d25453 100644 --- a/test/testautovariables.cpp +++ b/test/testautovariables.cpp @@ -1408,8 +1408,7 @@ private: ASSERT_EQUALS("", errout.str()); } - void returnReference22() - { + void returnReference22() { check("int& f() {\n" " std::unique_ptr p = std::make_unique(1);\n" " return *p;\n"