r297974 - [AST] Follow-up to r297972, add default value for setGetterName/setSetterName if a source-loc is not provided.
Argyrios Kyrtzidis via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 16 11:40:14 PDT 2017
Author: akirtzidis
Date: Thu Mar 16 13:40:13 2017
New Revision: 297974
URL: http://llvm.org/viewvc/llvm-project?rev=297974&view=rev
Log:
[AST] Follow-up to r297972, add default value for setGetterName/setSetterName if a source-loc is not provided.
Fixes lldb build.
Modified:
cfe/trunk/include/clang/AST/DeclObjC.h
Modified: cfe/trunk/include/clang/AST/DeclObjC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclObjC.h?rev=297974&r1=297973&r2=297974&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclObjC.h (original)
+++ cfe/trunk/include/clang/AST/DeclObjC.h Thu Mar 16 13:40:13 2017
@@ -858,14 +858,14 @@ public:
Selector getGetterName() const { return GetterName; }
SourceLocation getGetterNameLoc() const { return GetterNameLoc; }
- void setGetterName(Selector Sel, SourceLocation Loc) {
+ void setGetterName(Selector Sel, SourceLocation Loc = SourceLocation()) {
GetterName = Sel;
GetterNameLoc = Loc;
}
Selector getSetterName() const { return SetterName; }
SourceLocation getSetterNameLoc() const { return SetterNameLoc; }
- void setSetterName(Selector Sel, SourceLocation Loc) {
+ void setSetterName(Selector Sel, SourceLocation Loc = SourceLocation()) {
SetterName = Sel;
SetterNameLoc = Loc;
}
More information about the cfe-commits
mailing list