[PATCH] D11844: [Modules] More descriptive diagnostics for misplaced import directive

Serge Pavlov via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 7 13:18:48 PDT 2015


sepavloff created this revision.
sepavloff added a subscriber: cfe-commits.

If an import directive was put into wrong context, the error message was obscure,
complaining on misbalanced braces. To get more descriptive messages, annotation
tokens related to modules are processed where they must not be seen.

http://reviews.llvm.org/D11844

Files:
  include/clang/Sema/Sema.h
  lib/Parse/ParseDeclCXX.cpp
  lib/Parse/ParseStmt.cpp
  lib/Parse/Parser.cpp
  lib/Sema/SemaDecl.cpp
  test/Modules/auto-module-import.m
  test/Modules/malformed.cpp
  test/Modules/misplaced.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11844.31539.patch
Type: text/x-patch
Size: 9935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150807/1dbedf1d/attachment.bin>


More information about the cfe-commits mailing list