[clang-tools-extra] [clangd] Improve sys header mapping (PR #72122)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 13 06:54:22 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clangd

Author: kadir çetinkaya (kadircet)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/72122.diff


1 Files Affected:

- (modified) clang-tools-extra/clangd/index/CanonicalIncludes.cpp (+2) 


``````````diff
diff --git a/clang-tools-extra/clangd/index/CanonicalIncludes.cpp b/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
index 9d6c09cd2ab4b71..9ba4d7a95415bc0 100644
--- a/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
+++ b/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
@@ -668,6 +668,8 @@ const std::pair<llvm::StringRef, llvm::StringRef> IncludeMappings[] = {
     {"bits/syslog-path.h", "<sys/syslog.h>"},
     {"bits/termios.h", "<termios.h>"},
     {"bits/types.h", "<sys/types.h>"},
+    {"bits/types/siginfo_t.h", "<sys/siginfo.h>"},
+    {"bits/types/struct_itimerspec.h", "<sys/time.h>"},
     {"bits/uio.h", "<sys/uio.h>"},
     {"bits/ustat.h", "<sys/ustat.h>"},
     {"bits/utmp.h", "<utmp.h>"},

``````````

</details>


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


More information about the cfe-commits mailing list