[cfe-dev] line number of matching curly

Chris Lattner clattner at apple.com
Wed Sep 1 08:50:26 PDT 2010


On Aug 31, 2010, at 4:57 PM, Glenn Kasten wrote:

> I'm using clang 2.7.
> I've been enjoying clang's great diagnostics.
> So I was surprised by this one below.
> Can you please add the line number of the matching open curly
> for the expected close curly (in this case line 2)?

Makes sense, fixed in r112709.  Thanks,

-Chris

> Thanks,
> Glenn
> 
> gkasten$ cat test.c
> int test(void)
> {
> int i;
> $ clang test.c
> test.c:3:7: error: expected '}'
> int i;
>     ^
> 1 diagnostic generated.
> $
> 
> -- 
> Glenn Kasten
> Android Media
> x35392
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list