clang-pure
clang-pure copied to clipboard
Easy C++ code analysis with pure Haskell
Hello @chpatrick, do you have any plans for maintaining clang-pure in the future? Like fixing bugs, incorporating new features from libclang, accepting PRs, or anything? I might have use for...
Hi, I'm trying to build clang-pure into my project and I get this: ``` clang-pure > /private/var/folders/gt/vldsywv513jgcg3vf4ynfyw40000gn/T/stack-3c9bb5133b4445a3/clang-pure-0.2.0.6/src/Language/C/Clang/Internal/Types.hs:25:1: error: clang-pure > Could not find module ‘Data.Singletons.TH’ clang-pure > Perhaps you meant...
With these changes, clang-pure builds with GHC 9.2.7 without warnings. I've still only tested it with LLVM 9, not any later versions. - - - This change is [](https://reviewable.io/reviews/chpatrick/clang-pure/25)
I have problems linking other haskell libraries against clang-pure if I add c++ code using `inline-c-cpp`, I don't have everything on hand so I need to expand on the issue...
Have you considered implementing https://clang.llvm.org/docs/LibASTMatchersReference.html ? They are very good at the least for prototyping with `clang-check`, and it would be nice if one could just transfer that over directly....
It would be a nice touch if https://clang.llvm.org/docs/index.html#using-clang-as-a-library was mentioned somewhere for people that don't already know how to use libclang.
Do you know if there are any publicly availible examples of people using clang-pure in the wild? It would be nice if there was a list of projects.
Sorry, not the cleanest pull request, but I'm a bit new at this. Hopefully with a little tweaking it's useful! --- This change is [](https://reviewable.io/reviews/chpatrick/clang-pure/18)
- Remove -Werror from cc-options Currently the build with -Werror fails on my system due to a redundant `-L` path: > error: clang: error: argument unused during compilation: '-LD:\\ghcup\\ghc\\9.4.8\\lib\\../mingw/lib' \[-Werror,-Wunused-command-line-argument\]...