Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100675

lupdate clang-parser: get the list of headers with new preprocessor function for llvm version >= 14

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P4: Low
    • None
    • None
    • Tools: Linguist
    • None
    • 38b5e1b80 (dev)

    Description

      Comments of type /* TRANSLATOR */ are not associated to a translation call.

      To retrieve them, the raw comments have to be parsed. For llvm version 10 and up, the raw comments can only be retrieved for a given file.

      To retrieve those comments for headers, the headers have to be listed. Currently the headers are listed during preprocessing via the InclusionDirective function. The list of headers is then saved, and passed to the AST visiting tool.

      For llvm version 14, this should not be needed anymore since the preprocessor has a new functionality (getIncludedFiles()) to call the list of included files.

      This implies passing the preprocessor to the AST Visitor, at construction time.

       

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lugerard Lucie Gerard
            lugerard Lucie Gerard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes