Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
Qt Creator 4.8.1, Qt Creator 4.9.0-beta1
-
None
-
-
dba0adcfe0fec308a047cca79b1be0b1436f6fad (clang/clang/release_70-based)
Description
See this header file as an example:
#pragma once #include <thisHeaderDoesNotExistByIntention.h> // remove this line #include <QString> // or: remove this line #include <QScopedPointer> struct ClassP; class Class // : public boost::noncopyable { public: private: QScopedPointer<ClassP> _d; };
This is shown in the editor as:
If you remove (comment out) the first or the second marked line (3 or 4) then the false positive in 18 is removed.
Ok, if you remove the include of the non existing file, I would by it.
But if you remove the include of QString?
Anyway, a missing file should not bring the analyzing to this result, should it?
You can remove the false positive by swapping line 6 and 4, so that include QScopedPointer is in front of QString, too.
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-21900 ClangCodeModel does not properly parse includes after the missing one
- Closed
- relates to
-
QTCREATORBUG-21989 Clang code model throws its hands on error in included file
- Closed
- links to