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-b...@kde.org
          Reporter: hanyo...@protonmail.com
                CC: smart...@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 watching all bug changes.

Reply via email to