llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.07k stars 11.98k forks source link

Lack of fixits for mismatched parenthesis, bracket or angle bracket #13553

Open llvmbot opened 12 years ago

llvmbot commented 12 years ago
Bugzilla Link 13181
Version 3.0
OS Linux
Reporter LLVM Bugzilla Contributor
CC @asl,@DougGregor

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(); ^~~~

asl commented 12 years ago

Doh, sorry, missed that these are 'cat's'

asl commented 12 years ago
  1. Please add the testcase
  2. Please make sure everything reproduces on 3.1 / trunk