ThreadSpecified visibility in VarDecl

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

Attempt #2

Kevin

Daniel Dunbar wrote:

vardecl_threadspecified_2.patch (2.65 KB)