[PATCH] D31370: [clang-tidy] Prototype to check for exception specification
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 25 12:03:48 PDT 2017
Eugene.Zelenko added a comment.
Please mention this check in docs/ReleaseNotes.rst (in alphabetical order).
================
Comment at: docs/clang-tidy/checks/modernize-noexcept-correctness.rst:7
+This check will mark functions as noexcept if that is possible.
+`noexcept` is a new keyword in C++ 11 to signal, that no exception will escape from
+the function annotated with it. Some examples to show how this new feature is used are below.
----------------
Please highlight language constructs with ``.
================
Comment at: docs/clang-tidy/checks/modernize-noexcept-correctness.rst:16
+ int i = 0;
+ i+= 42;
+ return i;
----------------
Please run Clang-format over all code snippets.
================
Comment at: docs/clang-tidy/checks/modernize-noexcept-correctness.rst:41
+
+ - AnnotateThrow -> boolean if a function that can throw for sure will be annotated with `noexcept(false)`
----------------
Please highlight language constructs with ``.
Repository:
rL LLVM
https://reviews.llvm.org/D31370
More information about the cfe-commits
mailing list