Skip to content

Revert fix for #10831#4631

Merged
danmar merged 5 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Rev10831
Dec 18, 2022
Merged

Revert fix for #10831#4631
danmar merged 5 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Rev10831

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/symboldatabase.cpp Outdated
@chrchr-github
Copy link
Copy Markdown
Collaborator Author

This will reintroduce internalAstErrors for

struct A { std::string s; };
void f(A& a) {
   const auto b = [](const decltype(a.s)::value_type& v) {
      return 0;
   };
}

and

struct A { std::string s; };
void f(A& a) {
   const auto b { [](const decltype(a.s)::value_type& v) {
      return 0;
   } };
}

However the AST is incorrect as it is now. Maybe we should skip over lambdas in validateAST()?

@danmar danmar merged commit 76c2807 into cppcheck-opensource:main Dec 18, 2022
@chrchr-github chrchr-github deleted the chr_Rev10831 branch February 1, 2023 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants