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

qdbusxml2cpp does not handle CRLF in comments correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.8.0, 5.0.0
    • 4.7.1
    • D-Bus
    • None
    • Windows 7 Professional, Microsoft Visual Studio 2010 Professional

    Description

      I was trying to compile KDE-Runtime using emerge when I got this error:

      jobviewserveradaptor.moc(49) : error C2001: Zeilenvorschub in Konstante.
      jobviewserveradaptor.moc(50) : error C2017: Ungültige Escapesequenz
      jobviewserveradaptor.moc(50) : error C2146: Syntaxfehler: Fehlendes '}' vor Bezeichner 'n'
      jobviewserveradaptor.moc(50) : error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'n'
      jobviewserveradaptor.moc(50) : error C2143: Syntaxfehler: Es fehlt ';' vor 'Konstante'
      jobviewserveradaptor.moc(50) : error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
      jobviewserveradaptor.moc(50) : error C2001: Zeilenvorschub in Konstante.
      jobviewserveradaptor.moc(51) : error C2001: Zeilenvorschub in Konstante.
      jobviewserveradaptor.moc(52) : error C2017: Ungültige Escapesequenz
      jobviewserveradaptor.moc(52) : error C2001: Zeilenvorschub in Konstante.
      jobviewserveradaptor.moc(53) : error C2001: Zeilenvorschub in Konstante.
      jobviewserveradaptor.moc(54) : error C2017: Ungültige Escapesequenz
      jobviewserveradaptor.moc(54) : error C2017: Ungültige Escapesequenz
      jobviewserveradaptor.moc(54) : error C2001: Zeilenvorschub in Konstante.
      jobviewserveradaptor.moc(61) : error C2143: Syntaxfehler: Es fehlt ';' vor '}'
      jobviewserveradaptor.moc(61) : error C2059: Syntaxfehler: '}'

      The source file had been created with qdbusxml2cpp.
      The CRLF in the comment was replaced by CR\n in a string, which leads to multiline strings producing these errors.
      (Since I am no C++ programmer, these are all assumptions.)

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            vloeck Volkmar Wörner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes