From 80c6792200380699bf8cc9837ac2c02e64a1b78b Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Wed, 5 Jul 2023 08:21:28 +0200 Subject: [PATCH] [clang][Tooling] Add mapping for make_error_code Differential Revision: https://reviews.llvm.org/D154473 --- clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc b/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc index c8da9f2..ae620a0 100644 --- a/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc +++ b/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc @@ -347,6 +347,11 @@ SYMBOL(atomic_wchar_t, None, ) // which is tricky to disambiguate without type information. // Don't set any header for it, as it comes with the type header. SYMBOL(get, std::, /*no headers*/) +// Similarly make_error_{code,condition} also have different overloads (errc, +// io_errc, future_errc) and each of them are provided by relevant headers +// providing the type. +SYMBOL(make_error_code, std::, /*no headers*/) +SYMBOL(make_error_condition, std::, /*no headers*/) // cppreference symbol index page was missing these symbols. // Remove them when the cppreference offline archive catches up. -- 2.7.4