summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-07-05 01:42:07 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-07-05 01:42:07 +0000
commite03a65458135813f680420760c4a14a99c24995f (patch)
treefb9e14410e3f5d57c9ba3a73ea33e094391e6203 /clang/lib/Parse
parentb320ef9fab604326507e011bf04aab17dd84a7d6 (diff)
downloadbcm5719-llvm-e03a65458135813f680420760c4a14a99c24995f.tar.gz
bcm5719-llvm-e03a65458135813f680420760c4a14a99c24995f.zip
[modules ts] Declarations from a module interface unit are only visible outside
the module if declared in an export block. llvm-svn: 307115
Diffstat (limited to 'clang/lib/Parse')
-rw-r--r--clang/lib/Parse/Parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index af29b5e9c67..1ed7ef96635 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -526,6 +526,8 @@ void Parser::LateTemplateParserCleanupCallback(void *P) {
}
bool Parser::ParseFirstTopLevelDecl(DeclGroupPtrTy &Result) {
+ Actions.ActOnStartOfTranslationUnit();
+
// C11 6.9p1 says translation units must have at least one top-level
// declaration. C++ doesn't have this restriction. We also don't want to
// complain if we have a precompiled header, although technically if the PCH
OpenPOWER on IntegriCloud