-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiwyu_mappings.imp
94 lines (94 loc) · 6 KB
/
iwyu_mappings.imp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[
# https://github.com/include-what-you-use/include-what-you-use/blob/208fbfffa5d69364b9f78e427caa443441279283/libcxx.imp
{ include: ["<__functional_base>", private, "<functional>", public ] },
{ include: ["<__mutex_base>", private, "<mutex>", public ] },
{ symbol: [ "std::declval", private, "<utility>", public ] },
{ symbol: [ "std::forward", private, "<utility>", public ] },
{ symbol: [ "std::move", private, "<utility>", public ] },
{ symbol: [ "std::nullptr_t", private, "<cstddef>", public ] },
{ symbol: [ "std::string", private, "<string>", public ] },
# Custom (STL - C headers)
{ include: [ "<stddef.h>", public, "<cstddef>", public ] },
{ include: [ "<stdint.h>", public, "<cstdint>", public ] },
{ include: [ "<stdlib.h>", public, "<cstdlib>", public ] },
# Custom (STL - Integers)
{ symbol: [ "uint64_t", private, "<cstddef>", public ] },
{ symbol: [ "std::uint64_t", private, "<cstddef>", public ] },
# Custom (STL - Math)
{ symbol: [ "std::abs", private, "<cmath>", public ] },
{ symbol: [ "abs", private, "<cmath>", public ] },
{ symbol: [ "std::exp", private, "<cmath>", public ] },
{ symbol: [ "std::log", private, "<cmath>", public ] },
{ symbol: [ "std::sqrt", private, "<cmath>", public ] },
{ symbol: [ "std::pow", private, "<cmath>", public ] },
{ symbol: [ "std::log10", private, "<cmath>", public ] },
{ symbol: [ "std::cos", private, "<cmath>", public ] },
{ symbol: [ "std::cosh", private, "<cmath>", public ] },
# Custom (STL - Internal headers)
{ include: ["@<__memory/.*>", private, "<memory>", public ] },
{ include: ["@<__functional/.*>", private, "<functional>", public ] },
{ include: ["@<__iterator/.*>", private, "<iterator>", public ] },
{ include: ["@<__utility/.*>", private, "<utility>", public ] },
{ include: ["@<__compare/.*>", private, "<compare>", public ] },
{ include: ["@<__chrono/.*>", private, "<chrono>", public ] },
{ include: ["@<__filesystem/.*>", private, "<filesystem>", public ] },
{ include: ["@<__algorithm/.*>", private, "<algorithm>", public ] },
{ include: ["@<__variant/.*>", private, "<variant>", public ] },
{ include: ["@<__numeric/.*>", private, "<numeric>", public ] },
{ include: ["@<__type_traits/.*>", private, "<type_traits>", public ] },
{ include: ["@<__math/.*>", private, "<cmath>", public ] },
{ include: ["<__tuple>", private, "<tuple>", public ] },
{ include: ["<__tuple>", private, "<utility>", public ] },
{ include: ["<__tuple>", private, "<unordered_map>", public ] },
{ include: ["<__bit_reference>", private, "<vector>", public ] },
{ include: ["<__fwd/string_view.h>", private, "<string_view>", public ] },
{ include: ["<__fwd/fstream.h>", private, "<fstream>", public ] },
{ include: ["<__fwd/ostream.h>", private, "<ostream>", public ] },
{ include: ["<__fwd/sstream.h>", private, "<sstream>", public ] },
{ include: ["<bits/types/struct_FILE.h>", private, "<cstdio>", public ] },
# Custom (STL - Others)
{ symbol: [ "std::hash", private, "<functional>", public ] },
{ symbol: [ "std::hash", private, "<unordered_map>", public ] },
{ symbol: [ "std::hash", private, "<unordered_set>", public ] },
{ symbol: [ "std::FILE", private, "<cstdio>", public ] },
{ symbol: [ "char_traits", private, "<string>", public ] },
{ symbol: [ "errno", private, "<cerrno>", public ] },
# Custom (Eigen)
{ include: ["@<Eigen/src/Core/.*>", private, "<Eigen/Core>", public ] },
{ include: ["@\"src/Core/.*", private, "<Eigen/Core>", public ] },
{ include: ["\"src/Core/DenseBase.h\"", private, "<Eigen/Core>", public ] },
{ include: ["\"src/Core/MatrixBase.h\"", private, "<Eigen/Core>", public ] },
{ include: ["\"src/Core/ArrayBase.h\"", private, "<Eigen/Core>", public ] },
{ include: ["<Eigen/src/plugins/ArrayCwiseUnaryOps.h>", private, "<Eigen/Core>", public ] },
{ include: ["<Eigen/src/plugins/ReshapedMethods.h>", private, "<Eigen/Core>", public ] },
{ include: ["@<Eigen/src/Cholesky/.*>", private, "<Eigen/Cholesky>", public ] },
{ include: ["@<Eigen/src/Eigenvalues/.*>", private, "<Eigen/Eigenvalues>", public ] },
{ include: ["@<Eigen/src/Householder/.*>", private, "<Eigen/Householder>", public ] },
{ include: ["@<Eigen/src/SparseCore/.*>", private, "<Eigen/SparseCore>", public ] },
{ include: ["@<Eigen/src/LU/.*>", private, "<Eigen/LU>", public ] },
{ include: ["@<Eigen/src/QR/.*>", private, "<Eigen/QR>", public ] },
{ include: ["@<Eigen/src/SVD/.*>", private, "<Eigen/SVD>", public ] },
{ include: ["@<Eigen/src/IterativeLinearSolvers/.*>", private, "<Eigen/IterativeLinearSolvers>", public ] },
{ include: ["@<Eigen/src/SparseCholesky/.*>", private, "<Eigen/SparseCholesky>", public ] },
{ include: ["@<Eigen/src/OrderingMethods/.*>", private, "<Eigen/OrderingMethods>", public ] },
# Custom (toml++)
{ include: ["@<toml\\+\\+/impl/.*>", private, "<toml++/toml.h>", public ] },
# Custom (trompeloeil)
{ include: ["<trompeloeil.hpp>", private, "\"trompeloeil_catch2.h\"", public ] },
{ include: ["<trompeloeil/mock.hpp>", private, "\"trompeloeil_catch2.h\"", public ] },
# Custom (Pybind11)
{ include: ["<cast.h>", private, "<pybind11/pybind11.h>", public ] },
{ include: ["<pytypes.h>", private, "<pybind11/pybind11.h>", public ] },
{ include: ["<pybind11/cast.h>", private, "<pybind11/pybind11.h>", public ] },
{ include: ["<pybind11/pytypes.h>", private, "<pybind11/pybind11.h>", public ] },
# Custom (lyra)
{ include: ["<lyra/cli.hpp>", private, "<lyra/lyra.hpp>", public ] },
{ include: ["<lyra/opt.hpp>", private, "<lyra/lyra.hpp>", public ] },
{ include: ["<lyra/parser.hpp>", private, "<lyra/lyra.hpp>", public ] },
{ include: ["<lyra/args.hpp>", private, "<lyra/lyra.hpp>", public ] },
# Custom (cpp-stat-bench)
{ include: ["<stat_bench/bench_impl/benchmark_case_register.h>", private, "<stat_bench/benchmark_macros.h>", public ] },
{ include: ["<stat_bench/bench_impl/default_main.h>", private, "<stat_bench/benchmark_macros.h>", public ] },
# Custom (cpp-stat-bench)
{ include: ["<ApprovalTests.hpp>", private, "\"fmt_approval_tests.h\"", public ] },
]