Skip to content

Commit 03f5493

Browse files
authored
Fix trailing whitespaces introduced in #51 (#53)
1 parent 12a958d commit 03f5493

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/clangsa/GCChecker.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ void GCChecker::validateValue(const ValueState* VS, CheckerContext &C, SymbolRef
505505
int GCChecker::validateValueInner(const ValueState* VS) const {
506506
if (!VS)
507507
return VALID;
508-
508+
509509
if (VS->isPotentiallyFreed()) {
510510
return FREED;
511511
}
@@ -563,7 +563,7 @@ void GCChecker::logWithDump(const std::string& message, const T &obj) {
563563
void GCChecker::log(const std::string& message) {
564564
if (!DEBUG_LOG)
565565
return;
566-
566+
567567
llvm::errs() << message;
568568
llvm::errs() << "\n";
569569
}
@@ -1625,7 +1625,7 @@ void GCChecker::checkPreCall(const CallEvent &Call, CheckerContext &C) const {
16251625
C, Sym,
16261626
"Passing non-rooted value as argument to function that may GC",
16271627
range);
1628-
}
1628+
}
16291629
}
16301630
if (ValState->isNotPinned()) {
16311631
bool MaybeUnpinned = false;
@@ -1753,7 +1753,7 @@ bool GCChecker::evalCall(const CallEvent &Call, CheckerContext &C) const {
17531753
State = State->set<GCPinMap>(Region, PinState::getTransitivePin(CurrentDepth));
17541754
} else {
17551755
logWithDump("- Root and pin", Region);
1756-
State = State->set<GCPinMap>(Region, PinState::getPin(CurrentDepth));
1756+
State = State->set<GCPinMap>(Region, PinState::getPin(CurrentDepth));
17571757
}
17581758
// The Argument array may also be used as a value, so make it rooted
17591759
// SymbolRef ArgArraySym = ArgArray.getAsSymbol();
@@ -1991,7 +1991,7 @@ void GCChecker::checkBind(SVal LVal, SVal RVal, const clang::Stmt *S,
19911991
}
19921992
report_value_error(C, Sym,
19931993
"Saw assignment to root, but missed the allocation");
1994-
}
1994+
}
19951995
} else {
19961996
logWithDump("- Found ValState for Sym", RValState);
19971997
validateValue(RValState, C, Sym, "Trying to root value which may have been");

test/clangsa/MissingPinning.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ void unpinned_argument() {
1212
jl_svec_t *val = jl_svec1(NULL); // expected-note{{Started tracking value here}}
1313
JL_GC_PROMISE_ROOTED(val); // expected-note{{Value was rooted here}}
1414
look_at_value((jl_value_t*) val); // expected-warning{{Passing non-pinned value as argument to function that may GC}}
15-
// expected-note@-1{{Passing non-pinned value as argument to function that may GC}}
15+
// expected-note@-1{{Passing non-pinned value as argument to function that may GC}}
1616
}
1717

1818
int allow_unpinned() {

0 commit comments

Comments
 (0)