Please, never mind this. I figured it out. <br><br><div class="gmail_quote">On Thu, Oct 28, 2010 at 6:49 PM, Larisse Voufo <span dir="ltr"><<a href="mailto:lvoufo@cs.indiana.edu">lvoufo@cs.indiana.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">By the way, here the exact line (bolded) of the generated DeclNode.inc at which it is complaining:<br>
-------------------------------------------<br>DECL_CONTEXT(TranslationUnit)<br>DECL_CONTEXT(Namespace)<br><b>DECL_CONTEXT(Concept)</b><br>
DECL_CONTEXT(ObjCMethod)<br>DECL_CONTEXT(LinkageSpec)<br>-------------------------------------------<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Thu, Oct 28, 2010 at 6:46 PM, Larisse Voufo <span dir="ltr"><<a href="mailto:lvoufo@cs.indiana.edu" target="_blank">lvoufo@cs.indiana.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Folks, <br><br>If anyone can quickly answer this question for me, it'd definitely help by a great deal.<br>
I am trying to add a node into the AST, but it seems there is at least one important parameter I'm overlooking.<br>
<br>I figured out that I was supposed to modify the DeclNodes.td file by inserting the following at some appropriate spot:<br>----------------------------------------<br>def Concept : DDecl<Named, 1>, DeclContext; <br>
----------------------------------------<br><br>However, this action is breaking my builds, and I'm not sure how to fix it.<br><br>--------------------------------------------------------<br>llvm[2]: Compiling ParseConceptDecl.cpp for Debug+Asserts build<br>
In file included from /Users/lvoufo/llvm/tools/clang/lib/Parse/../../include/clang/AST/DeclBase.h:1187,<br> from /Users/lvoufo/llvm/tools/clang/lib/Parse/../../include/clang/AST/Decl.h:18,<br> from /Users/lvoufo/llvm/tools/clang/lib/Parse/../../include/clang/AST/ASTContext.h:21,<br>
from /Users/lvoufo/llvm/tools/clang/lib/Parse/../../include/clang/AST/Stmt.h:25,<br> from /Users/lvoufo/llvm/tools/clang/lib/Parse/../../include/clang/AST/Expr.h:18,<br> from /Users/lvoufo/llvm/tools/clang/lib/Parse/../../include/clang/AST/DeclCXX.h:18,<br>
from /Users/lvoufo/llvm/tools/clang/lib/Parse/../../include/clang/AST/DeclTemplate.h:17,<br> from /Users/lvoufo/llvm/tools/clang/lib/Parse/../../include/clang/AST/DeclConcept.h:13,<br> from ParseConceptDecl.cpp:88:<br>
/Users/lvoufo/llvm/tools/clang/lib/Parse/../../include/clang/AST/DeclNodes.inc:415: error: expected ‘,’ or ‘...’ before ‘*’ token<br>/Users/lvoufo/llvm/tools/clang/lib/Parse/../../include/clang/AST/DeclNodes.inc:415: error: ISO C++ forbids declaration of ‘ConceptDecl’ with no type<br>
make[2]: *** [/Users/lvoufo/llvm/tools/clang/lib/Parse/Debug+Asserts/ParseConceptDecl.o] Error 1<br>make[1]: *** [Parse/.makeall] Error 2<br>make: *** [all] Error 1<br>
--------------------------------------------------------<br><br>What am I missing?<br><br>Thanks,<br><font color="#888888"><br>-- Larisse.<br><br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>