Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C Clazy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SDK
  • Clazy
  • Merge requests
  • !54

Fix Bug 442729 related to qt6-qlatin1stringchar-to-u fixit

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Lucie Gerard requested to merge lugerard/clazy:qt6-qlatin1stringchar-to-u_fixes_Bug442769 into master Sep 29, 2021
  • Overview 1
  • Commits 1
  • Changes 5

QLatin1String should be replaced with u""_qs instead of u"". QLatin1String cannot take a u""_qs as argument, or be constructed from it. Also QLatin1Char cannot be constructed from a u''. Consequently a fix can only be provided if a QString or QChar trace has been found.

When a QLatin1Char/String call is found, the type of the parents are checked in search for a QString or QChar type. In case of looking for left over QLatin1Char/String calls nested in a QLatin1Char/String call whose fix is not supported, the type is looked for on the fly while scanning the children within the outer QLatin1Char/String call.

Edited Sep 30, 2021 by Lucie Gerard
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: qt6-qlatin1stringchar-to-u_fixes_Bug442769