Skip to content

Commit d34af67

Browse files
committed
chore(style): format code with clang-format
1 parent 4413236 commit d34af67

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

src/analysis/UninitializedVarAnalysis.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,9 @@ namespace ctrace::stack::analysis
156156
if (begin >= end)
157157
return;
158158

159-
auto it = std::lower_bound(
160-
ranges.begin(), ranges.end(), begin,
161-
[](const ByteRange& r, std::uint64_t value)
162-
{
163-
return r.end < value;
164-
});
159+
auto it = std::lower_bound(ranges.begin(), ranges.end(), begin,
160+
[](const ByteRange& r, std::uint64_t value)
161+
{ return r.end < value; });
165162

166163
if (it == ranges.end())
167164
{
@@ -842,7 +839,7 @@ namespace ctrace::stack::analysis
842839
{
843840
addRange(
844841
getParamEffect(*currentSummary, *obj.param).readBeforeWriteRanges,
845-
access.begin, access.end);
842+
access.begin, access.end);
846843
}
847844
}
848845
return;
@@ -955,7 +952,8 @@ namespace ctrace::stack::analysis
955952
if (resolveAccessFromPointer(MTI->getSource(), readSize, tracked, DL,
956953
srcAccess))
957954
{
958-
const TrackedMemoryObject& srcObj = tracked.objects[srcAccess.objectIdx];
955+
const TrackedMemoryObject& srcObj =
956+
tracked.objects[srcAccess.objectIdx];
959957
bool srcDefInit = isRangeCovered(initialized[srcAccess.objectIdx],
960958
srcAccess.begin, srcAccess.end);
961959
if (!srcDefInit)

src/report/ReportSerialization.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,7 @@ namespace ctrace::stack
294294
}
295295
std::sort(rules.begin(), rules.end(),
296296
[](const SarifRuleEntry& lhs, const SarifRuleEntry& rhs)
297-
{
298-
return lhs.id < rhs.id;
299-
});
297+
{ return lhs.id < rhs.id; });
300298

301299
std::ostringstream os;
302300
os << "{\n";

0 commit comments

Comments
 (0)