<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">That should do it.  Committed.<div><br><div>
<div>Sean</div>

</div>
<br><div><div>On Jan 16, 2014, at 9:59 AM, Sean Callanan <<a href="mailto:scallanan@apple.com">scallanan@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Thanks, Steve!  I’m looking into replacing that line with<div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 149, 175);"><span style="">        cxx_method_decl-></span>addAttr<span style="">(</span>clang<span style="">::</span>UsedAttr<span style="">::</span>CreateImplicit<span style="">(*</span>m_clang_ast<span style="">));</span></div><div><span style=""><br></span></div><div>I’ll commit if that fixes it.</div><div><span style=""><br></span></div><div>
<div>Sean</div>

</div>
<br><div style=""><div>On Jan 16, 2014, at 8:20 AM, Steve Pucci <<a href="mailto:spucci@google.com">spucci@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">The lldb top-of-tree currently fails with an error adding a Clang attribute.  It appears to be a result of this Clang change yesterday (my emphasis):<div><br></div><div><br><div><br></div><div><div>* 5914278..: Aaron Ballman 2014-01-16 Distinguish between attributes explicitly written at the request of the user, and attributes implicitly generated to assist in bookkeeping by the compiler. This is done so by table generating a CreateImplicit method for each attribute.</div>
<div>  commit 591427889ead8b7c4c3211ef8cc55a9501eac064</div><div>  Author: Aaron Ballman <<a href="mailto:aaron@aaronballman.com">aaron@aaronballman.com</a>></div><div>  Date:   Thu Jan 16 13:03:14 2014 +0000</div><div>
<br></div><div>  Distinguish between attributes explicitly written at the request of the user, and attributes implicitly generated to assist in bookkeeping by the compiler. This is done so by table generating a CreateImplicit method for each attribute.</div>
<div><br></div><div> <b> Additionally, remove the optional nature of the spelling list index when creating attributes. This is supported by table generating a Spelling enumeration when the spellings for an attribute are distinct enough to warrant it.</b></div>
<div><br></div><div>  git-svn-id: <a href="https://llvm.org/svn/llvm-project/cfe/trunk@199378">https://llvm.org/svn/llvm-project/cfe/trunk@199378</a> 91177308-0d34-0410-b5e6-96231b3b80d8</div></div><div><br></div><div><br>
</div><div><br></div><div>The error is attached.  I'm not sure how to get the new spelling list parameter (it's available as attribute_list.getAttributeSpellingListIndex() if the right attribute list is handy) or if one of the other candidates will work instead.</div>
<div><br></div><div>Thanks,</div><div>  Steve</div><div><br></div><div><div>/usr/local/google/home/spucci/lldb/work2/llvm/tools/lldb/source/Symbol/ClangASTType.cpp: In member function ‘clang::CXXMethodDecl* lldb_private::ClangASTType::AddMethodToCXXRecordType(const char*, const lldb_private::ClangASTType&, lldb::AccessType, bool, bool, bool, bool, bool, bool)’:</div>
<div>/usr/local/google/home/spucci/lldb/work2/llvm/tools/lldb/source/Symbol/ClangASTType.cpp:4748:79: error: no matching function for call to ‘clang::UsedAttr::UsedAttr(clang::SourceRange, clang::ASTContext&)’</div><div>
         cxx_method_decl->addAttr(::new (*m_ast) UsedAttr(SourceRange(), *m_ast));</div><div>                                                                               ^</div><div>/usr/local/google/home/spucci/lldb/work2/llvm/tools/lldb/source/Symbol/ClangASTType.cpp:4748:79: note: candidates are:</div>
<div>In file included from /usr/local/google/home/spucci/lldb/work2/llvm/tools/clang/include/clang/AST/Attr.h:144:0,</div><div>                 from /usr/local/google/home/spucci/lldb/work2/llvm/tools/lldb/source/Symbol/ClangASTType.cpp:16:</div>
<div>/usr/local/google/home/spucci/lldb/work2/build/tools/clang/include/clang/AST/Attrs.inc:5187:3: note: clang::UsedAttr::UsedAttr(clang::SourceRange, clang::ASTContext&, unsigned int)</div><div>   UsedAttr(SourceRange R, ASTContext &Ctx</div>
<div>   ^</div><div>/usr/local/google/home/spucci/lldb/work2/build/tools/clang/include/clang/AST/Attrs.inc:5187:3: note:   candidate expects 3 arguments, 2 provided</div><div>/usr/local/google/home/spucci/lldb/work2/build/tools/clang/include/clang/AST/Attrs.inc:5178:7: note: constexpr clang::UsedAttr::UsedAttr(const clang::UsedAttr&)</div>
<div> class UsedAttr : public InheritableAttr {</div><div>       ^</div><div>/usr/local/google/home/spucci/lldb/work2/build/tools/clang/include/clang/AST/Attrs.inc:5178:7: note:   candidate expects 1 argument, 2 provided</div>
<div>/usr/local/google/home/spucci/lldb/work2/build/tools/clang/include/clang/AST/Attrs.inc:5178:7: note: constexpr clang::UsedAttr::UsedAttr(clang::UsedAttr&&)</div><div>/usr/local/google/home/spucci/lldb/work2/build/tools/clang/include/clang/AST/Attrs.inc:5178:7: note:   candidate expects 1 argument, 2 provided</div>
</div><div><br></div></div></div>
_______________________________________________<br>lldb-dev mailing list<br><a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br></blockquote></div><br></div></div>_______________________________________________<br>lldb-dev mailing list<br><a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev<br></blockquote></div><br></div></body></html>