Re: [PATCH] D22270: [ASTImporter] Properly report the locations of anonymous structs declared as part of named fields

2016-07-12 Thread Manman Ren via cfe-commits
manmanren added a comment. I am not sure if we should handle this inside findAnonymousStructOrUnionIndex. Here is the definition of anonymous structure I found: An unnamed member whose type specifier is a structure specifier with no tag is called an anonymous structure. Cheers, Manman ==

Re: [PATCH] D22270: [ASTImporter] Properly report the locations of anonymous structs declared as part of named fields

2016-07-13 Thread Manman Ren via cfe-commits
manmanren added a comment. In http://reviews.llvm.org/D22270#483027, @spyffe wrote: > Thank you very much for your review, Manman! I can implement all your > individual fixes, those look fine. In answer to two of your bigger > questions, though: > > - I see what you mean about the definition

Re: [PATCH] D22270: [ASTImporter] Properly report the locations of anonymous structs declared as part of named fields

2016-07-14 Thread Manman Ren via cfe-commits
manmanren accepted this revision. manmanren added a comment. This revision is now accepted and ready to land. LGTM. Thanks, Manman Repository: rL LLVM https://reviews.llvm.org/D22270 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

Re: [PATCH] D22171: [ObjC Availability] Implement parser support for Objective-C's @available

2016-07-15 Thread Manman Ren via cfe-commits
manmanren accepted this revision. manmanren added a comment. This revision is now accepted and ready to land. LGTM. Manman https://reviews.llvm.org/D22171 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[PATCH] D17865: Add replacement = "xxx" to DeprecatedAttr.

2016-03-03 Thread Manman Ren via cfe-commits
manmanren created this revision. manmanren added reviewers: dexonsmith, rjmccall. manmanren added a subscriber: cfe-commits. This can be used to display Fix-Its. We only add this to GNU attributes. Since it now has two optional arguments, and the common parsing does not handle "replacement = ", w

Re: [PATCH] D17865: Add replacement = "xxx" to DeprecatedAttr.

2016-03-09 Thread Manman Ren via cfe-commits
manmanren added a comment. Ping http://reviews.llvm.org/D17865 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15314: Fix a bug in unavailable checking

2016-03-09 Thread Manman Ren via cfe-commits
manmanren added a comment. Ping http://reviews.llvm.org/D15314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17865: Add replacement = "xxx" to DeprecatedAttr.

2016-03-09 Thread Manman Ren via cfe-commits
manmanren added a comment. Hi Aaron, Thanks for the review! > I like the idea of a potential fixit being provided by the attribute, but I > do not agree with the way the feature is surfaced in this patch. > > For the GNU-style attribute, the named argument functionality is sufficiently > no

r263149 - Add TreatUnavailableAsInvalid for the verification-only mode in InitListChecker.

2016-03-10 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Mar 10 12:53:19 2016 New Revision: 263149 URL: http://llvm.org/viewvc/llvm-project?rev=263149&view=rev Log: Add TreatUnavailableAsInvalid for the verification-only mode in InitListChecker. Given the following test case: typedef struct { const char *name; id field; } Tes

r263171 - Add has_feature objc_class_property.

2016-03-10 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Mar 10 17:51:03 2016 New Revision: 263171 URL: http://llvm.org/viewvc/llvm-project?rev=263171&view=rev Log: Add has_feature objc_class_property. rdar://23891898 Modified: cfe/trunk/lib/Lex/PPMacroExpansion.cpp cfe/trunk/test/SemaObjC/objc-class-property.m Modified

r263172 - Print strict in Availability attribute when it is on.

2016-03-10 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Mar 10 17:54:12 2016 New Revision: 263172 URL: http://llvm.org/viewvc/llvm-project?rev=263172&view=rev Log: Print strict in Availability attribute when it is on. Modified: cfe/trunk/test/Sema/attr-print.c cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp Modified: cfe/

Re: [PATCH] D17865: Add replacement = "xxx" to DeprecatedAttr.

2016-03-10 Thread Manman Ren via cfe-commits
manmanren added a comment. Uploading a new patch addressing Aaron's comments: 1> Add an optional string argument for fix-it, instead of the original proposal of named argument `Replacement = "xxx"` This actually simplifies the patch a lot 2> Add testing cases to make sure we don't accept a fix-it

Re: [PATCH] D17865: Add an optional string argument to DeprecatedAttr for Fix-It.

2016-03-10 Thread Manman Ren via cfe-commits
manmanren retitled this revision from "Add replacement = "xxx" to DeprecatedAttr." to "Add an optional string argument to DeprecatedAttr for Fix-It.". manmanren updated this revision to Diff 50374. http://reviews.llvm.org/D17865 Files: include/clang/Basic/Attr.td lib/Lex/PPMacroExpansion.cp

Re: [PATCH] D17865: Add an optional string argument to DeprecatedAttr for Fix-It.

2016-03-10 Thread Manman Ren via cfe-commits
manmanren added inline comments. Comment at: utils/TableGen/ClangAttrEmitter.cpp:1234 @@ +1233,3 @@ +if ((Spelling == "deprecated" || Spelling == "gnu::deprecated") && +Variety != "GNU" && index == 1) + continue; This does not look pre

Re: [PATCH] D17865: Add an optional string argument to DeprecatedAttr for Fix-It.

2016-03-11 Thread Manman Ren via cfe-commits
manmanren updated this revision to Diff 50502. http://reviews.llvm.org/D17865 Files: include/clang/Basic/Attr.td lib/Lex/PPMacroExpansion.cpp lib/Sema/SemaDeclAttr.cpp test/SemaCXX/attr-deprecated-replacement-error.cpp test/SemaCXX/attr-deprecated-replacement-fixit.cpp test/SemaCXX/cx

Re: [PATCH] D17865: Add an optional string argument to DeprecatedAttr for Fix-It.

2016-03-11 Thread Manman Ren via cfe-commits
manmanren marked 3 inline comments as done. manmanren added a comment. Upload patch to address review comments. Thanks, Manman http://reviews.llvm.org/D17865 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

Re: [PATCH] D17865: Add an optional string argument to DeprecatedAttr for Fix-It.

2016-03-14 Thread Manman Ren via cfe-commits
manmanren added a comment. In http://reviews.llvm.org/D17865#374659, @aaron.ballman wrote: > Aside from the missing attribute documentation, looks good to me. Hi Aaron, Which document are you referring to? "include/clang/Basic/AttrDocs.td"? We don't have a section for DeprecatedAttr, should I

Re: [PATCH] D17865: Add an optional string argument to DeprecatedAttr for Fix-It.

2016-03-14 Thread Manman Ren via cfe-commits
manmanren updated this revision to Diff 50682. http://reviews.llvm.org/D17865 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/Lex/PPMacroExpansion.cpp lib/Sema/SemaDeclAttr.cpp test/SemaCXX/attr-deprecated-replacement-error.cpp test/SemaCXX/attr-deprecated-repla

Re: r263687 - Add an optional named argument (replacement = "xxx") to AvailabilityAttr.

2016-03-18 Thread Manman Ren via cfe-commits
g::IdentifierLoc*, clang::AvailabilityChange const&, >> clang::AvailabilityChange const&, clang::AvailabilityChange const&, >> clang::SourceLocation, clang::Expr const*, clang::AttributeList::Syntax, >> clang::SourceLocation, clang::Expr const*) >> /mnt/b/saniti

r263854 - [TLS on Darwin] use CXX_FAST_TLS calling convention for tls_init.

2016-03-18 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Mar 18 18:35:21 2016 New Revision: 263854 URL: http://llvm.org/viewvc/llvm-project?rev=263854&view=rev Log: [TLS on Darwin] use CXX_FAST_TLS calling convention for tls_init. This makes sure we don't generate a lot of code to spill/reload CSRs when calling tls_init from the

r263687 - Add an optional named argument (replacement = "xxx") to AvailabilityAttr.

2016-03-19 Thread Manman Ren via cfe-commits
Author: mren Date: Wed Mar 16 22:09:55 2016 New Revision: 263687 URL: http://llvm.org/viewvc/llvm-project?rev=263687&view=rev Log: Add an optional named argument (replacement = "xxx") to AvailabilityAttr. This commit adds a named argument to AvailabilityAttr, while r263652 adds an optional string

r263752 - Revert r263687 for ubsan bot failure.

2016-03-19 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Mar 17 17:13:50 2016 New Revision: 263752 URL: http://llvm.org/viewvc/llvm-project?rev=263752&view=rev Log: Revert r263687 for ubsan bot failure. Modified: cfe/trunk/include/clang/Basic/Attr.td cfe/trunk/include/clang/Basic/AttrDocs.td cfe/trunk/include/clang/Pa

r263652 - Add an optional string argument to DeprecatedAttr for Fix-It.

