diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-23 04:06:09 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-11-23 04:06:09 +0000 |
commit | 34f30516aa7f32cbff61dc9066f0b332dfd88c2b (patch) | |
tree | 3761579a8a9c29f366a7f5a6c805567dfecef066 /clang/lib/Parse/ParseInit.cpp | |
parent | 5c6eab21ebaf93c68b5d1df8b845518ea6f54b63 (diff) | |
download | bcm5719-llvm-34f30516aa7f32cbff61dc9066f0b332dfd88c2b.tar.gz bcm5719-llvm-34f30516aa7f32cbff61dc9066f0b332dfd88c2b.zip |
Generate a marker token when entering or leaving a submodule when building a
module. Use the marker to diagnose cases where we try to transition between
submodules when not at the top level (most likely because a closing brace was
missing at the end of a header file, but is also possible if submodule headers
attempt to do something fundamentally non-modular, like our .def files).
llvm-svn: 195543
Diffstat (limited to 'clang/lib/Parse/ParseInit.cpp')
-rw-r--r-- | clang/lib/Parse/ParseInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseInit.cpp b/clang/lib/Parse/ParseInit.cpp index 37f74bbcd51..56d8edcdb41 100644 --- a/clang/lib/Parse/ParseInit.cpp +++ b/clang/lib/Parse/ParseInit.cpp @@ -512,7 +512,7 @@ bool Parser::ParseMicrosoftIfExistsBraceInitializer(ExprVector &InitExprs, return false; } - while (Tok.isNot(tok::eof)) { + while (!isEofOrEom()) { trailingComma = false; // If we know that this cannot be a designation, just parse the nested // initializer directly. |