Open biffen opened 8 years ago
@biffen I opened a bug with the uncrustify project. I am not very familiar with uncrustify and they are asking for more information. Would you mind hopping into https://github.com/uncrustify/uncrustify/issues/763#issuecomment-248305327 and responding?
Please add a link to the required debug.md
Gist which includes debugging information that answers our most commonly asked questions: https://github.com/Glavin001/atom-beautify/blob/master/ISSUE_TEMPLATE.md#how-to-create-debugmd-gist
Thank you.
Based on your issue description what needs to be done is add the C++14
grammar to the C++
language within Atom-Beautify: https://github.com/Glavin001/atom-beautify/blob/master/src/languages/cpp.coffee#L10
However, the debug.md
is required to confirm this.
If this is the issue then please submit a Pull Request changing the grammar list for C++
. See https://github.com/Glavin001/atom-beautify/blob/master/docs/add-languages-and-beautifiers.md and other past Pull Requests for more information. Let us know if you have any questions.
@prettydiff I respectfully disagree. This is simply what @Glavin001 mentions; adding the C++14
grammar to atom-beautify.
@Glavin001 How do I create a debug.md
(the template doesn't say)? And is it really necessary? You seem to have a solution already.
Thanks @prettydiff . That is the correct link. It appears my GitHub saved reply is outdated.
How do I create a debug.md (the template doesn't say)? And is it really necessary? You seem to have a solution already.
In the future please include a debug.md
Gist which will provide answers to common questions we ask. However, this sounds like a simple missing grammar for the C++
language file within Atom-Beautify. You can submit a Pull Request after you confirm the recommended fix works for you. Thanks!
Description
The language-cpp14 package provides a grammar called ‘C++14’. When a C++ header file is open and set to C++14, running the beautifier causes Uncrustify to assume the file is C, rather than C++. Uncrustify then often fails because there are non-C things in the file.
Expected Results
A file set to C++14 results in Uncrustify treating it as C++.
Steps to Reproduce
Debug
—
Checklist
debug.md
Gist to this issue