Commit 2e69ee9
committed
Fix Misra C++ warnings
lib/vfvalue.cpp:118:25: style: A switch statement shall be a well-formed switch statement. [premium-misra-cpp-2008-6-4-3]
std::string result = "symbolic=" + tokvalue->expressionString();
^
lib/valueflow.cpp:141:75: style: In the definition of a function-like macro, each instance of a parameter shall be enclosed in parentheses, unless it is used as the operand of # or ##. [premium-misra-cpp-2008-16-0-6]
define bailout2(type, tokenlist, errorLogger, tok, what) bailoutInternal(type, tokenlist, errorLogger, tok, what, __FILE__, __LINE__, __func__)
^
lib/valueflow.cpp:143:81: style: In the definition of a function-like macro, each instance of a parameter shall be enclosed in parentheses, unless it is used as the operand of # or ##. [premium-misra-cpp-2008-16-0-6]
define bailout(tokenlist, errorLogger, tok, what) bailout2("valueFlowBailout", tokenlist, errorLogger, tok, what)
^
lib/valueflow.cpp:145:114: style: In the definition of a function-like macro, each instance of a parameter shall be enclosed in parentheses, unless it is used as the operand of # or ##. [premium-misra-cpp-2008-16-0-6]
define bailoutIncompleteVar(tokenlist, errorLogger, tok, what) bailoutInternal("valueFlowBailoutIncompleteVar", tokenlist, errorLogger, tok, what, "", 0, __func__)
^
lib/valueflow.cpp:9416:270: style: In the definition of a function-like macro, each instance of a parameter shall be enclosed in parentheses, unless it is used as the operand of # or ##. [premium-misra-cpp-2008-16-0-6]
define VALUEFLOW_ADAPTOR(cpp, ...) \
^1 parent ebc90d3 commit 2e69ee9
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
9415 | 9415 | | |
9416 | 9416 | | |
9417 | 9417 | | |
9418 | | - | |
| 9418 | + | |
9419 | 9419 | | |
9420 | 9420 | | |
9421 | 9421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
0 commit comments