[PATCH] D27377: clang-format: Support the Java 8 'default' method modifier

Luis Héctor Chávez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 13 12:30:14 PST 2016

lhchavez marked 3 inline comments as done.
lhchavez added inline comments.

Comment at: lib/Format/UnwrappedLineParser.cpp:870
+    }
+    // 'default' can appear in a Java 8 declaration. Parse it as such.
+    break;
djasper wrote:
> Is there a test case that hits this codepath? IIUC, it would need to have a "default" of a declaration that's not at the start of the line.
Added two more test cases.


More information about the cfe-commits mailing list