Skip to content
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

cli/cmdlineparser.cpp: fix cli --help, --platform=avr8 misinformation. #1075

Closed
wants to merge 1 commit into from
Closed

Conversation

Jalakas
Copy link

@Jalakas Jalakas commented Jan 31, 2018

Fixes: Removed hard coded avr8 platform and moved it into a platform file (avr8.xml).
61e4720

Fixes: Removed hard coded avr8 platform and moved it into a platform file (avr8.xml).
61e4720
@amai2012
Copy link
Collaborator

Maybe this PR should wait until https://trac.cppcheck.net/ticket/8242#comment:5 has been addressed?

" * unspecified\n"
" Unknown type sizes\n"
" --platform=<file>\n"
" Uses types and sizes from platform file:\n"
" * platforms/avr8.xml\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the stuff is in a separate file, I would recommend to not mention it in the --help output.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not? What's the difference between library and platform files?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the help for --library we don't list what cfg files there are.

@danmar
Copy link
Owner

danmar commented Feb 9, 2018

Could you review this. I have addressed https://trac.cppcheck.net/ticket/8242#comment:5 so you can now use --platform=avr8.

@amai2012
Copy link
Collaborator

amai2012 commented Mar 7, 2018

Could you review this. I have addressed https://trac.cppcheck.net/ticket/8242#comment:5 so you can now use --platform=avr8.

That is working for me (using my own cygwin/mingw build). I agree to PKEuS' comment that we shouldn't list those external files. That way it's more comfortable to add/remove/rename platforms, see https://trac.cppcheck.net/ticket/8424

@amai2012
Copy link
Collaborator

cppcheck could iterate over the available files and add them to the list?

@danmar
Copy link
Owner

danmar commented Mar 24, 2018

it sounds OK to iterate over the available platforms and list them all. I close this PR, feel free to create a new PR that iterates and show all available platforms.

@danmar danmar closed this Mar 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants