[PATCH] D27067: [CommandLine] Remove redundant initializers for StringRef members

Malcolm Parsons via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 01:04:05 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL287857: [CommandLine] Remove redundant initializers for StringRef members (authored by malcolm.parsons).

Changed prior to commit:
  https://reviews.llvm.org/D27067?vs=79153&id=79191#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27067

Files:
  llvm/trunk/include/llvm/Support/CommandLine.h


Index: llvm/trunk/include/llvm/Support/CommandLine.h
===================================================================
--- llvm/trunk/include/llvm/Support/CommandLine.h
+++ llvm/trunk/include/llvm/Support/CommandLine.h
@@ -179,8 +179,8 @@
 //
 class SubCommand {
 private:
-  StringRef Name = "";
-  StringRef Description = "";
+  StringRef Name;
+  StringRef Description;
 
 protected:
   void registerSubCommand();
@@ -304,8 +304,8 @@
                   enum OptionHidden Hidden)
       : NumOccurrences(0), Occurrences(OccurrencesFlag), Value(0),
         HiddenFlag(Hidden), Formatting(NormalFormatting), Misc(0), Position(0),
-        AdditionalVals(0), ArgStr(""), HelpStr(""), ValueStr(""),
-        Category(&GeneralCategory), FullyInitialized(false) {}
+        AdditionalVals(0), Category(&GeneralCategory), FullyInitialized(false) {
+  }
 
   inline void setNumAdditionalVals(unsigned n) { AdditionalVals = n; }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27067.79191.patch
Type: text/x-patch
Size: 927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161124/1c6b48fc/attachment.bin>


More information about the llvm-commits mailing list