[PATCH] D69577: [clang-format] [PR35518] C++17 deduction guides are wrongly formatted

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 5 13:24:43 PST 2019


curdeius accepted this revision.
curdeius added a comment.
This revision is now accepted and ready to land.

LGTM. Just a small typo in comment. Otherwise, great job!



================
Comment at: clang/lib/Format/TokenAnnotator.cpp:1369
+  static bool isDeductionGuide(FormatToken &Current) {
+    // Look for a deduction guide temaplte<T> A(...) -> A<...>;
+    if (Current.Previous && Current.Previous->is(tok::r_paren) &&
----------------
Typo: template.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69577





More information about the cfe-commits mailing list