https://bugs.kde.org/show_bug.cgi?id=387272
Bug ID: 387272
Summary: Weird warning/error hint from the code browser -
missing header guard when one present.
Product: kdevelop
Version: 5.2.0
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Language Support: CPP (Clang-based)
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Weird warning hint from the code browser - missing header guard when one
present.
It looks like some CMake based projects does not work well with KDevelop Clang
based C/C++ language support.
This is just one bug I noticed from many, which is however easy to reproduce,
so I report it separately.
* How to reproduce? *
1. Open attached SampleMultiProject.
2. In the project tree view click on the file ClassB.hpp (in
SubProjectExecutable/include).
3. Put a mouse cursor to the first line of the file on the text "#pragma once"
* What happens? *
There is "warning/error" hint on the first line of the file in the editor (red
underline) with following text "The given header is not guarded against
multiple inclusions, either with the conventional #ifndef/#define/#endif macro
guards or with #pragma once."
* Expected behavior? *
The correct use of language element should not be reported as warning/error.
* Observations / Notes *
- Please see attached video of the bug behavior.
- Weird is that another file with similar contents do not show the bug
- Even weirdest is that when I retype (cut&paste) the text "#pragma once" the
problem disappears.
- I did double check the CMake project for problems, but I did not find any
which may cause this behavior.
--
You are receiving this mail because:
You are watching all bug changes.