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

Never use spaces in generated name (fixes #844) #845

Merged
merged 1 commit into from
Jul 23, 2017
Merged

Conversation

Manishearth
Copy link
Member

No description provided.

@highfive
Copy link

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@Manishearth
Copy link
Member Author

@bors-servo r=fitzgen

carried over r+ from #841

@bors-servo
Copy link

📌 Commit e0bd747 has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit e0bd747 with merge fac99ae...

bors-servo pushed a commit that referenced this pull request Jul 23, 2017
Never use spaces in generated name (fixes #844)

None
@bors-servo
Copy link

💔 Test failed - status-travis

@Manishearth
Copy link
Member Author

@bors-servo r=fitzgen

@bors-servo
Copy link

📌 Commit 5d409fe has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit 5d409fe with merge a6956dd...

bors-servo pushed a commit that referenced this pull request Jul 23, 2017
Never use spaces in generated name (fixes #844)

None
@Manishearth
Copy link
Member Author

@bors-servo r=fitzgen

@bors-servo
Copy link

📌 Commit 333f21a has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit 333f21a with merge 156ae53...

bors-servo pushed a commit that referenced this pull request Jul 23, 2017
Never use spaces in generated name (fixes #844)

None
@Manishearth
Copy link
Member Author

@bors-servo r-

@@ -1391,7 +1391,12 @@ impl<'ctx> BindgenContext<'ctx> {
_ => return None,
};

let spelling = ty.spelling();
let mut spelling = ty.spelling();
Copy link
Contributor

Choose a reason for hiding this comment

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

just:

let spelling = ty.spelling().replace(' ', "_");

@Manishearth
Copy link
Member Author

@bors-servo r=emilio

@bors-servo
Copy link

📌 Commit 2d949e2 has been approved by emilio

@bors-servo
Copy link

⌛ Testing commit 2d949e2 with merge 877b65c...

bors-servo pushed a commit that referenced this pull request Jul 23, 2017
Never use spaces in generated name (fixes #844)

None
B<const int> mBConst;
B<volatile int> mBVolatile;
B<const bool> mBConstBool;
B<const char16_t> mBConstChar;
Copy link
Contributor

@upsuper upsuper Jul 23, 2017

Choose a reason for hiding this comment

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

It might probably better to have more, at least something like unsigned long long which has whitespace unrelated to cv, as well as things like long double to cover non-interger types, and probably const decltype(nullptr) might be a good one to test as well.

@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: emilio
Pushing 877b65c to master...

@bors-servo bors-servo merged commit 2d949e2 into master Jul 23, 2017
@bors-servo bors-servo mentioned this pull request Jul 23, 2017
@Manishearth Manishearth deleted the fix-spaces branch July 23, 2017 06:59
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.

6 participants