[PATCH] D19201: [clang-tidy] misc-throw-with-noexcept

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 21 07:54:30 PDT 2016


alexfh added a comment.

In http://reviews.llvm.org/D19201#403585, @Prazek wrote:

> Do you know guys is it possible to get to noexcept source location, or we have to do by hand using lexer?


If it might be possible to get the location of `noexcept(expression)` using `FunctionProtoType::getNoExceptExpr` (though I haven't tried this), but there seems to be no information left in the AST about a simple `noexcept`. However, it should be easy to find `noexcept` using a lexer (unless, it's hidden in a macro).


Repository:
  rL LLVM

http://reviews.llvm.org/D19201





More information about the cfe-commits mailing list