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

    • Type: Task
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Build tools: Other
    • Labels:
      None

      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

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes