malcolm.parsons created this revision. malcolm.parsons added a reviewer: aaron.ballman. malcolm.parsons requested review of this revision. Herald added a project: clang-tools-extra. Herald added a subscriber: cfe-commits.
string_view isn't experimental anymore. This check has always handled both forms. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D102313 Files: clang-tools-extra/docs/clang-tidy/checks/bugprone-dangling-handle.rst Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-dangling-handle.rst =================================================================== --- clang-tools-extra/docs/clang-tidy/checks/bugprone-dangling-handle.rst +++ clang-tools-extra/docs/clang-tidy/checks/bugprone-dangling-handle.rst @@ -3,8 +3,7 @@ bugprone-dangling-handle ======================== -Detect dangling references in value handles like -``std::experimental::string_view``. +Detect dangling references in value handles like ``std::string_view``. These dangling references can be a result of constructing handles from temporary values, where the temporary is destroyed soon after the handle is created. @@ -35,4 +34,5 @@ .. option:: HandleClasses A semicolon-separated list of class names that should be treated as handles. - By default only ``std::experimental::basic_string_view`` is considered. + By default only ``std::basic_string_view`` and + ``std::experimental::basic_string_view`` are considered.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-dangling-handle.rst =================================================================== --- clang-tools-extra/docs/clang-tidy/checks/bugprone-dangling-handle.rst +++ clang-tools-extra/docs/clang-tidy/checks/bugprone-dangling-handle.rst @@ -3,8 +3,7 @@ bugprone-dangling-handle ======================== -Detect dangling references in value handles like -``std::experimental::string_view``. +Detect dangling references in value handles like ``std::string_view``. These dangling references can be a result of constructing handles from temporary values, where the temporary is destroyed soon after the handle is created. @@ -35,4 +34,5 @@ .. option:: HandleClasses A semicolon-separated list of class names that should be treated as handles. - By default only ``std::experimental::basic_string_view`` is considered. + By default only ``std::basic_string_view`` and + ``std::experimental::basic_string_view`` are considered.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits