]> granicus.if.org Git - clang/commit
Fix a bad location in -Wparentheses fix-it hint
authorRichard Trieu <rtrieu@google.com>
Sat, 23 Aug 2014 00:30:57 +0000 (00:30 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 23 Aug 2014 00:30:57 +0000 (00:30 +0000)
commita8c7afe2384ba31e893e67ad8bf05e733a6c4a56
tree77ec846fa916d30d87d92dbd4424f5b67e64aa6f
parent024d9c65e9d3887045c82be09e4f630f19da48b4
Fix a bad location in -Wparentheses fix-it hint

The code used getLocStart() instead of getLocEnd().  This works for single
token expressions, but breaks if the expression is longer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216306 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/Sema/parentheses.cpp