[PATCH] D42167: [clang-format] adds enclosing function detection to raw string formatting

Benjamin Kramer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 06:26:49 PST 2018

bkramer added inline comments.

Comment at: lib/Format/ContinuationIndenter.cpp:1454
+// found.
+static StringRef getEnclosingFunctionName(const FormatToken& Current) {
+  // Look for: 'function(' or 'function<templates>(' before Current.
This function doesn't look clang-formatted.

  rC Clang


More information about the cfe-commits mailing list