Skip to content

Commit

Permalink
[clang][Tooling] Add mapping for make_error_code
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D154473
  • Loading branch information
kadircet committed Jul 5, 2023
1 parent 3db36d6 commit 80c6792
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ SYMBOL(atomic_wchar_t, None, <stdatomic.h>)
// 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.
Expand Down

0 comments on commit 80c6792

Please sign in to comment.