Menu

#265 Inconsistent enum tagging

None
closed-duplicate
5
2020-09-06
2011-05-29
No

In some cases, the enum element "m" tagging does not work. I have attached a vim 7.3 header file in which two enums' (auto_event, hlf_T) member elements are not being tagged. If I move the same defines into a separate file, cscope tags the enum members correctly.

cscope.out: ---------> (no member tagging)
1207 enum
eauto_event

1209
EVENT_BUFADD
= 0,

1210
EVENT_BUFNEW
,

1211
EVENT_BUFDELETE

Discussion

  • Hari Rangarajan

    Hari Rangarajan - 2011-05-29

    auto_event, hlf_T enums not tagged...

     
  • Hans-Bernhard Broeker

    The fact that these are enum entries is a red herring. Parsing of that file was off before that point, causing these enums to appear as being inside a function.

    The problematic line is #22, a continuation line from a rather big preprocessor #if that just so happens to look exactly like a valid line to open a function definition.

     
  • Hans-Bernhard Broeker

    • status: open --> pending-out-of-date
     
  • Hans-Bernhard Broeker

    • status: pending-out-of-date --> closed-duplicate
    • Group: -->
     
  • Hans-Bernhard Broeker

    This is actually a duplicate of bug #220

     

Log in to post a comment.