Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903611

Position-based deduplication logic is insufficient

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      Jextract deduplicates declarations using cursor positions. This works in most cases, but there are cases where this doesn't work, such as when declaration are introduced by a macro:

      #define FIELDS \
      int x; \
      int y;

      struct PointA {
         FIELDS
      };

      struct PointB {
         FIELDS
      };

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: