Skip to content

Commit 2bd3758

Browse files
authored
clang-tidy braces changes (#2075)
Applies the changes in #2065, and temprarily disables the hook since it's too slow to run on a change this large. We should re-enable it in a later commit.
1 parent 73709b4 commit 2bd3758

117 files changed

Lines changed: 2946 additions & 1509 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- mkdir -p ${BUILD_SUBDIR} && cd ${BUILD_SUBDIR}
6767
- cmake ${TRAVIS_BUILD_DIR} -DCMAKE_C_FLAGS="$COMPILER_FLAGS" -DCMAKE_CXX_FLAGS="$COMPILER_FLAGS" -DCMAKE_INSTALL_PREFIX=install -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
6868
# clang-tidy-diff.sh may not exist when BUILD_SUBDIR is a subdirectory
69-
- if [ -f clang-tidy-diff.sh ]; then ./clang-tidy-diff.sh; fi
69+
# XXX temporarily disable this - if [ -f clang-tidy-diff.sh ]; then ./clang-tidy-diff.sh; fi
7070
- make -j2 install
7171
- cd ${TRAVIS_BUILD_DIR}
7272
- ./check.py --binaryen-bin=${BUILD_SUBDIR}/install/bin

src/abi/js.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ ensureScratchMemoryHelpers(Module* wasm,
5454
cashew::IString specific = cashew::IString()) {
5555
auto ensureImport =
5656
[&](Name name, const std::vector<Type> params, Type result) {
57-
if (wasm->getFunctionOrNull(name))
57+
if (wasm->getFunctionOrNull(name)) {
5858
return;
59-
if (specific.is() && name != specific)
59+
}
60+
if (specific.is() && name != specific) {
6061
return;
62+
}
6163
auto func = make_unique<Function>();
6264
func->name = name;
6365
func->params = params;

0 commit comments

Comments
 (0)