================ @@ -0,0 +1,40 @@ +.. title:: clang-tidy - use-cpp-style-comments + +readability-use-cpp-style-comments +================================== + +Replace C-style comments with C++-style comments. +C-style comments (``/* ... */``) are inherited from C, while C++ introduces +``//`` as a more concise, readable, and less error-prone alternative. Modern C++ +guidelines recommend using C++-style comments for consistency and +maintainability. This check identifies and replaces C-style comments with +equivalent C++-style comments. + +Examples: + +Input: +.. code-block::c++ ---------------- 4m4n-x-B4w4ne wrote:
Done Thanks. https://github.com/llvm/llvm-project/pull/124319 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits