Skip to content

Commit

Permalink
dropped version check for clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Sep 12, 2023
1 parent 2165216 commit 94f1da6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions style50/languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ class C(StyleCheck):
match_literals = re.compile(r'"(?:\\.|[^"\\])*"', re.DOTALL)

def __init__(self, code):
version_text = self.run(["clang-format", "--version"])
try:
# Match clang-format version via regex.
version = re.match("clang-format version (\d.+)", version_text).groups()[0]
except IndexError:
raise Error("could not determine clang-format version")

if tuple(map(int, version.split("."))) < (3, 0, 1):
raise Error("style50 requires clang-format version 16.0.0 or greater, "
"but version {} was found".format(version))

# Call parent init.
StyleCheck.__init__(self, code)
Expand Down

0 comments on commit 94f1da6

Please sign in to comment.