We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b02dc4 commit 0c20066Copy full SHA for 0c20066
cpp/autosar/test/rules/M0-1-10.1/UnusedFunction.expected
@@ -0,0 +1 @@
1
+| test.cpp:23:14:23:26 | uncalled_func | Function uncalled_func is never called. |
cpp/autosar/test/rules/M0-1-10.1/test.cpp
@@ -20,6 +20,11 @@ std::int32_t func1() { // COMPLIANT: Called from main
20
return mains::var + func2(); // func2 called here.
21
}
22
23
+std::int32_t uncalled_func() // NON COMPLIANT: Not called.
24
+{
25
+ return mains::var + func1(); // func1 called here.
26
+}
27
+
28
// @brief main
29
// @return exit code
30
std::int32_t main(void) {
0 commit comments