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

Jextract should tolerate more CPP constructs when running with xc++

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools

      If jextract is ran in "cpp" mode, e.g. using a "compile_flags.txt" file that contains the "-xc++" flag, it fails with non-trivial code because:

      * extern C clauses are not recursively scanned
      * the first time we see a cursor with language != C, we stop with an exception (instead of skipping)
      * typing of enum constant is different in C++ and causes infinite recursion

      As a result, jextract is not very usable in combination with "-xc++".

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

              Created:
              Updated: