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

[clang-format] Incorrect formatting when expression has template like comparison operators #65877

Closed
paperchalice opened this issue Sep 10, 2023 · 0 comments · Fixed by #65933
Assignees

Comments

@paperchalice
Copy link
Contributor

Consider following code snippet:

void test(int i, int *j) {
  bool b = *j < *j && *j > *j;
  bool c = i < i && i > i;
  i < i && i > i;
}

clang-format will give:

void test(int i, int *j) {
  bool b = *j<*j && * j> * j;
  bool c = i < i && i > i;
  i<i && i> i;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants