From f04bc7e7fb940dbdc918e23b62ced76d5c3b50a9 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Sat, 30 Nov 2024 10:35:09 +0000 Subject: [PATCH] Move import std to examples src begin. (for clangd) --- examples/src/attributes.cpp | 4 ++-- examples/src/curry.cpp | 2 +- examples/src/go_interface.cpp | 2 +- examples/src/left_fold.cpp | 2 +- examples/src/make.cpp | 2 +- examples/src/meta.cpp | 2 +- examples/src/overloaded.cpp | 2 +- examples/src/pipe.cpp | 1 + examples/src/public_cast.cpp | 1 + examples/src/reverse.cpp | 2 +- examples/src/switch.cpp | 2 +- examples/src/times.cpp | 2 +- examples/src/tuple.cpp | 2 +- 13 files changed, 14 insertions(+), 12 deletions(-) diff --git a/examples/src/attributes.cpp b/examples/src/attributes.cpp index 78ef18e..1184b50 100644 --- a/examples/src/attributes.cpp +++ b/examples/src/attributes.cpp @@ -1,6 +1,6 @@ -#include -#include import std; +#include +#include template struct AttributeData { diff --git a/examples/src/curry.cpp b/examples/src/curry.cpp index f51c9c2..101c79a 100644 --- a/examples/src/curry.cpp +++ b/examples/src/curry.cpp @@ -1,5 +1,5 @@ -#include import std; +#include auto main() -> int { constexpr auto f = utempl::Curry([](auto... args) { diff --git a/examples/src/go_interface.cpp b/examples/src/go_interface.cpp index f062b5d..41239d6 100644 --- a/examples/src/go_interface.cpp +++ b/examples/src/go_interface.cpp @@ -1,5 +1,5 @@ -#include import std; +#include struct SomeInterfaceImpl { int a; diff --git a/examples/src/left_fold.cpp b/examples/src/left_fold.cpp index 3986e7e..a979cf7 100644 --- a/examples/src/left_fold.cpp +++ b/examples/src/left_fold.cpp @@ -1,5 +1,5 @@ -#include import std; +#include auto main() -> int { constexpr auto value = utempl::LeftFold( diff --git a/examples/src/make.cpp b/examples/src/make.cpp index 25630e7..6922bc1 100644 --- a/examples/src/make.cpp +++ b/examples/src/make.cpp @@ -1,5 +1,5 @@ -#include import std; +#include auto main() -> int { constexpr auto arr = utempl::TupleMaker>::Make(); diff --git a/examples/src/meta.cpp b/examples/src/meta.cpp index 5e0b1af..ce16554 100644 --- a/examples/src/meta.cpp +++ b/examples/src/meta.cpp @@ -1,5 +1,5 @@ -#include import std; +#include auto main() -> int { constexpr std::array types = {utempl::kTypeId, utempl::kTypeId}; diff --git a/examples/src/overloaded.cpp b/examples/src/overloaded.cpp index 03f848c..fd248b5 100644 --- a/examples/src/overloaded.cpp +++ b/examples/src/overloaded.cpp @@ -1,5 +1,5 @@ -#include import std; +#include auto main() -> int { utempl::Overloaded([](auto&& arg) {}, diff --git a/examples/src/pipe.cpp b/examples/src/pipe.cpp index 2b8085c..5e40f28 100644 --- a/examples/src/pipe.cpp +++ b/examples/src/pipe.cpp @@ -1,3 +1,4 @@ +import std; #include struct Container { diff --git a/examples/src/public_cast.cpp b/examples/src/public_cast.cpp index 3849bd0..049ba15 100644 --- a/examples/src/public_cast.cpp +++ b/examples/src/public_cast.cpp @@ -1,3 +1,4 @@ +import std; #include using namespace utempl; // NOLINT diff --git a/examples/src/reverse.cpp b/examples/src/reverse.cpp index 4b1b33a..1e18423 100644 --- a/examples/src/reverse.cpp +++ b/examples/src/reverse.cpp @@ -1,5 +1,5 @@ -#include import std; +#include auto main() -> int { auto tuple = Reverse(utempl::Tuple{4, 3, 2, 1}); diff --git a/examples/src/switch.cpp b/examples/src/switch.cpp index 95a399d..50251e8 100644 --- a/examples/src/switch.cpp +++ b/examples/src/switch.cpp @@ -1,5 +1,5 @@ -#include import std; +#include auto main() -> int { static_assert(utempl::Switch(utempl::Tuple{2, 1, 0}, utempl::Tuple{0, 1, 2}, 0, [](int value) { diff --git a/examples/src/times.cpp b/examples/src/times.cpp index 6c868fe..dcb9058 100644 --- a/examples/src/times.cpp +++ b/examples/src/times.cpp @@ -1,5 +1,5 @@ -#include import std; +#include auto main() -> int { std::size_t i = 0; diff --git a/examples/src/tuple.cpp b/examples/src/tuple.cpp index 5fae143..4c35557 100644 --- a/examples/src/tuple.cpp +++ b/examples/src/tuple.cpp @@ -1,6 +1,6 @@ +import std; #include #include -import std; auto main() -> int { using utempl::literals::operator""_c;