diff options
author | Daniel Jasper <djasper@google.com> | 2013-05-30 11:50:20 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-05-30 11:50:20 +0000 |
commit | 2714ba03f6da42f7e0d56353ea7cebf6225f9f15 (patch) | |
tree | 65047d84746c79e9ccd7aedaae41f95733feb921 /clang/tools/clang-format/clang-format-diff.py | |
parent | 3a7c6d689d94b2c2594c3899b2e21b435539c296 (diff) | |
download | bcm5719-llvm-2714ba03f6da42f7e0d56353ea7cebf6225f9f15.tar.gz bcm5719-llvm-2714ba03f6da42f7e0d56353ea7cebf6225f9f15.zip |
Fix default value of clang-format-diff's -p option.
This way, it has the same default as 'patch' and also the example in the
code makes more sense as it is explicitly setting -p 1.
llvm-svn: 182923
Diffstat (limited to 'clang/tools/clang-format/clang-format-diff.py')
-rwxr-xr-x | clang/tools/clang-format/clang-format-diff.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py index 68b5113d92f..bb18730b63c 100755 --- a/clang/tools/clang-format/clang-format-diff.py +++ b/clang/tools/clang-format/clang-format-diff.py @@ -83,7 +83,7 @@ def formatRange(r, style): def main(): parser = argparse.ArgumentParser(description= 'Reformat changed lines in diff') - parser.add_argument('-p', default=1, + 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)') |