Skip to content

Commit 24a6aad

Browse files
committed
Change Variable Names to follow the UpperCamelCase standard
1 parent 1d20c18 commit 24a6aad

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -282,43 +282,43 @@ ProgramStateRef ExprEngine::handleLValueBitCast(
282282
void ExprEngine::VisitCast(const CastExpr *CastE, const Expr *Ex,
283283
ExplodedNode *Pred, ExplodedNodeSet &Dst) {
284284

285-
ExplodedNodeSet dstPreStmt;
286-
getCheckerManager().runCheckersForPreStmt(dstPreStmt, Pred, CastE, *this);
285+
ExplodedNodeSet DstPreStmt;
286+
getCheckerManager().runCheckersForPreStmt(DstPreStmt, Pred, CastE, *this);
287287

288288
if (CastE->getCastKind() == CK_LValueToRValue) {
289-
for (ExplodedNode *subExprNode : dstPreStmt) {
290-
ProgramStateRef state = subExprNode->getState();
291-
const LocationContext *LCtx = subExprNode->getLocationContext();
292-
evalLoad(Dst, CastE, CastE, subExprNode, state, state->getSVal(Ex, LCtx));
289+
for (ExplodedNode *Node : DstPreStmt) {
290+
ProgramStateRef State = Node->getState();
291+
const LocationContext *LCtx = Node->getLocationContext();
292+
evalLoad(Dst, CastE, CastE, Node, State, State->getSVal(Ex, LCtx));
293293
}
294294
return;
295295
}
296296
if (CastE->getCastKind() == CK_LValueToRValueBitCast) {
297297
// Handle `__builtin_bit_cast`:
298-
ExplodedNodeSet dstEvalLoad;
298+
ExplodedNodeSet DstEvalLoc;
299299

300300
// Simulate the lvalue-to-rvalue conversion on `Ex`:
301-
for (ExplodedNode *subExprNode : dstPreStmt) {
302-
ProgramStateRef state = subExprNode->getState();
303-
const LocationContext *LCtx = subExprNode->getLocationContext();
304-
evalLocation(dstEvalLoad, CastE, Ex, subExprNode, state,
305-
state->getSVal(Ex, LCtx), true);
301+
for (ExplodedNode *Node : DstPreStmt) {
302+
ProgramStateRef State = Node->getState();
303+
const LocationContext *LCtx = Node->getLocationContext();
304+
evalLocation(DstEvalLoc, CastE, Ex, Node, State, State->getSVal(Ex, LCtx),
305+
true);
306306
}
307307
// Simulate the operation that actually casts the original value to a new
308308
// value of the destination type :
309-
StmtNodeBuilder Bldr(dstEvalLoad, Dst, *currBldrCtx);
309+
StmtNodeBuilder Bldr(DstEvalLoc, Dst, *currBldrCtx);
310310

311-
for (ExplodedNode *Node : dstEvalLoad) {
312-
ProgramStateRef state = Node->getState();
311+
for (ExplodedNode *Node : DstEvalLoc) {
312+
ProgramStateRef State = Node->getState();
313313
const LocationContext *LCtx = Node->getLocationContext();
314314
// getAsRegion should always be successful since Ex is an lvalue:
315-
SVal OrigV = state->getSVal(state->getSVal(Ex, LCtx).getAsRegion());
315+
SVal OrigV = State->getSVal(State->getSVal(Ex, LCtx).getAsRegion());
316316
SVal CastedV =
317-
svalBuilder.evalCast(svalBuilder.simplifySVal(state, OrigV),
317+
svalBuilder.evalCast(svalBuilder.simplifySVal(State, OrigV),
318318
CastE->getType(), Ex->getType());
319319

320-
state = state->BindExpr(CastE, LCtx, CastedV);
321-
Bldr.generateNode(CastE, Node, state);
320+
State = State->BindExpr(CastE, LCtx, CastedV);
321+
Bldr.generateNode(CastE, Node, State);
322322
}
323323
return;
324324
}
@@ -330,8 +330,8 @@ void ExprEngine::VisitCast(const CastExpr *CastE, const Expr *Ex,
330330
if (const ExplicitCastExpr *ExCast=dyn_cast_or_null<ExplicitCastExpr>(CastE))
331331
T = ExCast->getTypeAsWritten();
332332

333-
StmtNodeBuilder Bldr(dstPreStmt, Dst, *currBldrCtx);
334-
for (ExplodedNode *Pred : dstPreStmt) {
333+
StmtNodeBuilder Bldr(DstPreStmt, Dst, *currBldrCtx);
334+
for (ExplodedNode *Pred : DstPreStmt) {
335335
ProgramStateRef state = Pred->getState();
336336
const LocationContext *LCtx = Pred->getLocationContext();
337337

0 commit comments

Comments
 (0)