[RISCV] Regenerate autogen test to remove spurious diff
[llvm-project.git] / llvm / utils / lint / generic_lint.py
blob18e6e67e29a6efb987c845a6b20439e23f36b86c
1 #!/usr/bin/env python
3 # Checks files to make sure they conform to LLVM standards which can be applied
4 # to any programming language: at present, line length and trailing whitespace.
6 import common_lint
7 import sys
10 class GenericCodeLint(common_lint.BaseLint):
11 MAX_LINE_LENGTH = 80
13 def RunOnFile(self, filename, lines):
14 common_lint.VerifyLineLength(filename, lines, GenericCodeLint.MAX_LINE_LENGTH)
15 common_lint.VerifyTrailingWhitespace(filename, lines)
18 def GenericCodeLintMain(filenames):
19 common_lint.RunLintOverAllFiles(GenericCodeLint(), filenames)
20 return 0
23 if __name__ == "__main__":
24 sys.exit(GenericCodeLintMain(sys.argv[1:]))