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

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 13 08:08:23 PST 2023


Author: kadir çetinkaya
Date: 2023-11-13T17:08:19+01:00
New Revision: 9aefa5cb679a6f42a0d343c93a25a66b0374b3c6

URL: https://github.com/llvm/llvm-project/commit/9aefa5cb679a6f42a0d343c93a25a66b0374b3c6
DIFF: https://github.com/llvm/llvm-project/commit/9aefa5cb679a6f42a0d343c93a25a66b0374b3c6.diff

LOG: [clangd] Improve sys header mapping (#72122)

Added: 
    

Modified: 
    clang-tools-extra/clangd/index/CanonicalIncludes.cpp

Removed: 
    


################################################################################
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>"},


        


More information about the cfe-commits mailing list