Makes ThreadSpecified visible during AST traversals.
Kevin Tew
vardecl_threadspecified.patch (2.6 KB)
Makes ThreadSpecified visible during AST traversals.
Kevin Tew
vardecl_threadspecified.patch (2.6 KB)
Two comments:
(1) This should be a bitfield with width 1:
+ bool ThreadSpecified;
(2) These should be formatted to fit in 80-columns:
+ : ValueDecl(DK, DC, L, Id, T, PrevDecl), Init(0),
ThreadSpecified(false) { SClass = SC; }
and
+ NewVD = VarDecl::Create(Context, CurContext,
D.getIdentifierLoc(), II, R, SC, LastDeclarator);
+ NewVD->setThreadSpecified(ThreadSpecified);
- Daniel