Repository navigation
Merged PR for #39 #41 #48 #50 #55 #56 - #57
Merged
Merged
Conversation
Renaming nl_func_def to nl_func_def_or_call because it now deals with newlines in function calls. Change-Id: Ifd601f7b483edb2b3443ce421298c17b0064596e
Creating intermediate directories for the output file can sometimes lead to 'Unable to create d:: Permission denied (13)' error in Windows. This happens when Uncrustify try to create a Windows drive letter. This does not affect the creation of the path, but prints annoying messages. This patch fixes this issue.
Also this fixes issue uncrustify#1287.
Fix 'Permission denied' during output path creation
Fixed uncrustify#1366 - Wrong indentation of the break in switch
Add options for empty function calls and rename nl_func_def method
…ment Fix indent comment alignment rule 3
These options have similar descriptions: *sp_after_operator_sym_empty - Have precedence of... *nl_typedef_blk_start - takes preference over... *nl_func_paren_empty - Overrides... This change modifies these descriptions to use the "override" wording. This doesn't make any changes to the options like sp_before_unnamed_ptr_star, where if it's set to ignore, another options is used, and isn't really overridden. Change-Id: I47ecd54c4ed3f3950a15052ef86f4caabe8ffbdf Type: Code Improvement
…criptions Standardize option descriptions to "override"
add ellipsis (...) punctuator to objective-C
Prepare a better logging for uncrustify#1340
Checking '_MSC_VER' sets '__func__' to "???", which is incorrect for GCC.
The use of cpd.pass_count is not necessary.
Add missing Objective-C nullability keywords. Make nullable, nonnull and null_unspecified of type CT_TYPE because they are used before parameter types in method declarations. Handle them in properties correctly by changing CT_TYPE to CT_OC_PROPERTY_ATTR where necessary. Remove LANG_C flag from C++-only keywords. Add Objective-C BOOL type.
Some of the enums in the tests are called 'not'. The output files had that enums incorrectly formatted, because 'not' is a keyword in C++, and uncrustify treated it as a C keyword too. Also that enum had a syntax error, because two values weren't separated by a comma. Fix it by putting a missing comma there.
Fix keywords for Objective-C and C
Move CLI tests, add python script version
When using the following settings, a ternary operator ':' should be aligned to '?', yet also adhering to the 'indent with tabs, align with spaces' setting. ``` indent_with_tabs = 1 indent_ternary_operator = 2 ``` The result however is that the ':' is aligned to '?' as if `indent_with_tabs = 2`. (using tabs as much as it can, then aligning the last bit using spaces) I tracked this down to a special handling of ':' in `src/output.cpp`. Here is where I have a caveat: I don't understand what special case this line was supposed to handle. I tried tracking it down in the git history, but I ended up at commit fe25b6d ("Import r1644 from subversion"), and then I couldn't find the old subversion repository. No tests broke when removing this line (except for the test for aligning of the ternary operator ':'), so it would appear to only exist to make sure that the ternary ':' is aligned using tabs even though `indent_with_tabs = 1` which I would argue is wrong. I guess my only hope to understand what this line really is supposed to do is to remove it and wait for someone to yell at me that something would/did break when applying this commit.
to avoid new line between empty body.
Fixed issue of bad tokenization of relational operators in loops.
This reverts commit acd7c6c.
This reverts commit 8b3eeb9.
This reverts commit 7f94f00.
Fix for issue uncrustify#1255 pointer is treated as arithmetic operator in typedef.
Fix for issue uncrustify#1255 pointer is treated as arithmetic operator in typedef.
…-initializer' into branch-for-merging-all-PRs-to-downmerge
…in-loops' into branch-for-merging-all-PRs-to-downmerge
…pedef' into branch-for-merging-all-PRs-to-downmerge
Travis build failure
|
test this please |
hschlichter
suggested changes
Dec 4, 2017
hschlichter
left a comment
There was a problem hiding this comment.
We need to have this commit reverted. It changes to much in the current diff as well as doing some wrong indentations.
|
Please don't make any more changes to this PR(besides the reverting of 113b494). We reviewed the diff on Friday, and it is already too big to put in more stuff. |
This reverts commit 113b494.
hschlichter
approved these changes
Dec 4, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Down merge with other existing PR's