Skip to content

Merged PR for #39 #41 #48 #50 #55 #56 - #57

Merged
hschlichter merged 309 commits into
masterfrom
branch-for-merging-all-PRs-to-downmerge
Dec 4, 2017
Merged

hschlichter merged 309 commits into
masterfrom
branch-for-merging-all-PRs-to-downmerge

Conversation

@spuppala-rythmos

Copy link
Copy Markdown

Down merge with other existing PR's

Ben Mayo and others added 30 commits October 3, 2017 17:13
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.
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
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.
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.
spuppalaa-rythmos and others added 22 commits November 23, 2017 15:15
to avoid new line between empty body.
Fixed issue of bad tokenization of relational operators in loops.
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
@hschlichter

Copy link
Copy Markdown

test this please

@hschlichter hschlichter left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We need to have this commit reverted. It changes to much in the current diff as well as doing some wrong indentations.

@hschlichter

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.