2016-03-19 Thread Manman Ren via cfe-commits
Author: mren Date: Wed Mar 16 13:50:49 2016 New Revision: 263652 URL: http://llvm.org/viewvc/llvm-project?rev=263652&view=rev Log: Add an optional string argument to DeprecatedAttr for Fix-It. We only add this to __attribute__((deprecated)). Differential Revision: http://reviews.llvm.org/D17865

Re: r263687 - Add an optional named argument (replacement = "xxx") to AvailabilityAttr.

2016-03-19 Thread Manman Ren via cfe-commits
pr const*) > /mnt/b/sanitizer-buildbot3/sanitizer-x86_64-linux-fast/build/llvm/tools/clang/include/clang/Sema/AttributeList.h:798:7 > #3 0x4465a73 in clang::Parser::Pa > > > > > On Wed, Mar 16, 2016 at 8:09 PM, Manman Ren via cfe-commits < > cfe-commits@lists.llvm.

r263955 - NFC: wrap Availability-related data in its own struct in AttributeList.

2016-03-21 Thread Manman Ren via cfe-commits
Author: mren Date: Mon Mar 21 12:26:40 2016 New Revision: 263955 URL: http://llvm.org/viewvc/llvm-project?rev=263955&view=rev Log: NFC: wrap Availability-related data in its own struct in AttributeList. This makes it easy to add more data into Availability. Modified: cfe/trunk/include/clang/

r263958 - Add replacement = "xxx" to AvailabilityAttr.

2016-03-21 Thread Manman Ren via cfe-commits
Author: mren Date: Mon Mar 21 12:30:55 2016 New Revision: 263958 URL: http://llvm.org/viewvc/llvm-project?rev=263958&view=rev Log: Add replacement = "xxx" to AvailabilityAttr. This commit adds a named argument to AvailabilityAttr, while r263652 adds an optional string argument to __attribute__((d

r264167 - ObjC: Handle boolean fixed type for enum.

2016-03-23 Thread Manman Ren via cfe-commits
Author: mren Date: Wed Mar 23 11:28:28 2016 New Revision: 264167 URL: http://llvm.org/viewvc/llvm-project?rev=264167&view=rev Log: ObjC: Handle boolean fixed type for enum. Before this commit, we assert failure in ImplicitCastExpr "unheralded conversion to bool". This commit fixes the assertion b

r264196 - ObjC: add getter/setter for class properties to global pool.

2016-03-23 Thread Manman Ren via cfe-commits
Author: mren Date: Wed Mar 23 16:39:31 2016 New Revision: 264196 URL: http://llvm.org/viewvc/llvm-project?rev=264196&view=rev Log: ObjC: add getter/setter for class properties to global pool. rdar://problem/25323072 Modified: cfe/trunk/lib/Sema/SemaObjCProperty.cpp cfe/trunk/test/SemaObj

[PATCH] D18461: ObjCXX: Warn undeclared identifiers.

2016-03-24 Thread Manman Ren via cfe-commits
manmanren created this revision. manmanren added reviewers: rsmith, rjmccall. manmanren added a subscriber: cfe-commits. Instantiation dependence were not being handled correctly for OpqaueValueExpr AST nodes. As a result, if an undeclared identifier was used in a CXXNewExpr that is assigned to a

Re: [PATCH] D18461: ObjCXX: Warn undeclared identifiers.

2016-03-25 Thread Manman Ren via cfe-commits
manmanren added a comment. In http://reviews.llvm.org/D18461#383218, @rjmccall wrote: > Oh, you know, this should really propagate all the dependence bits, not just > instantiation-dependence. It would be safer, at least. You could probably > find a contrived example involving value-dependenc

r264444 - [ObjCXX] Warn undeclared identifiers.

2016-03-25 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Mar 25 13:43:46 2016 New Revision: 26 URL: http://llvm.org/viewvc/llvm-project?rev=26&view=rev Log: [ObjCXX] Warn undeclared identifiers. Instantiation dependence were not being handled correctly for OpqaueValueExpr AST nodes. As a result, if an undeclared identifie

Re: [PATCH] D15314: Fix a bug in unavailable checking

2016-01-11 Thread Manman Ren via cfe-commits
manmanren added a comment. Ping :] http://reviews.llvm.org/D15314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15599: [CodeGen] Fix a crash that occurs when attribute "naked" is attached to a c++ member function

2016-01-20 Thread Manman Ren via cfe-commits
manmanren added a subscriber: manmanren. manmanren added a comment. Thanks for working on this! A few comments inline. Manman Comment at: lib/CodeGen/CodeGenFunction.cpp:1962 @@ +1961,3 @@ +for (auto *U : I->users()) + InstrsToRemove.push_back(cast(U)); + -

