[clang] [include-cleaner] Support multi-header symbols in mapping generator (PR #147720)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 4 05:02:44 PDT 2025
=?utf-8?q?Ildikó?= Cseri <cseriildiko at icloud.com>,
=?utf-8?q?Ildikó?= Cseri <cseriildiko at icloud.com>,
=?utf-8?q?Ildikó?= Cseri <cseriildiko at icloud.com>,
=?utf-8?q?Ildikó?= Cseri <cseriildiko at icloud.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/147720 at github.com>
================
@@ -279,155 +17,6 @@ SYMBOL(abs, None, <stdlib.h>)
SYMBOL(abs, None, <cmath>)
SYMBOL(abs, None, <math.h>)
-// Only add headers for the generic atomic template.
-// Ignore variants (std::weak_ptr, std::shared_ptr).
-SYMBOL(atomic, std::, <atomic>)
-// atomic_* family symbols. <stdatomic.h> is for C compatibility.
-SYMBOL(atomic_bool, std::, <atomic>)
-SYMBOL(atomic_bool, None, <atomic>)
-SYMBOL(atomic_bool, None, <stdatomic.h>)
----------------
itislu wrote:
There is an issue with this lot of type aliases `atomic_bool` - `atomic_wchar_t`:
- For C, a mapping to `threads.h` was added, but they are not declared there, only in `stdatomic.h`.
- For C++, a mapping to `memory` was added, but they are not declared there, only in `atomic`.
Additionally to the type aliases, `_Atomic` has the same issue.
https://github.com/llvm/llvm-project/pull/147720
More information about the cfe-commits
mailing list