[PATCH] Add support for __declspec(thread) under -fms-extensions

Reid Kleckner rnk at google.com
Tue Apr 29 12:59:49 PDT 2014


Hi rsmith,

I had to steal a bit from ScopeDepthOrObjCQuals.  This prevents us from
parsing more than 63 nested function prototypes in a parameter context.
We already can't parse more than 127, which is an arbitrary limit
(PR19607).  If we care about supporting this, we should add an extra
table to ASTContext for looking up large scope depth values like we do
for parameter indices greater than 254.

http://reviews.llvm.org/D3551

Files:
  include/clang/AST/Decl.h
  include/clang/Basic/Attr.td
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Basic/Specifiers.h
  include/clang/Sema/DeclSpec.h
  lib/AST/DeclPrinter.cpp
  lib/Sema/DeclSpec.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/SemaCXX/declspec-thread.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3551.8939.patch
Type: text/x-patch
Size: 6262 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140429/990b59ac/attachment.bin>


More information about the cfe-commits mailing list