Menu

#75 Handling multline #if statements

open-remind
None
5
2012-05-06
2011-06-12
No

The current implementation seems to hard-code looking for '#' at the beginning of the line to determine that X() is not a function when inside a preprocessor statement. However, this seems to fail when #if statements include multi-line checks; this was noted by Hans in the notes for the bug I filed earlier (id: 3309010).
This patch adds support for handling multi-line #if statements.

Discussion

  • Hari Rangarajan

    Hari Rangarajan - 2011-06-12

    cscope 15.7a cscope.out

     
  • Hari Rangarajan

    Hari Rangarajan - 2011-06-12

    Multiline #if patch and improved generic # handling

     
  • Hari Rangarajan

    Hari Rangarajan - 2011-06-12

    Patched cscope.out

     
  • Hari Rangarajan

    Hari Rangarajan - 2011-06-12

    I have attached an unpatched and patched cscope.out for reference. The patched one improves general handling of preprocessor #XXX statements. The current implementation identifies in '#if ABC', the parameter ABC as a global variable; the patched version avoids this problem.

    I verified the multiline #if handling using the 'vim.h' file I attached to the bug report.

     
  • Hari Rangarajan

    Hari Rangarajan - 2011-06-14
    • assigned_to: nobody --> broeker
     
  • Hari Rangarajan

    Hari Rangarajan - 2011-10-04

    Hi Hans,

    Did you have a chance to follow up on this?

     
  • Hari Rangarajan

    Hari Rangarajan - 2012-05-06
    • status: open --> open-remind
     

Log in to post a comment.