fix #10068 (typedef not replaced when namespace is involved)#3009
Merged
danmar merged 5 commits intocppcheck-opensource:mainfrom Jan 5, 2021
IOBYTE:main
Merged
fix #10068 (typedef not replaced when namespace is involved)#3009danmar merged 5 commits intocppcheck-opensource:mainfrom IOBYTE:main
danmar merged 5 commits intocppcheck-opensource:mainfrom
IOBYTE:main
Conversation
Collaborator
|
Thanks a lot. The additional findings are expected - there is one missing though which appears with the conversion to #include <memory>
#include <vector>
namespace clangimport {
class AstNode;
typedef std::shared_ptr<AstNode> AstNodePtr;
//using AstNodePtr = std::shared_ptr<AstNode>;
class AstNode {
public:
AstNode()
{}
private:
void createScope(const std::vector<AstNodePtr> &children);
};
}
void clangimport::AstNode::createScope(const std::vector<AstNodePtr> & children2)
{
}typedef using Fixing that will probably help with https://trac.cppcheck.net/ticket/10061 and #2973. |
Collaborator
|
I think that the self check warnings are fixed upstream.. can you try rebasing? |
Collaborator
|
I recommend |
Collaborator
ah sorry.. you work on your "main" branch. No harm done.. I suggest (https://medium.com/@topspinj/how-to-git-rebase-into-a-forked-repo-c9f05e821c8a): |
danmar
reviewed
Jan 5, 2021
| continue; | ||
| if (!func->previous()) // Ticket #4239 | ||
| continue; | ||
| else if (isCPP() && tok2->str() == "(" && isFunctionHead(tok2, "{")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.