Skip to content
Snippets Groups Projects
Commit 60b6cc5b authored by Jan Trávníček's avatar Jan Trávníček
Browse files

clang-tidy: fix naming declaration vs definition

parent 65422509
No related branches found
No related tags found
1 merge request!179C casts to C++ casts redesign
......@@ -18,7 +18,7 @@ protected:
public:
virtual ~Value ( ) noexcept = default;
 
std::shared_ptr < abstraction::Value > clone ( abstraction::TypeQualifiers::TypeQualifierSet typeQualifierSet, bool isTemporary );
std::shared_ptr < abstraction::Value > clone ( abstraction::TypeQualifiers::TypeQualifierSet typeQualifiers, bool isTemporary );
 
virtual std::shared_ptr < abstraction::Value > getProxyAbstraction ( );
 
......@@ -42,7 +42,7 @@ class ValueReference : public Value {
std::shared_ptr < abstraction::Value > asValue ( bool move, bool isTemporary ) override;
 
public:
ValueReference ( std::shared_ptr < abstraction::Value > value, abstraction::TypeQualifiers::TypeQualifierSet typeQualifiers, bool isTemporary );
ValueReference ( const std::shared_ptr < abstraction::Value > & value, abstraction::TypeQualifiers::TypeQualifierSet typeQualifiers, bool isTemporary );
 
std::shared_ptr < abstraction::Value > getProxyAbstraction ( ) override;
 
......
......@@ -2,14 +2,14 @@
 
namespace abstraction {
 
std::ostream & operator << ( std::ostream & os, TypeQualifiers::TypeQualifierSet arg ) {
std::ostream & operator << ( std::ostream & os, TypeQualifiers::TypeQualifierSet typeQualifiers ) {
os << "[ ";
bool first = true;
if ( TypeQualifiers::isConst ( arg ) )
if ( TypeQualifiers::isConst ( typeQualifiers ) )
os << ( first ? "" : ", " ) << "Constant", first = false;
if ( TypeQualifiers::isLvalueRef ( arg ) )
if ( TypeQualifiers::isLvalueRef ( typeQualifiers ) )
os << ( first ? "" : ", " ) << "LValue reference", first = false;
if ( TypeQualifiers::isRvalueRef ( arg ) )
if ( TypeQualifiers::isRvalueRef ( typeQualifiers ) )
os << ( first ? "" : ", " ) << "RValue reference", first = false;
os << " ]";
return os;
......
......@@ -58,7 +58,7 @@ public:
return res;
}
 
friend std::ostream & operator << ( std::ostream & os, TypeQualifierSet typeQualifierSet );
friend std::ostream & operator << ( std::ostream & os, TypeQualifierSet typeQualifiers );
};
 
} /* namespace abstraction */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment