From b7c4aeca160b0e857e1432b1ccadb52de2233126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 6 Feb 2021 12:27:51 +0100 Subject: [PATCH] astyle formatting --- lib/tokenize.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index acaeeb0f3..8428093cb 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -1768,14 +1768,12 @@ namespace { std::set recordTypes; std::set baseTypes; - ScopeInfo3 *addChild(Type type, const std::string &name, const Token *bodyStart, const Token *bodyEnd) - { + ScopeInfo3 *addChild(Type type, const std::string &name, const Token *bodyStart, const Token *bodyEnd) { children.emplace_back(this, type, name, bodyStart, bodyEnd); return &children.back(); } - bool hasChild(const std::string &name) const - { + bool hasChild(const std::string &name) const { for (const auto & child : children) { if (child.name == name) return true; @@ -1783,8 +1781,7 @@ namespace { return false; } - void printOut(const std::string & indent = " ") const - { + void printOut(const std::string & indent = " ") const { std::cerr << indent << "type: " << (type == Global ? "Global" : type == Namespace ? "Namespace" : type == Record ? "Record" : @@ -1809,8 +1806,7 @@ namespace { } } - bool findTypeInBase(const std::string &scope) const - { + bool findTypeInBase(const std::string &scope) const { if (baseTypes.find(scope) != baseTypes.end()) return true; return false;