[PATCH] D86069: [clang] When loading preamble from AST file, re-export modules in Sema.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 18 05:01:30 PDT 2020
sammccall added inline comments.
================
Comment at: clang/test/PCH/preamble-modules.cpp:8
+
+#ifndef MAIN_FILE
+#define MAIN_FILE
----------------
what are these ifdefs about? you never seem to define this symbol
(Possible you're copying from a test that is doing something tricky like being run in two modes or including itself? Or did you mean to give different flags for the include vs emit pch?)
================
Comment at: clang/test/PCH/preamble-modules.cpp:14
+// Main section.
+MyType foo;
+#endif
----------------
This seems like currently it's never getting parsed as MAIN_FILE is never defined.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86069/new/
https://reviews.llvm.org/D86069
More information about the cfe-commits
mailing list