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 cppm,h,c,inc,cpp -- clang/test/Sema/include-suggestion.c clang/test/SemaCXX/include-suggestions-cxx.cpp clang/include/clang/Sema/Sema.h clang/include/clang/Tooling/Inclusions/StandardLibrary.h clang/lib/Parse/ParseExprCXX.cpp clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaExpr.cpp clang/lib/Tooling/Inclusions/Stdlib/CSymbolMap.inc clang/lib/Tooling/Inclusions/Stdlib/StandardLibrary.cpp clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc clang/test/Headers/stddef.c clang/test/Headers/stddefneeds.c clang/test/Headers/stddefneeds.cpp clang/test/Modules/implicit-declared-allocation-functions.cppm clang/test/Modules/macro-reexport.cpp clang/test/Modules/stddef.cpp clang/test/Sema/MicrosoftCompatibility.c clang/test/Sema/builtin-setjmp.c clang/test/Sema/c23-delayed-typo-correction-crashes.c clang/test/Sema/implicit-builtin-decl.c clang/test/SemaCXX/constructor-initializer.cpp clang/test/SemaCXX/no-implicit-builtin-decls.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc b/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc index 94b5ab1cb..dd7521d64 100644 --- a/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc +++ b/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc @@ -670,7 +670,8 @@ SYMBOL_VERSION(atoll, std::, <cstdlib>, "c++11") SYMBOL(atoll, None, <cstdlib>) SYMBOL(atoll, None, <stdlib.h>) SYMBOL_VERSION(atomic_compare_exchange_strong, std::, <atomic>, "c++11") -SYMBOL_VERSION(atomic_compare_exchange_strong_explicit, std::, <atomic>, "c++11") +SYMBOL_VERSION(atomic_compare_exchange_strong_explicit, std::, <atomic>, + "c++11") SYMBOL_VERSION(atomic_compare_exchange_weak, std::, <atomic>, "c++11") SYMBOL_VERSION(atomic_compare_exchange_weak_explicit, std::, <atomic>, "c++11") SYMBOL_VERSION(atomic_exchange, std::, <atomic>, "c++11") @@ -1053,7 +1054,8 @@ SYMBOL_VERSION(emit_on_flush, std::, <ostream>, "c++20") SYMBOL_VERSION(emit_on_flush, std::, <iostream>, "c++20") SYMBOL_VERSION(enable_if, std::, <type_traits>, "c++11") SYMBOL_VERSION(enable_if_t, std::, <type_traits>, "c++14") -SYMBOL_VERSION(enable_nonlocking_formatter_optimization, std::, <format>, "c++23") +SYMBOL_VERSION(enable_nonlocking_formatter_optimization, std::, <format>, + "c++23") SYMBOL_VERSION(enable_shared_from_this, std::, <memory>, "c++11") SYMBOL_VERSION(endian, std::, <bit>, "c++20") SYMBOL(endl, std::, <ostream>) @@ -1413,7 +1415,8 @@ SYMBOL_VERSION(hardware_destructive_interference_size, std::, <new>, "c++17") SYMBOL(has_facet, std::, <locale>) SYMBOL_VERSION(has_single_bit, std::, <bit>, "c++20") SYMBOL_VERSION(has_unique_object_representations, std::, <type_traits>, "c++17") -SYMBOL_VERSION(has_unique_object_representations_v, std::, <type_traits>, "c++17") +SYMBOL_VERSION(has_unique_object_representations_v, std::, <type_traits>, + "c++17") SYMBOL_VERSION(has_virtual_destructor, std::, <type_traits>, "c++11") SYMBOL_VERSION(has_virtual_destructor_v, std::, <type_traits>, "c++17") SYMBOL_VERSION(hecto, std::, <ratio>, "c++11") @@ -1662,7 +1665,8 @@ SYMBOL_VERSION(is_nothrow_copy_assignable_v, std::, <type_traits>, "c++17") SYMBOL_VERSION(is_nothrow_copy_constructible, std::, <type_traits>, "c++11") SYMBOL_VERSION(is_nothrow_copy_constructible_v, std::, <type_traits>, "c++17") SYMBOL_VERSION(is_nothrow_default_constructible, std::, <type_traits>, "c++11") -SYMBOL_VERSION(is_nothrow_default_constructible_v, std::, <type_traits>, "c++17") +SYMBOL_VERSION(is_nothrow_default_constructible_v, std::, <type_traits>, + "c++17") SYMBOL_VERSION(is_nothrow_destructible, std::, <type_traits>, "c++11") SYMBOL_VERSION(is_nothrow_destructible_v, std::, <type_traits>, "c++17") SYMBOL_VERSION(is_nothrow_invocable, std::, <type_traits>, "c++17") @@ -1688,9 +1692,12 @@ SYMBOL_VERSION(is_placeholder_v, std::, <functional>, "c++17") SYMBOL_VERSION(is_pod, std::, <type_traits>, "c++11") SYMBOL_VERSION(is_pod_v, std::, <type_traits>, "c++17") SYMBOL_VERSION(is_pointer, std::, <type_traits>, "c++11") -SYMBOL_VERSION(is_pointer_interconvertible_base_of, std::, <type_traits>, "c++20") -SYMBOL_VERSION(is_pointer_interconvertible_base_of_v, std::, <type_traits>, "c++20") -SYMBOL_VERSION(is_pointer_interconvertible_with_class, std::, <type_traits>, "c++20") +SYMBOL_VERSION(is_pointer_interconvertible_base_of, std::, <type_traits>, + "c++20") +SYMBOL_VERSION(is_pointer_interconvertible_base_of_v, std::, <type_traits>, + "c++20") +SYMBOL_VERSION(is_pointer_interconvertible_with_class, std::, <type_traits>, + "c++20") SYMBOL_VERSION(is_pointer_v, std::, <type_traits>, "c++17") SYMBOL_VERSION(is_polymorphic, std::, <type_traits>, "c++11") SYMBOL_VERSION(is_polymorphic_v, std::, <type_traits>, "c++17") @@ -1726,8 +1733,10 @@ SYMBOL_VERSION(is_trivially_copy_constructible, std::, <type_traits>, "c++11") SYMBOL_VERSION(is_trivially_copy_constructible_v, std::, <type_traits>, "c++17") SYMBOL_VERSION(is_trivially_copyable, std::, <type_traits>, "c++11") SYMBOL_VERSION(is_trivially_copyable_v, std::, <type_traits>, "c++17") -SYMBOL_VERSION(is_trivially_default_constructible, std::, <type_traits>, "c++11") -SYMBOL_VERSION(is_trivially_default_constructible_v, std::, <type_traits>, "c++17") +SYMBOL_VERSION(is_trivially_default_constructible, std::, <type_traits>, + "c++11") +SYMBOL_VERSION(is_trivially_default_constructible_v, std::, <type_traits>, + "c++17") SYMBOL_VERSION(is_trivially_destructible, std::, <type_traits>, "c++11") SYMBOL_VERSION(is_trivially_destructible_v, std::, <type_traits>, "c++17") SYMBOL_VERSION(is_trivially_move_assignable, std::, <type_traits>, "c++11") @@ -2398,7 +2407,8 @@ SYMBOL_VERSION(recursive_mutex, std::, <mutex>, "c++11") SYMBOL_VERSION(recursive_timed_mutex, std::, <mutex>, "c++11") SYMBOL_VERSION(reduce, std::, <numeric>, "c++17") SYMBOL_VERSION(ref, std::, <functional>, "c++11") -SYMBOL_VERSION(reference_constructs_from_temporary, std::, <type_traits>, "c++23") +SYMBOL_VERSION(reference_constructs_from_temporary, std::, <type_traits>, + "c++23") SYMBOL_VERSION(reference_converts_from_temporary, std::, <type_traits>, "c++23") SYMBOL_VERSION(reference_wrapper, std::, <functional>, "c++11") SYMBOL_VERSION(regex, std::, <regex>, "c++11") @@ -2968,7 +2978,8 @@ SYMBOL(ungetwc, None, <wchar.h>) SYMBOL_VERSION(uniform_int_distribution, std::, <random>, "c++11") SYMBOL_VERSION(uniform_random_bit_generator, std::, <random>, "c++20") SYMBOL_VERSION(uniform_real_distribution, std::, <random>, "c++11") -SYMBOL_VERSION(uninitialized_construct_using_allocator, std::, <memory>, "c++20") +SYMBOL_VERSION(uninitialized_construct_using_allocator, std::, <memory>, + "c++20") SYMBOL(uninitialized_copy, std::, <memory>) SYMBOL_VERSION(uninitialized_copy_n, std::, <memory>, "c++11") SYMBOL_VERSION(uninitialized_default_construct, std::, <memory>, "c++17") @@ -3370,7 +3381,8 @@ SYMBOL_VERSION(zoned_traits, std::chrono::, <chrono>, "c++20") SYMBOL_VERSION(par, std::execution::, <execution>, "c++17") SYMBOL_VERSION(par_unseq, std::execution::, <execution>, "c++17") SYMBOL_VERSION(parallel_policy, std::execution::, <execution>, "c++17") -SYMBOL_VERSION(parallel_unsequenced_policy, std::execution::, <execution>, "c++17") +SYMBOL_VERSION(parallel_unsequenced_policy, std::execution::, <execution>, + "c++17") SYMBOL_VERSION(seq, std::execution::, <execution>, "c++17") SYMBOL_VERSION(sequenced_policy, std::execution::, <execution>, "c++17") SYMBOL_VERSION(unseq, std::execution::, <execution>, "c++20") @@ -3384,7 +3396,8 @@ SYMBOL_VERSION(copy_options, std::filesystem::, <filesystem>, "c++17") SYMBOL_VERSION(copy_symlink, std::filesystem::, <filesystem>, "c++17") SYMBOL_VERSION(create_directories, std::filesystem::, <filesystem>, "c++17") SYMBOL_VERSION(create_directory, std::filesystem::, <filesystem>, "c++17") -SYMBOL_VERSION(create_directory_symlink, std::filesystem::, <filesystem>, "c++17") +SYMBOL_VERSION(create_directory_symlink, std::filesystem::, <filesystem>, + "c++17") SYMBOL_VERSION(create_hard_link, std::filesystem::, <filesystem>, "c++17") SYMBOL_VERSION(create_symlink, std::filesystem::, <filesystem>, "c++17") SYMBOL_VERSION(current_path, std::filesystem::, <filesystem>, "c++17") @@ -3417,7 +3430,8 @@ SYMBOL_VERSION(permissions, std::filesystem::, <filesystem>, "c++17") SYMBOL_VERSION(perms, std::filesystem::, <filesystem>, "c++17") SYMBOL_VERSION(proximate, std::filesystem::, <filesystem>, "c++17") SYMBOL_VERSION(read_symlink, std::filesystem::, <filesystem>, "c++17") -SYMBOL_VERSION(recursive_directory_iterator, std::filesystem::, <filesystem>, "c++17") +SYMBOL_VERSION(recursive_directory_iterator, std::filesystem::, <filesystem>, + "c++17") SYMBOL_VERSION(relative, std::filesystem::, <filesystem>, "c++17") SYMBOL_VERSION(remove, std::filesystem::, <filesystem>, "c++17") SYMBOL_VERSION(remove_all, std::filesystem::, <filesystem>, "c++17") @@ -3466,7 +3480,8 @@ SYMBOL_VERSION(list, std::pmr::, <list>, "c++17") SYMBOL_VERSION(map, std::pmr::, <map>, "c++17") SYMBOL_VERSION(match_results, std::pmr::, <regex>, "c++17") SYMBOL_VERSION(memory_resource, std::pmr::, <memory_resource>, "c++17") -SYMBOL_VERSION(monotonic_buffer_resource, std::pmr::, <memory_resource>, "c++17") +SYMBOL_VERSION(monotonic_buffer_resource, std::pmr::, <memory_resource>, + "c++17") SYMBOL_VERSION(multimap, std::pmr::, <map>, "c++17") SYMBOL_VERSION(multiset, std::pmr::, <set>, "c++17") SYMBOL_VERSION(new_delete_resource, std::pmr::, <memory_resource>, "c++17") @@ -3478,7 +3493,8 @@ SYMBOL_VERSION(set_default_resource, std::pmr::, <memory_resource>, "c++17") SYMBOL_VERSION(smatch, std::pmr::, <regex>, "c++17") SYMBOL_VERSION(stacktrace, std::pmr::, <stacktrace>, "c++23") SYMBOL_VERSION(string, std::pmr::, <string>, "c++17") -SYMBOL_VERSION(synchronized_pool_resource, std::pmr::, <memory_resource>, "c++17") +SYMBOL_VERSION(synchronized_pool_resource, std::pmr::, <memory_resource>, + "c++17") SYMBOL_VERSION(u16string, std::pmr::, <string>, "c++17") SYMBOL_VERSION(u32string, std::pmr::, <string>, "c++17") SYMBOL_VERSION(u8string, std::pmr::, <string>, "c++17") @@ -3486,7 +3502,8 @@ SYMBOL_VERSION(unordered_map, std::pmr::, <unordered_map>, "c++17") SYMBOL_VERSION(unordered_multimap, std::pmr::, <unordered_map>, "c++17") SYMBOL_VERSION(unordered_multiset, std::pmr::, <unordered_set>, "c++17") SYMBOL_VERSION(unordered_set, std::pmr::, <unordered_set>, "c++17") -SYMBOL_VERSION(unsynchronized_pool_resource, std::pmr::, <memory_resource>, "c++17") +SYMBOL_VERSION(unsynchronized_pool_resource, std::pmr::, <memory_resource>, + "c++17") SYMBOL_VERSION(vector, std::pmr::, <vector>, "c++17") SYMBOL_VERSION(wcmatch, std::pmr::, <regex>, "c++17") SYMBOL_VERSION(wsmatch, std::pmr::, <regex>, "c++17") @@ -3683,7 +3700,8 @@ SYMBOL_VERSION(set_difference_result, std::ranges::, <algorithm>, "c++20") SYMBOL_VERSION(set_intersection, std::ranges::, <algorithm>, "c++20") SYMBOL_VERSION(set_intersection_result, std::ranges::, <algorithm>, "c++20") SYMBOL_VERSION(set_symmetric_difference, std::ranges::, <algorithm>, "c++20") -SYMBOL_VERSION(set_symmetric_difference_result, std::ranges::, <algorithm>, "c++20") +SYMBOL_VERSION(set_symmetric_difference_result, std::ranges::, <algorithm>, + "c++20") SYMBOL_VERSION(set_union, std::ranges::, <algorithm>, "c++20") SYMBOL_VERSION(set_union_result, std::ranges::, <algorithm>, "c++20") SYMBOL_VERSION(shift_left, std::ranges::, <algorithm>, "c++23") @@ -3714,8 +3732,10 @@ SYMBOL_VERSION(uninitialized_copy, std::ranges::, <memory>, "c++20") SYMBOL_VERSION(uninitialized_copy_n, std::ranges::, <memory>, "c++20") SYMBOL_VERSION(uninitialized_copy_n_result, std::ranges::, <memory>, "c++20") SYMBOL_VERSION(uninitialized_copy_result, std::ranges::, <memory>, "c++20") -SYMBOL_VERSION(uninitialized_default_construct, std::ranges::, <memory>, "c++20") -SYMBOL_VERSION(uninitialized_default_construct_n, std::ranges::, <memory>, "c++20") +SYMBOL_VERSION(uninitialized_default_construct, std::ranges::, <memory>, + "c++20") +SYMBOL_VERSION(uninitialized_default_construct_n, std::ranges::, <memory>, + "c++20") SYMBOL_VERSION(uninitialized_fill, std::ranges::, <memory>, "c++20") SYMBOL_VERSION(uninitialized_fill_n, std::ranges::, <memory>, "c++20") SYMBOL_VERSION(uninitialized_move, std::ranges::, <memory>, "c++20") @@ -3723,7 +3743,8 @@ SYMBOL_VERSION(uninitialized_move_n, std::ranges::, <memory>, "c++20") SYMBOL_VERSION(uninitialized_move_n_result, std::ranges::, <memory>, "c++20") SYMBOL_VERSION(uninitialized_move_result, std::ranges::, <memory>, "c++20") SYMBOL_VERSION(uninitialized_value_construct, std::ranges::, <memory>, "c++20") -SYMBOL_VERSION(uninitialized_value_construct_n, std::ranges::, <memory>, "c++20") +SYMBOL_VERSION(uninitialized_value_construct_n, std::ranges::, <memory>, + "c++20") SYMBOL_VERSION(unique, std::ranges::, <algorithm>, "c++20") SYMBOL_VERSION(unique_copy, std::ranges::, <algorithm>, "c++20") SYMBOL_VERSION(unique_copy_result, std::ranges::, <algorithm>, "c++20") @@ -3858,4 +3879,3 @@ SYMBOL_VERSION(transform, std::views::, <ranges>, "c++20") SYMBOL_VERSION(values, std::views::, <ranges>, "c++20") SYMBOL_VERSION(zip, std::views::, <ranges>, "c++23") SYMBOL_VERSION(zip_transform, std::views::, <ranges>, "c++23") - `````````` </details> https://github.com/llvm/llvm-project/pull/146227 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits