[clazy] [Bug 443110] New: getTranslationUnitDecl return nullptr on MacOS
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Wed Sep 29 09:42:56 BST 2021
https://bugs.kde.org/show_bug.cgi?id=443110
Bug ID: 443110
Summary: getTranslationUnitDecl return nullptr on MacOS
Product: clazy
Version: unspecified
Platform: Other
OS: Other
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: hanyoung at protonmail.com
CC: smartins at kde.org
Target Milestone: ---
SUMMARY
On MacOS big sur
STEPS TO REPRODUCE
1. use clazy to compile a sample c++ file has code that should trigger checks
2.
3.
OBSERVED RESULT
no diagnostic
EXPECTED RESULT
should print diagnostic
SOFTWARE/OS VERSIONS
macOS: big sur 11.5.2
https://invent.kde.org/sdk/clazy/-/blob/master/src/Clazy.cpp#L180 this returns
nullptr on MacOS Big Sur 11.5.2
So the checks are not run. I believe it has something to do with Apple Clang. A
example clang plugin build with llvm source works as expected (but not with
Apple clang).
I tried another example clang plugin with clazy's cmake file,
getTranslationUnitDecl also returns nullptr.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list