diff --git a/clang/test/Format/lit.local.cfg b/clang/test/Format/lit.local.cfg index b060c79226cbd..20e217664997b 100644 --- a/clang/test/Format/lit.local.cfg +++ b/clang/test/Format/lit.local.cfg @@ -1,3 +1,4 @@ +import os import platform import lit.formats @@ -27,3 +28,8 @@ config.suffixes = [ # python implementation does, so use that for cross platform compatibility if platform.system() == "AIX": config.test_format = lit.formats.ShTest() + +# Create an empty .clang-format-ignore file so that tests don't get messed +# up if one exists higher in the tree +with open(".clang-format-ignore", 'w'): + pass