diff options
| author | Alexander Kornienko <alexfh@google.com> | 2015-09-25 17:50:11 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2015-09-25 17:50:11 +0000 |
| commit | 91b53846f78940a12241042ad3ec6b1f38aa7327 (patch) | |
| tree | 9b748fc7f99a46ea700bc044d5561d3a72e05d30 /clang-tools-extra/docs | |
| parent | 1bbd7fb38e1d700b7b806227e058d266d03e986e (diff) | |
| download | bcm5719-llvm-91b53846f78940a12241042ad3ec6b1f38aa7327.tar.gz bcm5719-llvm-91b53846f78940a12241042ad3ec6b1f38aa7327.zip | |
[clang-tidy] Updated misc-unused-raii documentation.
llvm-svn: 248594
Diffstat (limited to 'clang-tools-extra/docs')
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/misc-unused-raii.rst | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-unused-raii.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-unused-raii.rst index 99e50ec755d..0b759705f2d 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/misc-unused-raii.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-unused-raii.rst @@ -19,10 +19,8 @@ entered, leaving it unprotected. We apply a number of heuristics to reduce the false positive count of this check: - * Ignore code expanded from macros. Testing frameworks make heavy use of - this. - * Ignore types with no user-declared constructor. Those are very unlikely - to be RAII objects. - * Ignore objects at the end of a compound statement (doesn't change - behavior). + * Ignore code expanded from macros. Testing frameworks make heavy use of this. + * Ignore types with trivial destructors. They are very unlikely to be RAII + objects and there's no difference when they are deleted. + * Ignore objects at the end of a compound statement (doesn't change behavior). * Ignore objects returned from a call. |

