================
@@ -0,0 +1,12 @@
+.. title:: clang-tidy - modernize-use-cpp-style-comments
+
+modernize-use-cpp-style-comments
+================================
+
+Finds C-style comments and suggests to use C++ style comments `//`.
+
+
+.. code-block:: c++
+
+  memcpy(a, b, sizeof(int) * 5); /* use std::copy_n instead of memcpy */
+  // warning: use C++ style comments '//' instead of C style comments 
'/*...*/' [modernize-use-cpp-style-comments]
----------------
njames93 wrote:

Documentation shouldn't just print the diagnostic.

https://github.com/llvm/llvm-project/pull/99713
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to