Skip to content

Commit 7621a10

Browse files
committed
Add a clang-tidy error again to show how Travis CI works
1 parent c6fa2a3 commit 7621a10

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

clang-tidy-diff.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22

3-
# In settings in which build directory is different than binaryen/, we don't
4-
# have this file in binaryen/, so we skip the test.
3+
# In some Travis CI settings in which the build directory is a subdirectory of
4+
# binaryen/, we don't have the compilation database file in binaryen/. We skip
5+
# the test in this case.
56
if [ ! -f compile_commands.json ]
67
then
78
exit 0

src/passes/pass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,9 @@ void PassRunner::handleAfterEffects(Pass* pass, Function* func) {
698698
int PassRunner::getPassDebug() {
699699
static const int passDebug =
700700
getenv("BINARYEN_PASS_DEBUG") ? atoi(getenv("BINARYEN_PASS_DEBUG")) : 0;
701-
// int WrongStyleTestVar = 3;
701+
int testVar = 5;
702+
if (passDebug > 0)
703+
testVar = 3;
702704
return passDebug;
703705
}
704706

0 commit comments

Comments
 (0)