[PATCH] D79773: [clang-format] Improve clang-formats handling of concepts

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 12 12:54:57 PDT 2020


MyDeveloperDay marked an inline comment as done.
MyDeveloperDay added inline comments.


================
Comment at: clang/lib/Format/TokenAnnotator.cpp:1924
         return TT_BinaryOperator;
     }
 
----------------
This change it to resolve the missing gap between `&&` and `Concept2`, clang-format incorrectly labels the && as TT_PointerOrReference

```
template <class I> void f(I i) requires Concept1<I> &&Concept2<i> {
  // ...
}
```

vs

```
template <class I> void f(I i) requires Concept1<I> && Concept2<i> {
  // ...
}
```



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79773/new/

https://reviews.llvm.org/D79773





More information about the cfe-commits mailing list