[all-commits] [llvm/llvm-project] c7994b: Switch from C-style comments `/* ... */` to C++ st...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Wed Nov 4 10:11:38 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c7994bd939f3f4af0f081a55122c7cde68154e3c
https://github.com/llvm/llvm-project/commit/c7994bd939f3f4af0f081a55122c7cde68154e3c
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2020-11-04 (Wed, 04 Nov 2020)
Changed paths:
M mlir/docs/OpDefinitions.md
M mlir/include/mlir-c/AffineExpr.h
M mlir/include/mlir-c/AffineMap.h
M mlir/include/mlir-c/Bindings/Python/Interop.h
M mlir/include/mlir-c/Diagnostics.h
M mlir/include/mlir-c/IR.h
M mlir/include/mlir-c/Pass.h
M mlir/include/mlir-c/Registration.h
M mlir/include/mlir-c/StandardAttributes.h
M mlir/include/mlir-c/StandardDialect.h
M mlir/include/mlir-c/StandardTypes.h
M mlir/include/mlir-c/Support.h
M mlir/include/mlir-c/Transforms.h
M mlir/include/mlir/CAPI/Utils.h
M mlir/include/mlir/CAPI/Wrap.h
M mlir/include/mlir/ExecutionEngine/AsyncRuntime.h
M mlir/include/mlir/ExecutionEngine/CRunnerUtils.h
M mlir/include/mlir/ExecutionEngine/RunnerUtils.h
M mlir/lib/CAPI/IR/AffineExpr.cpp
M mlir/lib/CAPI/IR/IR.cpp
M mlir/lib/CAPI/IR/Pass.cpp
M mlir/lib/CAPI/IR/StandardAttributes.cpp
M mlir/lib/CAPI/IR/StandardTypes.cpp
M mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
M mlir/test/CAPI/ir.c
M mlir/test/CAPI/pass.c
M mlir/test/mlir-cpu-runner/include/mlir_test_cblas.h
M mlir/test/mlir-cpu-runner/include/mlir_test_cblas_interface.h
Log Message:
-----------
Switch from C-style comments `/* ... */` to C++ style `//` (NFC)
This is mostly a scripted update, it may not be perfect.
function replace() {
FROM=$1
TO=$2
git grep "$FROM" $REPO_PATH |cut -f 1 -d : | sort -u | \
while read file; do
sed -i "s#$FROM#$TO#" $file ;
done
}
replace '|\*===----------------------------------------------------------------------===\*|$' '//===----------------------------------------------------------------------===//'
replace '^/\* =' '//=='
replace '^/\*=' '//='
replace '^\\\*=' '//='
replace '^|\*' '//'
replace ' \*|$' ''
replace '=\*\\$' '=//'
replace '== \*/$' '===//'
replace '==\*/$' '==//'
replace '^/\*\*\(.*\)\*/$' '///\1'
replace '^/\*\(.*\)\*/$' '//\1'
replace '//============================================================================//' '//===----------------------------------------------------------------------===//'
Differential Revision: https://reviews.llvm.org/D90732
More information about the All-commits
mailing list