[clang] [include-cleaner] Support multi-header symbols in mapping generator (PR #147720)

Ildikó Cseri via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 24 04:53:58 PDT 2025


================
@@ -690,6 +1391,23 @@ SYMBOL(atol, None, <stdlib.h>)
 SYMBOL(atoll, std::, <cstdlib>)
 SYMBOL(atoll, None, <cstdlib>)
 SYMBOL(atoll, None, <stdlib.h>)
+SYMBOL(atomic, std::, <atomic>)
+SYMBOL(atomic, std::, <memory>)
+SYMBOL(atomic_bool, std::, <atomic>)
+SYMBOL(atomic_bool, std::, <memory>)
+SYMBOL(atomic_bool, std::, <stdatomic.h>)
----------------
cseriildi wrote:

Hmm, if there is a symbol with the same namespace in the generated file and the special file, when I build it is crashing, so I either have to remove all the atomic symbols from the special, or instead of changing `std::` to `None` in the code I should exclude the `*.h` headers for symbols with not None namespace, and add them back in the special file. 
What do you think?


https://github.com/llvm/llvm-project/pull/147720


More information about the cfe-commits mailing list