Re: [PATCH] D15935: Improve diagnostics for literal conversion to Boolean

2016-01-21 Thread Manman Ren via cfe-commits
manmanren added a subscriber: manmanren. manmanren added a comment. Thanks for working on this. This looks good to me overall, but I am not the expert on Sema :] Cheers, Manman Comment at: lib/Sema/SemaChecking.cpp:6985 @@ -6984,6 +6984,3 @@ SmallString<16> PrettyTargetValu

r258727 - Move ObjCPropertyDecl to before ObjCContainerDecl.

2016-01-25 Thread Manman Ren via cfe-commits
Author: mren Date: Mon Jan 25 15:52:26 2016 New Revision: 258727 URL: http://llvm.org/viewvc/llvm-project?rev=258727&view=rev Log: Move ObjCPropertyDecl to before ObjCContainerDecl. After we add ObjCPropertyDecl::isClassProperty, we can use it in ObjCContainerDecl to define filter to iterate over

Re: [PATCH] D15599: [CodeGen] Fix a crash that occurs when attribute "naked" is attached to a c++ member function

2016-01-25 Thread Manman Ren via cfe-commits
manmanren added inline comments. Comment at: lib/CodeGen/CodeGenFunction.cpp:1998 @@ +1997,3 @@ + if (auto *T = EntryBB->getTerminator()) +T->eraseFromParent(); + Yes, you are right. http://reviews.llvm.org/D15599

r258735 - Update comments to match the implementation.

2016-01-25 Thread Manman Ren via cfe-commits
Author: mren Date: Mon Jan 25 16:37:47 2016 New Revision: 258735 URL: http://llvm.org/viewvc/llvm-project?rev=258735&view=rev Log: Update comments to match the implementation. Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp URL: http://llvm.org/vi

[PATCH] D16564: Fix an issue where backend crashes after frontend emits an error message

2016-01-25 Thread Manman Ren via cfe-commits
manmanren created this revision. manmanren added reviewers: echristo, rafael, ahatanak. manmanren added a subscriber: cfe-commits. It can happen that frontend emits error message when releasing the builder. When that happens, we emit the error message and continue to invoke backend. Backend will

r258824 - Use instance_properties instead of properties. NFC.

2016-01-26 Thread Manman Ren via cfe-commits
Author: mren Date: Tue Jan 26 12:05:23 2016 New Revision: 258824 URL: http://llvm.org/viewvc/llvm-project?rev=258824&view=rev Log: Use instance_properties instead of properties. NFC. All current properties are instance properties. This is the second patch in a series of patches to support class

r258834 - Class Property: parse property attribute (class).

2016-01-26 Thread Manman Ren via cfe-commits
Author: mren Date: Tue Jan 26 12:52:43 2016 New Revision: 258834 URL: http://llvm.org/viewvc/llvm-project?rev=258834&view=rev Log: Class Property: parse property attribute (class). This is the third patch in a series of patches to support class properties in addition to instance properties in obj

r258979 - Class Property: handle class properties.

2016-01-27 Thread Manman Ren via cfe-commits
Author: mren Date: Wed Jan 27 14:00:32 2016 New Revision: 258979 URL: http://llvm.org/viewvc/llvm-project?rev=258979&view=rev Log: Class Property: handle class properties. At places where we handle instance properties, if necessary. rdar://23891898 Modified: cfe/trunk/lib/AST/DeclObjC.cpp

r258980 - Class Property: create accessors (class methods) for class property.

2016-01-27 Thread Manman Ren via cfe-commits
Author: mren Date: Wed Jan 27 14:10:32 2016 New Revision: 258980 URL: http://llvm.org/viewvc/llvm-project?rev=258980&view=rev Log: Class Property: create accessors (class methods) for class property. Change a few places where we assume property accessors can only be instance methods. rdar://2389

r259070 - Class Property: class property and instance property can have the same name.

2016-01-28 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Jan 28 12:49:28 2016 New Revision: 259070 URL: http://llvm.org/viewvc/llvm-project?rev=259070&view=rev Log: Class Property: class property and instance property can have the same name. Add "enum ObjCPropertyQueryKind" to a few APIs that used to only take the name of the pro

Re: [PATCH] D16564: Fix an issue where backend crashes after frontend emits an error message

