Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 7.0.0
-
None
-
-
9146ce4625 (qt-creator/qt-creator/7.0) 9146ce4625 (qt-creator/qt-creator/master) 9146ce4625 (qt-creator/qt-creator/qds-3.3) 9146ce4625 (qt-creator/tqtc-qt-creator/7.0)
Description
The variable in __builtin_expect condition in the following code sample is highlighted as an output parameter:
class my_class_base { protected: int value; }; template< typename T > class my_class : public my_class_base { bool foo() { if (__builtin_expect(value == 10, 1)) return true; return false; } };
This happens with clangd enabled.
Attachments
For Gerrit Dashboard: QTCREATORBUG-27368 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
405817,2 | ClangCodeModel: Fix another false positive | 7.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |