File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ inline std::uint64_t createIdentifier(const CppAstNode& astNode_)
183183
184184 res
185185 .append (astNode_.astValue ).append (" :" )
186+ .append (std::to_string (astNode_.mangledNameHash )).append (" :" )
186187 .append (std::to_string (
187188 static_cast <SymbolTypeInt>(astNode_.symbolType ))).append (" :" )
188189 .append (std::to_string (
Original file line number Diff line number Diff line change @@ -357,10 +357,11 @@ TEST_F(CppParserTest, Record)
357357 {
358358 case -1 :
359359 EXPECT_TRUE (
360- // Compiler generated assignment operator return value.
361- n.astType == model::CppAstNode::AstType::ReturnTypeLoc ||
362- // TODO: What's this? Maybe a compiler generated copy constructor
363- // parameter's type? Then why isn't this a ParameterTypeLoc?
360+ // TODO: investigate the type of this. It is possibly the parameter of a
361+ // compiler generated copy constructor or assignment operator.
362+ // The type should also be visible as a return type of the compiler generated
363+ // assignment operator.
364+ n.astType == model::CppAstNode::AstType::ParameterTypeLoc ||
364365 n.astType == model::CppAstNode::AstType::TypeLocation);
365366 break ;
366367
You can’t perform that action at this time.
0 commit comments