Menu

handling of scopes

2016-05-14
2017-01-06
  • Daniel Marjamäki

    It seems to me we need to redesign the Tokenizer::setVarId(). As far as I see it is not possible to fix these tickets with some minor tweaks:

    http://trac.cppcheck.net/ticket/7443
    http://trac.cppcheck.net/ticket/7495

    Better handling of scopes is needed.

    I feel that handling of scopes should only be done in SymbolDatabase. We should not do that in Tokenizer.

    Maybe if we add a SymbolDatabase::createScopes() method we could call that before Tokenizer::setVarId() and Tokenizer::simplifyTypedef().

     

    Last edit: Daniel Marjamäki 2016-05-14
  • Alexander Mai

    Alexander Mai - 2017-01-03

    That is responsible for some ugly positives in my codebase (see http://trac.cppcheck.net/ticket/7443). Are there any plans to attack this?

     
  • Daniel Marjamäki

    Are there any plans to attack this?

    I had some plans to do it now... but I think this will be a too big task for me right now.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.