Menu

#143 C++ inline functions confuse scanner

open-wont-fix
5
2004-06-02
2004-06-02
No

the attached file contains source from a C++ header
file which cscope mis parses.

It sees the function list, which is defined after the
inline function Close, as being called from Close.

Discussion

  • Marc Britten

    Marc Britten - 2004-06-02

    header demonstarting issue

     
  • Marc Britten

    Marc Britten - 2004-06-02

    Logged In: YES
    user_id=354

    Apparently i only thought about checking the box to do the
    upload

     
  • Hans-Bernhard Broeker

    Logged In: YES
    user_id=27517

    Well, the program is still called cscope, not C++scope. It
    does have some extensions to allow it not to immediately
    stumble over its own feet if you pass it C++ code. But
    eventually, it *will* break. Template stuff is rather hard
    even for a full-blown parser to understand --- for a simple
    tool such as cscope, it's essentially impossible.

     
  • Hans-Bernhard Broeker

    • summary: See's incorrect function call --> C++ inline functions confuse scanner
    • status: open --> open-wont-fix
     

Log in to post a comment.