diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-07-05 01:42:07 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-07-05 01:42:07 +0000 |
| commit | e03a65458135813f680420760c4a14a99c24995f (patch) | |
| tree | fb9e14410e3f5d57c9ba3a73ea33e094391e6203 /clang/lib/Parse | |
| parent | b320ef9fab604326507e011bf04aab17dd84a7d6 (diff) | |
| download | bcm5719-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.cpp | 2 |
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 |

