[PATCH] D15797: [clang-tidy] Fix readability-braces-around-statements assert failure
Matt Stancliff via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 29 10:37:03 PST 2015
mattsta added a comment.
It's difficult to track down *why* the invalid locations are happening because by the time we get to an invalid location, all source location information is lost. The best I've been able to come up with is fixing the early return conditions (which were previously impossible to reach due to asserts catching the invalid conditions first).
It's easy to have these happen on any large codebase (e.g. try to recursively clang-tidy the erlang source tree with readability-braces-around-statements).
Repository:
rL LLVM
http://reviews.llvm.org/D15797
More information about the cfe-commits
mailing list