vsapsai added a comment.

In addition to the currently proposed approach

  #if ...
  #error ...
  #endif
  // header content

I also tried

  #if ...
  #error ...
  #else
  // header content
  #endif

It allows to have fewer error messages but can be more surprising. It can look 
like the only problem is a missing macro but after defining it you can discover 
that the situations is more complex. Also in some cases omitting a header 
content can lead to other errors which can be confusing too.


https://reviews.llvm.org/D45470



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to