aaron.ballman added a comment.

In http://reviews.llvm.org/D15443#323043, @adek05 wrote:

> I think this won't work. If there is a problem with the expression inside 
> `throw` or `noexcept` specifier, it will be highlighted inside the parens, 
> never trying to actually access the end location of the function declaration.
>
> It would be enough if there is a warning/error which would highlight the 
> whole function declaration, because we could check whether it points at `;` 
> or the character in front of it, but I don't know about such warning and I 
> don't know how to smartly look for it.


I think the best way to proceed then is with a test in SourceLocationTest.cpp 
in the AST unit test suite.


http://reviews.llvm.org/D15443



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to