berenm added a comment. There's still cases where the nesting level is still not correctly handled: when using unbraced conditionals / loops. For example (sorry, silly example):
for (auto index = 0, e = 1000; index < e; ++index) int v = 0; long double value = 1; is aligned to for (auto index = 0, e = 1000; index < e; ++index) int v = 0; long double value = 1; I'm not sure how to detect these unbraced scopes, maybe by also looking for different IndentLevel when computing the ScopeLevel? http://reviews.llvm.org/D21279 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits