36 lines · plain
1import os2import platform3import lit.formats4 5# Suffixes supported by clang-format.6config.suffixes = [7 ".c",8 ".cc",9 ".cpp",10 ".h",11 ".m",12 ".mm",13 ".java",14 ".js",15 ".ts",16 ".proto",17 ".protodevel",18 ".pb.txt",19 ".txtpb",20 ".textproto",21 ".textpb",22 ".asciipb",23 ".td",24 ".test",25]26 27# AIX 'diff' command doesn't support --strip-trailing-cr, but the internal28# python implementation does, so use that for cross platform compatibility29if platform.system() == "AIX":30 config.test_format = lit.formats.ShTest()31 32# Create an empty .clang-format-ignore file so that tests don't get messed33# up if one exists higher in the tree34with open(".clang-format-ignore", "w"):35 pass36