summaryrefslogtreecommitdiff
path: root/utils/lint
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-01-02 21:24:29 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-01-02 21:24:29 +0000
commit27c1e89a4b82b205cbc11fd2f18dcb9e5f033dfb (patch)
treeeddfe6caf3518450f29663df63fd9b7a98904302 /utils/lint
parent653222fc997be323af28d05b98e26daa0b98f477 (diff)
downloadllvm-27c1e89a4b82b205cbc11fd2f18dcb9e5f033dfb.tar.gz
llvm-27c1e89a4b82b205cbc11fd2f18dcb9e5f033dfb.tar.bz2
llvm-27c1e89a4b82b205cbc11fd2f18dcb9e5f033dfb.tar.xz
VerifyLineLength() actually takes a max length parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lint')
-rwxr-xr-xutils/lint/cpp_lint.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/lint/cpp_lint.py b/utils/lint/cpp_lint.py
index e26fb707c9..ca81bfe35d 100755
--- a/utils/lint/cpp_lint.py
+++ b/utils/lint/cpp_lint.py
@@ -65,9 +65,11 @@ def VerifyIncludes(filename, lines):
class CppLint(common_lint.BaseLint):
+ MAX_LINE_LENGTH = 80
+
def RunOnFile(self, filename, lines):
VerifyIncludes(filename, lines)
- common_lint.VerifyLineLength(filename, lines)
+ common_lint.VerifyLineLength(filename, lines, CppLint.MAX_LINE_LENGTH)
common_lint.VerifyTrailingWhitespace(filename, lines)