[PATCH] D79372: [clang-format] [PR45126] Help text is missing all available formats

2020-05-07 Thread MyDeveloperDay via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rG305a4abfd3a1: [clang-format] [PR45126] Help text is missing 
all available formats (authored by MyDeveloperDay).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79372/new/

https://reviews.llvm.org/D79372

Files:
  clang/lib/Format/Format.cpp
  clang/tools/clang-format/clang-format-diff.py


Index: clang/tools/clang-format/clang-format-diff.py
===
--- clang/tools/clang-format/clang-format-diff.py
+++ clang/tools/clang-format/clang-format-diff.py
@@ -56,8 +56,8 @@
   parser.add_argument('-v', '--verbose', action='store_true',
   help='be more verbose, ineffective without -i')
   parser.add_argument('-style',
-  help='formatting style to apply (LLVM, Google, Chromium, 
'
-  'Mozilla, WebKit)')
+  help='formatting style to apply (LLVM, GNU, Google, 
Chromium, '
+  'Microsoft, Mozilla, WebKit)')
   parser.add_argument('-binary', default='clang-format',
   help='location of binary to use for clang-format')
   args = parser.parse_args()
Index: clang/lib/Format/Format.cpp
===
--- clang/lib/Format/Format.cpp
+++ clang/lib/Format/Format.cpp
@@ -2644,7 +2644,7 @@
 
 const char *StyleOptionHelpDescription =
 "Coding style, currently supports:\n"
-"  LLVM, Google, Chromium, Mozilla, WebKit.\n"
+"  LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit.\n"
 "Use -style=file to load style configuration from\n"
 ".clang-format file located in one of the parent\n"
 "directories of the source file (or current\n"


Index: clang/tools/clang-format/clang-format-diff.py
===
--- clang/tools/clang-format/clang-format-diff.py
+++ clang/tools/clang-format/clang-format-diff.py
@@ -56,8 +56,8 @@
   parser.add_argument('-v', '--verbose', action='store_true',
   help='be more verbose, ineffective without -i')
   parser.add_argument('-style',
-  help='formatting style to apply (LLVM, Google, Chromium, '
-  'Mozilla, WebKit)')
+  help='formatting style to apply (LLVM, GNU, Google, Chromium, '
+  'Microsoft, Mozilla, WebKit)')
   parser.add_argument('-binary', default='clang-format',
   help='location of binary to use for clang-format')
   args = parser.parse_args()
Index: clang/lib/Format/Format.cpp
===
--- clang/lib/Format/Format.cpp
+++ clang/lib/Format/Format.cpp
@@ -2644,7 +2644,7 @@
 
 const char *StyleOptionHelpDescription =
 "Coding style, currently supports:\n"
-"  LLVM, Google, Chromium, Mozilla, WebKit.\n"
+"  LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit.\n"
 "Use -style=file to load style configuration from\n"
 ".clang-format file located in one of the parent\n"
 "directories of the source file (or current\n"
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D79372: [clang-format] [PR45126] Help text is missing all available formats

2020-05-04 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay created this revision.
MyDeveloperDay added reviewers: krasimir, sammccall, mitchell-stellar.
MyDeveloperDay added projects: clang, clang-format.

https://bugs.llvm.org/show_bug.cgi?id=45126

GNU and Microsoft styles are built in supported styles but are not displayed in 
the help text


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79372

Files:
  clang/lib/Format/Format.cpp
  clang/tools/clang-format/clang-format-diff.py


Index: clang/tools/clang-format/clang-format-diff.py
===
--- clang/tools/clang-format/clang-format-diff.py
+++ clang/tools/clang-format/clang-format-diff.py
@@ -52,8 +52,8 @@
   parser.add_argument('-v', '--verbose', action='store_true',
   help='be more verbose, ineffective without -i')
   parser.add_argument('-style',
-  help='formatting style to apply (LLVM, Google, Chromium, 
'
-  'Mozilla, WebKit)')
+  help='formatting style to apply (LLVM, GNU, Google, 
Chromium, '
+  'Microsoft, Mozilla, WebKit)')
   parser.add_argument('-binary', default='clang-format',
   help='location of binary to use for clang-format')
   args = parser.parse_args()
Index: clang/lib/Format/Format.cpp
===
--- clang/lib/Format/Format.cpp
+++ clang/lib/Format/Format.cpp
@@ -2642,7 +2642,7 @@
 
 const char *StyleOptionHelpDescription =
 "Coding style, currently supports:\n"
-"  LLVM, Google, Chromium, Mozilla, WebKit.\n"
+"  LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit.\n"
 "Use -style=file to load style configuration from\n"
 ".clang-format file located in one of the parent\n"
 "directories of the source file (or current\n"


Index: clang/tools/clang-format/clang-format-diff.py
===
--- clang/tools/clang-format/clang-format-diff.py
+++ clang/tools/clang-format/clang-format-diff.py
@@ -52,8 +52,8 @@
   parser.add_argument('-v', '--verbose', action='store_true',
   help='be more verbose, ineffective without -i')
   parser.add_argument('-style',
-  help='formatting style to apply (LLVM, Google, Chromium, '
-  'Mozilla, WebKit)')
+  help='formatting style to apply (LLVM, GNU, Google, Chromium, '
+  'Microsoft, Mozilla, WebKit)')
   parser.add_argument('-binary', default='clang-format',
   help='location of binary to use for clang-format')
   args = parser.parse_args()
Index: clang/lib/Format/Format.cpp
===
--- clang/lib/Format/Format.cpp
+++ clang/lib/Format/Format.cpp
@@ -2642,7 +2642,7 @@
 
 const char *StyleOptionHelpDescription =
 "Coding style, currently supports:\n"
-"  LLVM, Google, Chromium, Mozilla, WebKit.\n"
+"  LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit.\n"
 "Use -style=file to load style configuration from\n"
 ".clang-format file located in one of the parent\n"
 "directories of the source file (or current\n"
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits