|
5 | 5 | # The LLVM Compiler Infrastructure |
6 | 6 | # |
7 | 7 | # This file is distributed under the University of Illinois Open Source |
8 | | -# License. See LICENSE.TXT for details. |
| 8 | +# License. |
| 9 | +# |
| 10 | +# ============================================================ |
| 11 | +# |
| 12 | +# University of Illinois/NCSA |
| 13 | +# Open Source License |
| 14 | +# |
| 15 | +# Copyright (c) 2007-2015 University of Illinois at Urbana-Champaign. |
| 16 | +# All rights reserved. |
| 17 | +# |
| 18 | +# Developed by: |
| 19 | +# |
| 20 | +# LLVM Team |
| 21 | +# |
| 22 | +# University of Illinois at Urbana-Champaign |
| 23 | +# |
| 24 | +# http://llvm.org |
| 25 | +# |
| 26 | +# Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 27 | +# this software and associated documentation files (the "Software"), to deal with |
| 28 | +# the Software without restriction, including without limitation the rights to |
| 29 | +# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
| 30 | +# of the Software, and to permit persons to whom the Software is furnished to do |
| 31 | +# so, subject to the following conditions: |
| 32 | +# |
| 33 | +# * Redistributions of source code must retain the above copyright notice, |
| 34 | +# this list of conditions and the following disclaimers. |
| 35 | +# |
| 36 | +# * Redistributions in binary form must reproduce the above copyright notice, |
| 37 | +# this list of conditions and the following disclaimers in the |
| 38 | +# documentation and/or other materials provided with the distribution. |
| 39 | +# |
| 40 | +# * Neither the names of the LLVM Team, University of Illinois at |
| 41 | +# Urbana-Champaign, nor the names of its contributors may be used to |
| 42 | +# endorse or promote products derived from this Software without specific |
| 43 | +# prior written permission. |
| 44 | +# |
| 45 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 46 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
| 47 | +# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 48 | +# CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 49 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 50 | +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE |
| 51 | +# SOFTWARE. |
| 52 | +# |
| 53 | +# ============================================================ |
9 | 54 | # |
10 | 55 | #===------------------------------------------------------------------------===# |
11 | 56 |
|
@@ -56,10 +101,6 @@ def main(): |
56 | 101 | help='let clang-format sort include blocks') |
57 | 102 | parser.add_argument('-v', '--verbose', action='store_true', |
58 | 103 | help='be more verbose, ineffective without -i') |
59 | | - parser.add_argument( |
60 | | - '-style', |
61 | | - help= |
62 | | - 'formatting style to apply (LLVM, Google, Chromium, Mozilla, WebKit)') |
63 | 104 | args = parser.parse_args() |
64 | 105 |
|
65 | 106 | # Extract changed lines for each file. |
@@ -101,8 +142,7 @@ def main(): |
101 | 142 | if args.sort_includes: |
102 | 143 | command.append('-sort-includes') |
103 | 144 | command.extend(lines) |
104 | | - if args.style: |
105 | | - command.extend(['-style', args.style]) |
| 145 | + command.extend(['-style=file', '-fallback-style=none']) |
106 | 146 | p = subprocess.Popen(command, stdout=subprocess.PIPE, |
107 | 147 | stderr=None, stdin=subprocess.PIPE) |
108 | 148 | stdout, stderr = p.communicate() |
|
0 commit comments