Skip to content

Conversation

@DaanDeMeyer
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented May 20, 2025

@llvm/pr-subscribers-clang-tools-extra

@llvm/pr-subscribers-clangd

Author: Daan De Meyer (DaanDeMeyer)

Changes

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

2 Files Affected:

  • (modified) clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp (+1)
  • (modified) clang-tools-extra/clangd/index/CanonicalIncludes.cpp (+1)
diff --git a/clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp b/clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp
index 469323f0ee9d7..81db67d965754 100644
--- a/clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp
+++ b/clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp
@@ -654,6 +654,7 @@ const HeaderMapCollector::RegexHeaderMap *getSTLPostfixHeaderMap() {
       {"bits/syscall.h$", "<sys/syscall.h>"},
       {"bits/syslog-path.h$", "<sys/syslog.h>"},
       {"bits/termios.h$", "<termios.h>"},
+      {"bits/timex.h$", "<sys/timex.h>"},
       {"bits/types.h$", "<sys/types.h>"},
       {"bits/typesizes.h$", "<sys/types.h>"},
       {"bits/uio.h$", "<sys/uio.h>"},
diff --git a/clang-tools-extra/clangd/index/CanonicalIncludes.cpp b/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
index 785ec4086ea76..d0a351df2a2ee 100644
--- a/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
+++ b/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
@@ -669,6 +669,7 @@ const std::pair<llvm::StringRef, llvm::StringRef> IncludeMappings[] = {
     {"bits/syscall.h", "<sys/syscall.h>"},
     {"bits/syslog-path.h", "<sys/syslog.h>"},
     {"bits/termios.h", "<termios.h>"},
+    {"bits/timex.h", "<sys/timex.h>"},
     {"bits/types.h", "<sys/types.h>"},
     {"bits/types/siginfo_t.h", "<sys/siginfo.h>"},
     {"bits/types/struct_itimerspec.h", "<sys/time.h>"},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants