[libcxx-commits] [libcxx] [libc++] Move libcxx/test/libcxx/extensions to libcxx/test/extensions and update the tests (PR #145476)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 24 01:23:34 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- libcxx/test/extensions/gnu/hash/specializations.pass.cpp libcxx/test/extensions/gnu/hash/specializations.compile.verify.cpp libcxx/test/extensions/gnu/hash_map/const_iterator.compile.fail.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/extensions/gnu/hash_map/const_iterator.compile.fail.cpp b/libcxx/test/extensions/gnu/hash_map/const_iterator.compile.fail.cpp
index db09e4080..f65ea2f0b 100644
--- a/libcxx/test/extensions/gnu/hash_map/const_iterator.compile.fail.cpp
+++ b/libcxx/test/extensions/gnu/hash_map/const_iterator.compile.fail.cpp
@@ -8,12 +8,11 @@
#include <ext/hash_map>
-int main(int, char**)
-{
- __gnu_cxx::hash_map<int, int> m;
- m[1] = 1;
- const __gnu_cxx::hash_map<int, int> &cm = m;
- cm.find(1)->second = 2; // error
+int main(int, char**) {
+ __gnu_cxx::hash_map<int, int> m;
+ m[1] = 1;
+ const __gnu_cxx::hash_map<int, int>& cm = m;
+ cm.find(1)->second = 2; // error
return 0;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/145476
More information about the libcxx-commits
mailing list