2016-01-28 Thread Manman Ren via cfe-commits
manmanren updated this revision to Diff 46301. manmanren added a comment. Addressing comments from Akira and Justin. http://reviews.llvm.org/D16564 Files: lib/CodeGen/ModuleBuilder.cpp test/CodeGen/target-builtin-error-3.c Index: test/CodeGen/target-builtin-error-3.c ==

Re: [PATCH] D16564: Fix an issue where backend crashes after frontend emits an error message

2016-01-28 Thread Manman Ren via cfe-commits
gt; error emitted and compilation stopped? > > -eric > > > On Thu, Jan 28, 2016 at 9:53 AM Justin Bogner > wrote: > >> Manman Ren via cfe-commits writes: >> > manmanren created this revision. >> > manmanren added reviewers: echristo, rafael, ahatanak. >> &

r259116 - Check for frontend errors after releasing the Builder.

2016-01-28 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Jan 28 17:29:02 2016 New Revision: 259116 URL: http://llvm.org/viewvc/llvm-project?rev=259116&view=rev Log: Check for frontend errors after releasing the Builder. Frontend can emit errors when releaseing the Builder. If there are errors before or when releasing the Builder,

r259119 - Class Property: change PropertyMap to include isClassProperty.

2016-01-28 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Jan 28 17:36:05 2016 New Revision: 259119 URL: http://llvm.org/viewvc/llvm-project?rev=259119&view=rev Log: Class Property: change PropertyMap to include isClassProperty. PropertyMap used to map IdentifierInfo (name of the property) to ObjcPropertyDecl *. Now that a class p

r259224 - Class Property: parse @dynamic (class).

2016-01-29 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Jan 29 13:05:57 2016 New Revision: 259224 URL: http://llvm.org/viewvc/llvm-project?rev=259224&view=rev Log: Class Property: parse @dynamic (class). rdar://23891898 Modified: cfe/trunk/lib/Parse/ParseObjc.cpp cfe/trunk/test/SemaObjC/objc-class-property.m Modified:

r259226 - Class Property: warn for synthesize on a class property.

2016-01-29 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Jan 29 13:16:39 2016 New Revision: 259226 URL: http://llvm.org/viewvc/llvm-project?rev=259226&view=rev Log: Class Property: warn for synthesize on a class property. rdar://23891898 Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td cfe/trunk/lib/Sema/Se

r259229 - Class Property: generate metadata for class properties in classes.

2016-01-29 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Jan 29 13:22:54 2016 New Revision: 259229 URL: http://llvm.org/viewvc/llvm-project?rev=259229&view=rev Log: Class Property: generate metadata for class properties in classes. The list of class properties is saved in Old ABI: cls->isa->ext->properties New ABI: cls->isa->ro->

r259267 - Class Property: generate metadata for class properties in categories.

2016-01-29 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Jan 29 17:45:01 2016 New Revision: 259267 URL: http://llvm.org/viewvc/llvm-project?rev=259267&view=rev Log: Class Property: generate metadata for class properties in categories. The list of class properties is saved in Old ABI: category->class_properties (category->size wil

r259268 - Class Property: generate metadata for class properties in protocols.

2016-01-29 Thread Manman Ren via cfe-commits
Author: mren Date: Fri Jan 29 17:46:55 2016 New Revision: 259268 URL: http://llvm.org/viewvc/llvm-project?rev=259268&view=rev Log: Class Property: generate metadata for class properties in protocols. The list of class properties is saved in Old ABI: protocol->ext->class_properties (protocol->ext-

[PATCH] D15314: Fix a bug in unavailable checking

2015-12-07 Thread Manman Ren via cfe-commits
manmanren created this revision. manmanren added reviewers: rjmccall, rsmith. manmanren added a subscriber: cfe-commits. The issue — Given the following test case, we don’t emit any message, and will silently ignore the variable "foo2", with a release compiler; we will get an assertio

r255860 - [TLS on Darwin] use CXX_FAST_TLS calling convention for access functions.

2015-12-16 Thread Manman Ren via cfe-commits
Author: mren Date: Wed Dec 16 18:42:36 2015 New Revision: 255860 URL: http://llvm.org/viewvc/llvm-project?rev=255860&view=rev Log: [TLS on Darwin] use CXX_FAST_TLS calling convention for access functions. Also set nounwind attribute. rdar://problem/9001553 Modified: cfe/trunk/lib/CodeGen/It

Re: [PATCH] D15314: Fix a bug in unavailable checking

2015-12-17 Thread Manman Ren via cfe-commits
manmanren added a comment. Ping Appreciate comments on the general direction. Cheers, Manman http://reviews.llvm.org/D15314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3