[libcxx-commits] [libcxx] [libc++][module] Fixes std::string UDL. (PR #75000)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Dec 10 07:15:57 PST 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 99eb843c8bda5d636338edfd4f67728b6573a2a9 b0ad7a1f39617cc2631b77c67b546c2a2a3ed723 -- libcxx/modules/std/string.inc libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp b/libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp
index d39e13be85..35f020da45 100644
--- a/libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp
+++ b/libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp
@@ -202,12 +202,12 @@ static std::string get_qualified_name(const clang::NamedDecl& decl) {
       // not added to the qualified name instead of removed. Libc++ uses
       // several inline namespace with reserved names. For example,
       // __1 for every declaration, __cpo in range-based algorithms.
-	  //
-	  // Note other inline namespaces are expanded. This resolves
-	  // ambiguity when two named declarations have the same name but in
-	  // different inline namespaces. These typically are the literal
-	  // conversion operators like operator""s which can be a
-	  // std::string or std::chrono::seconds.
+      //
+      // Note other inline namespaces are expanded. This resolves
+      // ambiguity when two named declarations have the same name but in
+      // different inline namespaces. These typically are the literal
+      // conversion operators like operator""s which can be a
+      // std::string or std::chrono::seconds.
       if (!context->isInline())
         return "";
     } else

``````````

</details>


https://github.com/llvm/llvm-project/pull/75000


More information about the libcxx-commits mailing list