Skip to content

[refactor] posix.mak: Enforce whitespace before opening parenthesis for version …#6717

Merged
dlang-bot merged 2 commits intodlang:masterfrom
ibuclaw:bshedversion
Sep 26, 2018
Merged

[refactor] posix.mak: Enforce whitespace before opening parenthesis for version …#6717
dlang-bot merged 2 commits intodlang:masterfrom
ibuclaw:bshedversion

Conversation

@ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Sep 22, 2018

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + phobos#6717"

@ibuclaw ibuclaw changed the title posix.mak: Enforce whitespace before opening parenthesis for version … [refactor] posix.mak: Enforce whitespace before opening parenthesis for version … Sep 22, 2018
@ibuclaw ibuclaw added Review:Trivial typos, formatting, comments Review:Refactoring labels Sep 22, 2018
@n8sh
Copy link
Member

n8sh commented Sep 23, 2018

Churn aside, enforcing this is questionable because version( appears more times in phobos than version (. What is the basis for making the minority use the required convention?

@ibuclaw
Copy link
Member Author

ibuclaw commented Sep 23, 2018

What is the basis for making the minority use the required convention?

version () outranks version() 3067 to 2316 across dmd, druntime and phobos. Ignoring dmd, it still has a small majority.

I'm adding new ports, and I'm seeing:

version( A )
  // ...
else version (B)
  // ...
else version ( C )
  // ...
else version(D)
  // ...
else version (E)
  // ...
else version( F )
  // ...

@ibuclaw
Copy link
Member Author

ibuclaw commented Sep 23, 2018

Also, covering this in the style guide. dlang/dlang.org#2472

@n8sh
Copy link
Member

n8sh commented Sep 23, 2018

I'm adding new ports, and I'm seeing

Yeah that looks pretty janky.

@ibuclaw
Copy link
Member Author

ibuclaw commented Sep 23, 2018

As I've been asked:

Before.

59b8821eb714ded12db222feb4daed3c  generated/linux/release/64/libphobos2.a
b25f2d5031ba95a2b4363b12039d014e  generated/linux/release/64/libphobos2.so
b25f2d5031ba95a2b4363b12039d014e  generated/linux/release/64/libphobos2.so.0.82
b25f2d5031ba95a2b4363b12039d014e  generated/linux/release/64/libphobos2.so.0.82.0
c8795c44c8921969727c1158754ce226  generated/linux/release/64/libphobos2.so.0.82.o

After.

c2fea619446f1360e605c4cb4116bb4b  generated/linux/release/64/libphobos2.a
b25f2d5031ba95a2b4363b12039d014e  generated/linux/release/64/libphobos2.so
b25f2d5031ba95a2b4363b12039d014e  generated/linux/release/64/libphobos2.so.0.82
b25f2d5031ba95a2b4363b12039d014e  generated/linux/release/64/libphobos2.so.0.82.0
c8795c44c8921969727c1158754ce226  generated/linux/release/64/libphobos2.so.0.82.o

It is expected that archives don't have a consistent md5 after each rebuild.

Copy link
Member

@PetarKirov PetarKirov left a comment

Choose a reason for hiding this comment

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

Good to see we're finally done with this syntax inconsistency for Phobos.

@dlang-bot dlang-bot merged commit 656798f into dlang:master Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants