Hi David,<br><br>Sorry for breaking the build. Yes I think it is the appropriate fix. Thanks!<br><br>Michael.<br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 9:46 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Feb 22, 2013 at 9:15 AM, Michael Han <span dir="ltr"><<a href="mailto:fragmentshaders@gmail.com" target="_blank">fragmentshaders@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Author: hanm<br>
Date: Fri Feb 22 11:15:32 2013<br>
New Revision: 175900<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=175900&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=175900&view=rev</a><br>
Log:<br>
[Sema] Semantic analysis for empty-declaration and attribute-declaration.<br>
<br>
Introduce a new AST Decl node "EmptyDecl" to model empty-declaration. Have attributes from attribute-declaration appertain<br>
to the EmptyDecl node by creating the AST representations of these attributes and attach them to the EmptyDecl node so these<br>
attributes can be sema checked just as attributes attached to "normal" declarations.<br>
<br>
<br></blockquote><div><br></div></div></div><div>This breaks the -Werror build of libclang:<br><br><div>llvm/src/tools/clang/tools/libclang/CIndex.cpp:4428:11: error: enumeration value 'Empty' not handled in switch [-Werror,-Wswitch]</div>

<div>  switch (D->getKind()) {</div><div>          ^</div><div><br></div><div>I've 'fixed' (more like suppressed) this in r175902 - could you take a look & correct this as appropriate? (maybe add a libclang test? Not sure how that code is tested)<span class="HOEnZb"><font color="#888888"><br>

<br>- David</font></span></div></div><div><div class="h5"><div> </div><br></div></div></div></div></div></blockquote></div>