mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
IWYU: Add workaround mapping for std::hash
When using GCC 8's standard library IWYU thinks that `<system_error>` must be included to get `std::hash`. Add a mapping for `<utility>`.
This commit is contained in:
parent
72f57845d3
commit
276d3c7afe
@ -37,6 +37,7 @@
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
// Get rid of some windows macros:
|
||||
|
@ -52,6 +52,9 @@
|
||||
#{ symbol: [ "std::pair", private, "<map>", public ] },
|
||||
#{ symbol: [ "std::pair", private, "<set>", public ] },
|
||||
|
||||
# HACK: iwyu wrongly thinks that <system_error> is needed for std::hash
|
||||
{ symbol: [ "std::hash", private, "<utility>", public ] },
|
||||
|
||||
# __decay_and_strip is used internally in the C++11 standard library.
|
||||
# IWYU does not classify it as internal and suggests to add <type_traits>.
|
||||
# To ignore it, we simply map it to a file that is included anyway.
|
||||
|
Loading…
Reference in New Issue
Block a user