-
Notifications
You must be signed in to change notification settings - Fork 365
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
C++ Parser can't read code. Declaration is skipped. With correct code. #1181
Comments
@PawelKm thanks for your feedback.
|
This I can provide now:
I will try to narrow down problem whenever I find free time. |
Hi @PawelKm reduced sample: bool ok1(templateName1<templateName<string>> declarator); // without const
bool ok2(templateName1<const templateName<string> > declarator); // blank between >>
bool failure(templateName1<const templateName<string>> declarator); // failure As a workaround you can add a blank between Regards |
Thanks @guwirth that helped also! |
@ametselaar we need your help. We have a hard grammar nut to crack. |
see #1685 |
@guwirth 您好 |
Hi @zdg123456, please have a look to https://github.com/SonarOpenCommunity/sonar-cxx/wiki/Dealing-with-compiler-specific-code-pieces Regards, |
I have cpp file where I have function:
and also hpp file where I have declaration:
in both files I have
#include <boost/property_tree/xml_parser.hpp>
what includes
#include <boost/property_tree/ptree.hpp>
what includes
#include <boost/property_tree/ptree_fwd.hpp>
what contains the forward declaration:But still using
const boost::property_tree::basic_ptree<std::string, std::string>>
causes 5 issues reported with declarations skipped up to first namespace level.Usage of
const boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string>>>
fixes the problem for now.The text was updated successfully, but these errors were encountered: