-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 2.7.1
-
None
-
Linux Mint Mate 14 64-bit
Repro steps:
- Start qtcreator
- File / New File or Project...
- General / Scratch Buffer
- Create a line of text like this:
__device_inline uint2 operator/(const uint2 a, const uint2& b)
- Put the cursor before the text
- Press Ctrl-F
- Click the magnifying glass in the find field, choose Use Regular Expressions
- Enter the following regex:
(const (?:uchar|char|uint|int|float)\d\s?(?!&))
- In the replace with field enter the following:
\1&
(backslash, one, ampersand, space)
- Click Replace & Find
Expected the line to be:
__device_inline uint2 operator/(const uint2& a, const uint2& b)
Actual incorrect replacement behavior:
__device_inline uint2 operator/(const uint2 const uint2 a, const uint2& b)
I've noticed several people report variations of this bug without detailed repro steps. Hopefully this time the bug will be fixed.
- relates to
-
QTBUG-37353 QString::replace(QRegularExpression) seems unable to use named groups in back-references
-
- Open
-
For Gerrit Dashboard: QTCREATORBUG-9602 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
223490,3 | Be a bit more perl-like with regular expression replacements | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |