Open llvmbot opened 12 years ago
Currently clang shows which braces is unmatched:
ivan@liberty:~$ cat 3.cpp void f() {
ivan@liberty:~$ clang++ 3.cpp 3.cpp:3:1: error: expected '}'
^ 3.cpp:2:1: note: to match this '{' { ^
But it does not show which parenthesis, bracket or angle bracket is unmatched:
ivan@liberty:~$ clang++ 2.cpp 2.cpp:1:6: error: variable has incomplete type 'void' void f(; ^ 2.cpp:1:8: error: expected expression void f(; ^ ivan@liberty:~$ clang++ 4.cpp 4.cpp:5:13: error: expected '>' void f<int(); ^ 4.cpp:5:1: warning: declaration does not declare anything [-Wmissing-declarations] void f<int(); ^~~~
Doh, sorry, missed that these are 'cat's'
Extended Description
Currently clang shows which braces is unmatched:
ivan@liberty:~$ cat 3.cpp void f() {
ivan@liberty:~$ clang++ 3.cpp 3.cpp:3:1: error: expected '}'
^ 3.cpp:2:1: note: to match this '{' { ^
But it does not show which parenthesis, bracket or angle bracket is unmatched:
ivan@liberty:~$ clang++ 2.cpp 2.cpp:1:6: error: variable has incomplete type 'void' void f(; ^ 2.cpp:1:8: error: expected expression void f(; ^ ivan@liberty:~$ clang++ 4.cpp 4.cpp:5:13: error: expected '>' void f<int(); ^ 4.cpp:5:1: warning: declaration does not declare anything [-Wmissing-declarations] void f<int(); ^~~~