[clang] Update std symbols mapping (fixes #113494) (PR #113612)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 24 12:49:53 PDT 2024
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 95e5a999ab8f2a8f163899c6ab445baf901c3c96 ba2d997ba87e2a5193429d3ca4900d4ae39420b7 --extensions inc,cpp -- clang/lib/Tooling/Inclusions/Stdlib/StandardLibrary.cpp clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc b/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
index 156e1e8ad5..27db3a64b5 100644
--- a/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
+++ b/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
@@ -315,8 +315,8 @@ SYMBOL(tanh, std::, <cmath>)
SYMBOL(tanh, None, <cmath>)
SYMBOL(tanh, None, <math.h>)
-// Only add headers for the generic atomic template and atomic_* template functions.
-// Ignore variants (std::weak_ptr, std::shared_ptr).
+// Only add headers for the generic atomic template and atomic_* template
+// functions. Ignore variants (std::weak_ptr, std::shared_ptr).
SYMBOL(atomic, std::, <atomic>)
SYMBOL(atomic_compare_exchange_strong, std::, <atomic>)
SYMBOL(atomic_compare_exchange_strong_explicit, std::, <atomic>)
@@ -440,7 +440,8 @@ SYMBOL(make_error_condition, std::, /*no headers*/)
// cppreference symbol index page was missing these symbols.
// Remove them when the cppreference offline archive catches up.
-// v20230810 has a duplicate add_pointer instead of add_pointer_t. It's fixed in v20240610
+// v20230810 has a duplicate add_pointer instead of add_pointer_t. It's fixed in
+// v20240610
SYMBOL(add_pointer_t, std::, <type_traits>)
SYMBOL(regular_invocable, std::, <concepts>)
@@ -450,10 +451,12 @@ SYMBOL(div, std::, <cstdlib>)
SYMBOL(abort, std::, <cstdlib>)
// Broken class declaration, header isn't rendered.
-// Remove when the page is fixed and new version is included in cppreference offline archive.
+// Remove when the page is fixed and new version is included in cppreference
+// offline archive.
SYMBOL(month_weekday, std::chrono::, <chrono>)
-// FIXME Ambiguous symbols (not sure if they should be updated, this is copied from v20220730)
+// FIXME Ambiguous symbols (not sure if they should be updated, this is copied
+// from v20220730)
SYMBOL(filebuf, std::, <streambuf>)
SYMBOL(filebuf, std::, <iostream>)
SYMBOL(filebuf, std::, <iosfwd>)
``````````
</details>
https://github.com/llvm/llvm-project/pull/113612
More information about the cfe-commits
mailing list