-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Header with C++ namespace declarations is wrongly identified as C #1250
Comments
The kind of specific constructs you mentioned could be handled with heuristics. |
Looks like my pull request is being benchmarked now so we should see it merged shortly.. my heuristics would find your use of STL and mark the code as C++ and likewise any header that defines a class or such.. as long as that header contains no Obj-C specific markup. To be sure, though, I may well add an extra heuristic to my pull request that handles std:: being present and automatically handling that as C++. |
That would be good. I tested your PR on the file and currently it is still recognized as C :/ (unless I missed something...). |
We're tracking progress for this fix in #1626. |
This search
https://github.com/gsauthof/imapdl/search?l=c
lists
lex_util.h
- which clearly is C++ - because it has some C++ specific constructs, e.g.(C++ STL header)
or
(namespace usage in a argument declaration)
The text was updated successfully, but these errors were encountered: