[clang-tools-extra] 0db08e5 - [clangd] Map bits/stdint-intn.h and bits/stdint-uintn.h to cstdint.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 10 05:16:04 PDT 2020
Author: Benjamin Kramer
Date: 2020-10-10T14:13:42+02:00
New Revision: 0db08e59c9d2d3b004ea61f96d823edff283ed25
URL: https://github.com/llvm/llvm-project/commit/0db08e59c9d2d3b004ea61f96d823edff283ed25
DIFF: https://github.com/llvm/llvm-project/commit/0db08e59c9d2d3b004ea61f96d823edff283ed25.diff
LOG: [clangd] Map bits/stdint-intn.h and bits/stdint-uintn.h to cstdint.
These are private glibc headers containing parts of the implementation
of stdint.h.
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 120f121c7278..a63a6bd82a15 100644
--- a/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
+++ b/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
@@ -420,6 +420,8 @@ void CanonicalIncludes::addSystemHeadersMapping(const LangOptions &Language) {
{"bits/signum.h", "<csignal>"},
{"bits/sigset.h", "<csignal>"},
{"bits/sigstack.h", "<csignal>"},
+ {"bits/stdint-intn.h", "<cstdint>"},
+ {"bits/stdint-uintn.h", "<cstdint>"},
{"bits/stdio_lim.h", "<cstdio>"},
{"bits/sys_errlist.h", "<cstdio>"},
{"bits/time.h", "<ctime>"},
More information about the cfe-commits
mailing list