github / semantic

Parsing, analyzing, and comparing source code across many languages
8.97k stars 453 forks source link

C/C++ support #154

Open GabrielRavier opened 5 years ago

GabrielRavier commented 5 years ago

Though probably very difficult considering the mess that would be needed to do things like even trying to detect dependencies, support for C and C++ would be really nice. I merged the requests for C and C++ because having support for C++ would imply C support, and having C support would be just a step away from also having C++ support (that is, it would be pretty weird to have C support but not C++ support). I'd suggest using something like a LLVM/clang-based parser

patrickt commented 5 years ago

C is hard. C++ is unthinkably hard. But we’re hearing a lot of this, so let’s track the requests here.

robrix commented 5 years ago

Undefined behaviour, the CPP, and staged programming are all challenges, to be sure.

RandomDSdevel commented 4 years ago

     Would C-family language support also cover Objective-C and Objective-C++, or would that be handled separately?

robrix commented 4 years ago

@RandomDSdevel Probably not entirely separately, since we’d need C support to get Objective-C support. But I suspect we’d want to get C/C++ squared away first.

I’d be amenable to a new issue to track Objective-C support, if that’s what you’re thinking.