Closed Bug 613112 Opened 14 years ago Closed 14 years ago

#include inside a namespace block hinders eclipse CDT indexing

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: edwsmith, Assigned: edwsmith)

Details

Attachments

(1 file)

eval.h uses this pattern:

namespace avmplus {
  namespace RTC {
    #include ...
  }
}

Don't ask me why, but if you put the #includes outside of a namespace, and replicate the namespace statements in each include file, CDT indexing works fine.
Here's a patch.  I didn't indent, to minimize diffs and be friendly to narrow windows, but will indent or fix the close-block style on request.  I went for brevity:

  }}

but this would be more consistent

  } // namespace RTC
  } // namepsace avmplus
Assignee: nobody → edwsmith
Attachment #491415 - Flags: review?(lhansen)
Attachment #491415 - Flags: review?(lhansen) → review+
changeset: 5561:9990414f3836
user:      Edwin Smith <edwsmith@adobe.com>
date:      Thu Nov 18 12:37:20 2010 -0500
summary:   Bug 613112 - #include inside a namespace block hinders eclipse CDT indexing (r=lhansen)

http://hg.mozilla.org/tamarin-redux/rev/9990414f3836
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: