https://bugs.kde.org/show_bug.cgi?id=402066
Bug ID: 402066 Summary: Fail at semantic analysis for includes within extern "C" Product: kdevelop Version: git master Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Language Support: CPP (Clang-based) Assignee: kdevelop-bugs-n...@kde.org Reporter: aleix...@kde.org Target Milestone: --- Created attachment 116881 --> https://bugs.kde.org/attachment.cgi?id=116881&action=edit patch that adds a test case SUMMARY There's a test case attached with a positive and a negative case. Given a foo.h such as: "int foo();" And a main.cpp such as: " extern "C" { #include "foo.h" } int main() { return foo(); } " OBSERVED RESULT Project compiles but foo uses or declarations don't get highlighted. If extern "C" is removed from main.cpp it all works. EXPECTED RESULT It should work even with extern "C" SOFTWARE/OS VERSIONS Linux/KDE Plasma: master Running clang 7.0, but I've had this issue for a while. ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.