summaryrefslogtreecommitdiff
path: root/tools/clang-format/clang-format-diff.py
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-09-02 16:39:23 +0000
committerAlexander Kornienko <alexfh@google.com>2013-09-02 16:39:23 +0000
commit4e65c98f67b80a7f85ecd5b550a5e10a834f702c (patch)
tree9b6f68131e3657db8d74c7c450e1f28257dd2e04 /tools/clang-format/clang-format-diff.py
parent7de13bb716a76cf4c0d6593bd06d53a480a8980e (diff)
downloadclang-4e65c98f67b80a7f85ecd5b550a5e10a834f702c.tar.gz
clang-4e65c98f67b80a7f85ecd5b550a5e10a834f702c.tar.bz2
clang-4e65c98f67b80a7f85ecd5b550a5e10a834f702c.tar.xz
Added WebKit style to the BasedOnStyle handling and to the relevant help messages.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-format/clang-format-diff.py')
-rwxr-xr-xtools/clang-format/clang-format-diff.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/clang-format/clang-format-diff.py b/tools/clang-format/clang-format-diff.py
index bb18730b63..89fa0521ee 100755
--- a/tools/clang-format/clang-format-diff.py
+++ b/tools/clang-format/clang-format-diff.py
@@ -82,11 +82,13 @@ def formatRange(r, style):
def main():
parser = argparse.ArgumentParser(description=
- 'Reformat changed lines in diff')
+ 'Reformat changed lines in diff.')
parser.add_argument('-p', default=0,
help='strip the smallest prefix containing P slashes')
- parser.add_argument('-style',
- help='formatting style to apply (LLVM, Google, Chromium)')
+ parser.add_argument(
+ '-style',
+ help=
+ 'formatting style to apply (LLVM, Google, Chromium, Mozilla, WebKit)')
args = parser.parse_args()
filename = None