@@ -37,7 +37,7 @@ struct AnalysisDomainExtender : public OriginalAnalysisDomain {
3737};
3838
3939template <typename , typename = void >
40- struct is_analysis_domain_extensions : std::false_type {};
40+ struct is_analysis_domain_extensions : std::false_type {}; // NOLINT
4141
4242template <typename AnalysisDomainTy>
4343struct is_analysis_domain_extensions <
@@ -75,27 +75,27 @@ class IFDSToIDETabulationProblem
7575 this ->ZeroValue = Problem.createZeroValue ();
7676 }
7777
78- FlowFunctionPtrType getNormalFlowFunction (n_t curr , n_t succ ) override {
79- return Problem.getNormalFlowFunction (curr, succ );
78+ FlowFunctionPtrType getNormalFlowFunction (n_t Curr , n_t Succ ) override {
79+ return Problem.getNormalFlowFunction (Curr, Succ );
8080 }
8181
82- FlowFunctionPtrType getCallFlowFunction (n_t callSite , f_t destFun ) override {
83- return Problem.getCallFlowFunction (callSite, destFun );
82+ FlowFunctionPtrType getCallFlowFunction (n_t CallSite , f_t DestFun ) override {
83+ return Problem.getCallFlowFunction (CallSite, DestFun );
8484 }
8585
86- FlowFunctionPtrType getRetFlowFunction (n_t callSite , f_t calleeFun ,
87- n_t exitInst , n_t retSite ) override {
88- return Problem.getRetFlowFunction (callSite, calleeFun, exitInst, retSite );
86+ FlowFunctionPtrType getRetFlowFunction (n_t CallSite , f_t CalleeFun ,
87+ n_t ExitInst , n_t RetSite ) override {
88+ return Problem.getRetFlowFunction (CallSite, CalleeFun, ExitInst, RetSite );
8989 }
9090
91- FlowFunctionPtrType getCallToRetFlowFunction (n_t callSite , n_t retSite ,
92- std::set<f_t > callees ) override {
93- return Problem.getCallToRetFlowFunction (callSite, retSite, callees );
91+ FlowFunctionPtrType getCallToRetFlowFunction (n_t CallSite , n_t RetSite ,
92+ std::set<f_t > Callees ) override {
93+ return Problem.getCallToRetFlowFunction (CallSite, RetSite, Callees );
9494 }
9595
96- FlowFunctionPtrType getSummaryFlowFunction (n_t callSite ,
97- f_t destFun ) override {
98- return Problem.getSummaryFlowFunction (callSite, destFun );
96+ FlowFunctionPtrType getSummaryFlowFunction (n_t CallSite ,
97+ f_t DestFun ) override {
98+ return Problem.getSummaryFlowFunction (CallSite, DestFun );
9999 }
100100
101101 InitialSeeds<n_t , d_t , l_t > initialSeeds () override {
@@ -114,73 +114,75 @@ class IFDSToIDETabulationProblem
114114
115115 BinaryDomain bottomElement () override { return BinaryDomain::BOTTOM; }
116116
117- BinaryDomain join (BinaryDomain left , BinaryDomain right ) override {
118- if (left == BinaryDomain::TOP && right == BinaryDomain::TOP) {
117+ BinaryDomain join (BinaryDomain Lhs , BinaryDomain Rhs ) override {
118+ if (Lhs == BinaryDomain::TOP && Rhs == BinaryDomain::TOP) {
119119 return BinaryDomain::TOP;
120- } else {
121- return BinaryDomain::BOTTOM;
122120 }
121+ return BinaryDomain::BOTTOM;
123122 }
124123
125124 std::shared_ptr<EdgeFunction<BinaryDomain>> allTopFunction () override {
126125 return std::make_shared<AllTop<BinaryDomain>>(BinaryDomain::TOP);
127126 }
128127
129128 std::shared_ptr<EdgeFunction<BinaryDomain>>
130- getNormalEdgeFunction (n_t src, d_t srcNode, n_t tgt, d_t tgtNode) override {
131- if (Problem.isZeroValue (srcNode)) {
129+ getNormalEdgeFunction (n_t /* Src*/ , d_t SrcNode, n_t /* Tgt*/ ,
130+ d_t /* TgtNode*/ ) override {
131+ if (Problem.isZeroValue (SrcNode)) {
132132 return ALLBOTTOM;
133133 }
134134 return EdgeIdentity<BinaryDomain>::getInstance ();
135135 }
136136
137137 std::shared_ptr<EdgeFunction<BinaryDomain>>
138- getCallEdgeFunction (n_t callSite , d_t srcNode, f_t destinationFunction ,
139- d_t destNode ) override {
140- if (Problem.isZeroValue (srcNode )) {
138+ getCallEdgeFunction (n_t /* CallSite */ , d_t SrcNode ,
139+ f_t /* DestinationFunction */ , d_t /* DestNode */ ) override {
140+ if (Problem.isZeroValue (SrcNode )) {
141141 return ALLBOTTOM;
142142 }
143143 return EdgeIdentity<BinaryDomain>::getInstance ();
144144 }
145145
146146 std::shared_ptr<EdgeFunction<BinaryDomain>>
147- getReturnEdgeFunction (n_t callSite, f_t calleeFunction, n_t exitInst,
148- d_t exitNode, n_t returnSite, d_t retNode) override {
149- if (Problem.isZeroValue (exitNode)) {
147+ getReturnEdgeFunction (n_t /* CallSite*/ , f_t /* CalleeFunction*/ ,
148+ n_t /* ExitInst*/ , d_t ExitNode, n_t /* ReturnSite*/ ,
149+ d_t /* RetNode*/ ) override {
150+ if (Problem.isZeroValue (ExitNode)) {
150151 return ALLBOTTOM;
151152 }
152153 return EdgeIdentity<BinaryDomain>::getInstance ();
153154 }
154155
155156 std::shared_ptr<EdgeFunction<BinaryDomain>>
156- getCallToRetEdgeFunction (n_t callSite, d_t callNode, n_t returnSite,
157- d_t returnSideNode, std::set<f_t > callees) override {
158- if (Problem.isZeroValue (callNode)) {
157+ getCallToRetEdgeFunction (n_t /* CallSite*/ , d_t CallNode, n_t /* ReturnSite*/ ,
158+ d_t /* ReturnSideNode*/ ,
159+ std::set<f_t > /* Callees*/ ) override {
160+ if (Problem.isZeroValue (CallNode)) {
159161 return ALLBOTTOM;
160162 }
161163 return EdgeIdentity<BinaryDomain>::getInstance ();
162164 }
163165
164166 std::shared_ptr<EdgeFunction<BinaryDomain>>
165- getSummaryEdgeFunction (n_t callSite , d_t callNode , n_t retSite ,
166- d_t retSiteNode ) override {
167+ getSummaryEdgeFunction (n_t /* CallSite */ , d_t /* CallNode */ , n_t /* RetSite */ ,
168+ d_t /* RetSiteNode */ ) override {
167169 return EdgeIdentity<BinaryDomain>::getInstance ();
168170 }
169171
170- void printNode (std::ostream &os , n_t n ) const override {
171- Problem.printNode (os, n );
172+ void printNode (std::ostream &OS , n_t Stmt ) const override {
173+ Problem.printNode (OS, Stmt );
172174 }
173175
174- void printDataFlowFact (std::ostream &os , d_t d ) const override {
175- Problem.printDataFlowFact (os, d );
176+ void printDataFlowFact (std::ostream &OS , d_t Fact ) const override {
177+ Problem.printDataFlowFact (OS, Fact );
176178 }
177179
178- void printFunction (std::ostream &os , f_t f ) const override {
179- Problem.printFunction (os, f );
180+ void printFunction (std::ostream &OS , f_t Func ) const override {
181+ Problem.printFunction (OS, Func );
180182 }
181183
182- void printEdgeFact (std::ostream &os , BinaryDomain v ) const override {
183- os << v ;
184+ void printEdgeFact (std::ostream &OS , BinaryDomain Val ) const override {
185+ OS << Val ;
184186 }
185187
186188 void emitTextReport (const SolverResults<n_t , d_t , l_t > &Results,
0 commit comments