STL/azure-devops/enforce-clang-format.cmd

17 строки
536 B
Batchfile

:: Copyright (c) Microsoft Corporation.
:: SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
"%1" "clang-format.exe -style=file -i" ^
stl/inc ^
stl/inc/cvt ^
stl/inc/experimental ^
stl/src ^
tools/inc ^
tools/jobify/jobify.cpp ^
tools/parallelize/parallelize.cpp ^
tools/validate/validate.cpp
@echo If your build fails here, you need to format the following files with:
@clang-format.exe --version
@git status --porcelain stl tools 1>&2
@echo clang-format will produce the following diff:
@git diff stl tools 1>&2