arphaman added a comment.

Hi,

Thanks for your patch! Could you please post a patch with full context (git 
diff -U99999)?



================
Comment at: lib/Serialization/ASTWriterDecl.cpp:1541
 
-  bool OwnsDefaultArg = D->hasDefaultArgument() &&
-                        !D->defaultArgumentWasInherited();
-  Record.push_back(OwnsDefaultArg);
-  if (OwnsDefaultArg)
-    Record.AddTypeSourceInfo(D->getDefaultArgumentInfo());
+  TypeSourceInfo *ownedDefaultArg = nullptr;
+  Decl const *inheritsFromDecl = nullptr;
----------------
Please start your variable names in uppercase (see 
http://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly).


================
Comment at: lib/Serialization/ASTWriterDecl.cpp:1551
+
+  Record.push_back(bool(ownedDefaultArg != nullptr));
+  if (ownedDefaultArg) {
----------------
I think that cast to `bool` here and below is redundant.


Repository:
  rL LLVM

https://reviews.llvm.org/D38320



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to