[PATCH] D26167: [Clang-tidy] check for malloc, realloc and free calls

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 13 02:58:05 PST 2016


malcolm.parsons added inline comments.


================
Comment at: docs/clang-tidy/checks/cppcoreguidelines-no-malloc.rst:10
+See `C++ Core Guidelines
+<https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#r-resource-management>`
+
----------------
JonasToth wrote:
> malcolm.parsons wrote:
> > Do you mean `#r10-avoid-malloc-and-free`?
> yes, but i think the wider view is more appropriate. RAII is a general strategy, and not specific to malloc etc.
This checker is specific to R.10.
The documentation for all the other cppcoreguidelines checks mention which rule they're enforcing.


================
Comment at: docs/clang-tidy/checks/cppcoreguidelines-no-malloc.rst:4
+cppcoreguidelines-no-malloc
+===================
+
----------------
A few `=` missing.


Repository:
  rL LLVM

https://reviews.llvm.org/D26167





More information about the cfe-commits mailing list