[PATCH] D107296: Treat inttypes.h as a built-in header

Mark Rowe via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 2 10:46:59 PDT 2021


markrowe created this revision.
markrowe requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

It wraps a system header. This allows the system module map to declare a
module for it.

https://bugs.llvm.org/show_bug.cgi?id=51307


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107296

Files:
  clang/lib/Lex/ModuleMap.cpp


Index: clang/lib/Lex/ModuleMap.cpp
===================================================================
--- clang/lib/Lex/ModuleMap.cpp
+++ clang/lib/Lex/ModuleMap.cpp
@@ -375,6 +375,7 @@
 bool ModuleMap::isBuiltinHeader(StringRef FileName) {
   return llvm::StringSwitch<bool>(FileName)
            .Case("float.h", true)
+           .Case("inttypes.h", true)
            .Case("iso646.h", true)
            .Case("limits.h", true)
            .Case("stdalign.h", true)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107296.363524.patch
Type: text/x-patch
Size: 470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210802/ca636340/attachment.bin>


More information about the cfe-commits mailing list