[cfe-commits] [PATCH] Fix scoping issues for late-parsed attributes in nested classes.

Delesley Hutchins delesley at google.com
Thu Mar 15 09:22:01 PDT 2012


This patch fixes a scoping issue where late parsed attributes didn't
work correctly in nested classes, e.g.

class Foo {
  class Bar {
    Mutex mu;
    int a GUARDED_BY(mu);  // unexpected error -- can't find identifier mu.
  };
};

http://codereview.appspot.com/5836044/

-- 
DeLesley Hutchins | Software Engineer | delesley at google.com | 505-206-0315
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-fix-nested-class-scope.patch
Type: application/octet-stream
Size: 5077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120315/3a8ecda7/attachment.obj>


More information about the cfe-commits mailing list