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

Fixes syntax error: std::nullptr_t in func args #1178

Conversation

tomassdepakin
Copy link

@tomassdepakin tomassdepakin commented Jun 23, 2017

Example:

void n(std::nullptr_t nullp)
{
  std::cout << "null pointer overload\n";
}

causes syntax error:

   29:
  -->  void n(std::nullptr_t nullp)
   31: {
   32:   std::cout << "null pointer overload\n";
   33: }

http://en.cppreference.com/w/cpp/types/nullptr_t


This change is Reviewable

Adds word boundry to end of pointer lexer channel regex
Adds test
@guwirth guwirth added the bug label Jun 23, 2017
@guwirth guwirth added this to the 0.9.8 milestone Jun 23, 2017
@guwirth guwirth merged commit 70c6f2a into SonarOpenCommunity:master Jun 23, 2017
@guwirth guwirth mentioned this pull request Oct 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants