@@ -359,35 +359,35 @@ namespace cppwinrt
359359 using std::get;
360360
361361 w.write_printf (" 0x%08X,0x%04X,0x%04X,{ 0x%02X,0x%02X,0x%02X,0x%02X,0x%02X,0x%02X,0x%02X,0x%02X }" ,
362- get<uint32_t >(get<ElemSig>(args[0 ].value ).value ),
363- get<uint16_t >(get<ElemSig>(args[1 ].value ).value ),
364- get<uint16_t >(get<ElemSig>(args[2 ].value ).value ),
365- get<uint8_t >(get<ElemSig>(args[3 ].value ).value ),
366- get<uint8_t >(get<ElemSig>(args[4 ].value ).value ),
367- get<uint8_t >(get<ElemSig>(args[5 ].value ).value ),
368- get<uint8_t >(get<ElemSig>(args[6 ].value ).value ),
369- get<uint8_t >(get<ElemSig>(args[7 ].value ).value ),
370- get<uint8_t >(get<ElemSig>(args[8 ].value ).value ),
371- get<uint8_t >(get<ElemSig>(args[9 ].value ).value ),
372- get<uint8_t >(get<ElemSig>(args[10 ].value ).value ));
362+ get<std:: uint32_t >(get<ElemSig>(args[0 ].value ).value ),
363+ get<std:: uint16_t >(get<ElemSig>(args[1 ].value ).value ),
364+ get<std:: uint16_t >(get<ElemSig>(args[2 ].value ).value ),
365+ get<std:: uint8_t >(get<ElemSig>(args[3 ].value ).value ),
366+ get<std:: uint8_t >(get<ElemSig>(args[4 ].value ).value ),
367+ get<std:: uint8_t >(get<ElemSig>(args[5 ].value ).value ),
368+ get<std:: uint8_t >(get<ElemSig>(args[6 ].value ).value ),
369+ get<std:: uint8_t >(get<ElemSig>(args[7 ].value ).value ),
370+ get<std:: uint8_t >(get<ElemSig>(args[8 ].value ).value ),
371+ get<std:: uint8_t >(get<ElemSig>(args[9 ].value ).value ),
372+ get<std:: uint8_t >(get<ElemSig>(args[10 ].value ).value ));
373373 }
374374
375375 static void write_guid_comment (writer& w, std::vector<FixedArgSig> const & args)
376376 {
377377 using std::get;
378378
379379 w.write_printf (" %08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X" ,
380- get<uint32_t >(get<ElemSig>(args[0 ].value ).value ),
381- get<uint16_t >(get<ElemSig>(args[1 ].value ).value ),
382- get<uint16_t >(get<ElemSig>(args[2 ].value ).value ),
383- get<uint8_t >(get<ElemSig>(args[3 ].value ).value ),
384- get<uint8_t >(get<ElemSig>(args[4 ].value ).value ),
385- get<uint8_t >(get<ElemSig>(args[5 ].value ).value ),
386- get<uint8_t >(get<ElemSig>(args[6 ].value ).value ),
387- get<uint8_t >(get<ElemSig>(args[7 ].value ).value ),
388- get<uint8_t >(get<ElemSig>(args[8 ].value ).value ),
389- get<uint8_t >(get<ElemSig>(args[9 ].value ).value ),
390- get<uint8_t >(get<ElemSig>(args[10 ].value ).value ));
380+ get<std:: uint32_t >(get<ElemSig>(args[0 ].value ).value ),
381+ get<std:: uint16_t >(get<ElemSig>(args[1 ].value ).value ),
382+ get<std:: uint16_t >(get<ElemSig>(args[2 ].value ).value ),
383+ get<std:: uint8_t >(get<ElemSig>(args[3 ].value ).value ),
384+ get<std:: uint8_t >(get<ElemSig>(args[4 ].value ).value ),
385+ get<std:: uint8_t >(get<ElemSig>(args[5 ].value ).value ),
386+ get<std:: uint8_t >(get<ElemSig>(args[6 ].value ).value ),
387+ get<std:: uint8_t >(get<ElemSig>(args[7 ].value ).value ),
388+ get<std:: uint8_t >(get<ElemSig>(args[8 ].value ).value ),
389+ get<std:: uint8_t >(get<ElemSig>(args[9 ].value ).value ),
390+ get<std:: uint8_t >(get<ElemSig>(args[10 ].value ).value ));
391391 }
392392
393393 static void write_category (writer& w, TypeDef const & type, std::string_view const & category)
@@ -561,15 +561,15 @@ namespace cppwinrt
561561
562562 if (param.Flags ().In ())
563563 {
564- format = " uint32_t%, %" ;
564+ format = " std:: uint32_t%, %" ;
565565 }
566566 else if (param_signature->ByRef ())
567567 {
568- format = " uint32_t*%, %*" ;
568+ format = " std:: uint32_t*%, %*" ;
569569 }
570570 else
571571 {
572- format = " uint32_t%, %" ;
572+ format = " std:: uint32_t%, %" ;
573573 }
574574
575575 w.write (format, bind<write_array_size_name>(param), bind<write_abi_arg_out>(param_signature->Type ()));
@@ -605,7 +605,7 @@ namespace cppwinrt
605605
606606 if (type.is_szarray ())
607607 {
608- w.write (" uint32_t* __%Size, %**" , method_signature.return_param_name (), type);
608+ w.write (" std:: uint32_t* __%Size, %**" , method_signature.return_param_name (), type);
609609 }
610610 else
611611 {
@@ -748,7 +748,7 @@ namespace cppwinrt
748748 break ;
749749 }
750750
751- auto format = R"( virtual int32_t __stdcall %(%) noexcept = 0;
751+ auto format = R"( virtual std:: int32_t __stdcall %(%) noexcept = 0;
752752)" ;
753753
754754 for (auto && method : info.type .MethodList ())
@@ -788,7 +788,7 @@ namespace cppwinrt
788788 }
789789
790790
791- auto format = R"( virtual int32_t __stdcall %(%) noexcept = 0;
791+ auto format = R"( virtual std:: int32_t __stdcall %(%) noexcept = 0;
792792)" ;
793793
794794 auto abi_guard = w.push_abi_types (true );
@@ -821,7 +821,7 @@ namespace cppwinrt
821821 {
822822 struct WINRT_IMPL_ABI_DECL type : unknown_abi
823823 {
824- virtual int32_t __stdcall Invoke(%) noexcept = 0;
824+ virtual std:: int32_t __stdcall Invoke(%) noexcept = 0;
825825 };
826826 };
827827)" ;
@@ -1054,7 +1054,7 @@ namespace cppwinrt
10541054 if (category == param_category::array_type)
10551055 {
10561056 auto format = R"(
1057- uint32_t %_impl_size{};
1057+ std:: uint32_t %_impl_size{};
10581058 %* %{};)" ;
10591059
10601060 auto abi_guard = w.push_abi_types (true );
@@ -1317,7 +1317,7 @@ namespace cppwinrt
13171317 w.write (R"(
13181318 auto data() const
13191319 {
1320- uint8_t* data{};
1320+ std:: uint8_t* data{};
13211321 static_cast<D const&>(*this).template as<IBufferByteAccess>()->Buffer(&data);
13221322 return data;
13231323 }
@@ -1328,8 +1328,8 @@ namespace cppwinrt
13281328 w.write (R"(
13291329 auto data() const
13301330 {
1331- uint8_t* data{};
1332- uint32_t capacity{};
1331+ std:: uint8_t* data{};
1332+ std:: uint32_t capacity{};
13331333 check_hresult(static_cast<D const&>(*this).template as<IMemoryBufferByteAccess>()->GetBuffer(&data, &capacity));
13341334 return data;
13351335 }
@@ -1480,7 +1480,7 @@ namespace cppwinrt
14801480 using iterator_concept = std::input_iterator_tag;
14811481 using iterator_category = std::input_iterator_tag;
14821482 using value_type = T;
1483- using difference_type = ptrdiff_t;
1483+ using difference_type = std:: ptrdiff_t;
14841484 using pointer = void;
14851485 using reference = T;
14861486)" );
@@ -1491,7 +1491,7 @@ namespace cppwinrt
14911491 using iterator_concept = std::input_iterator_tag;
14921492 using iterator_category = std::input_iterator_tag;
14931493 using value_type = Windows::Foundation::IInspectable;
1494- using difference_type = ptrdiff_t;
1494+ using difference_type = std:: ptrdiff_t;
14951495 using pointer = void;
14961496 using reference = Windows::Foundation::IInspectable;
14971497)" );
@@ -1874,7 +1874,7 @@ namespace cppwinrt
18741874
18751875 if (is_noexcept (method))
18761876 {
1877- format = R"( int32_t __stdcall %(%) noexcept final
1877+ format = R"( std:: int32_t __stdcall %(%) noexcept final
18781878 {
18791879% typename D::abi_guard guard(this->shim());
18801880 %
@@ -1884,7 +1884,7 @@ namespace cppwinrt
18841884 }
18851885 else
18861886 {
1887- format = R"( int32_t __stdcall %(%) noexcept final try
1887+ format = R"( std:: int32_t __stdcall %(%) noexcept final try
18881888 {
18891889% typename D::abi_guard guard(this->shim());
18901890 %
@@ -1906,7 +1906,7 @@ namespace cppwinrt
19061906 {
19071907 // Special-case IMap*::Lookup to look for a TryLookup here, to avoid extranous throw/originates
19081908 std::string tryLookupUpCall = " this->shim().TryLookup" ;
1909- format = R"( int32_t __stdcall %(%) noexcept final try
1909+ format = R"( std:: int32_t __stdcall %(%) noexcept final try
19101910 {
19111911% typename D::abi_guard guard(this->shim());
19121912 if constexpr (has_TryLookup_v<D, K>)
@@ -2596,7 +2596,7 @@ struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable<T, D, %>
25962596 {
25972597 delegate(H&& handler) : implements_delegate<%, H>(std::forward<H>(handler)) {}
25982598
2599- int32_t __stdcall Invoke(%) noexcept final try
2599+ std:: int32_t __stdcall Invoke(%) noexcept final try
26002600 {
26012601% %
26022602 return 0;
@@ -2801,7 +2801,7 @@ struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable<T, D, %>
28012801
28022802 static void write_struct_equality (writer& w, std::vector<std::pair<std::string_view, std::string>> const & fields)
28032803 {
2804- for (size_t i = 0 ; i != fields.size (); ++i)
2804+ for (std:: size_t i = 0 ; i != fields.size (); ++i)
28052805 {
28062806 w.write (" left.% == right.%" , fields[i].first , fields[i].first );
28072807
@@ -2877,9 +2877,9 @@ struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable<T, D, %>
28772877 return false ;
28782878 };
28792879
2880- for (size_t left = 0 ; left < structs.size (); ++left)
2880+ for (std:: size_t left = 0 ; left < structs.size (); ++left)
28812881 {
2882- for (size_t right = left + 1 ; right < structs.size (); ++right)
2882+ for (std:: size_t right = left + 1 ; right < structs.size (); ++right)
28832883 {
28842884 if (depends (w, structs[left], structs[right]))
28852885 {
0 commit comments