Skip to content

Commit dd4a1ea

Browse files
committed
M14-6-1: nomagic implies noinline
1 parent cc0372e commit dd4a1ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/autosar/src/rules/M14-6-1/NameInDependentBase.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ TemplateClass getADependentBaseType(TemplateClass t) {
2121
* Helper predicate that ensures we do not join on function pairs by name early on, as that creates
2222
* a large dataset on big databases with lots of name duplication.
2323
*/
24-
pragma[noinline, nomagic]
24+
pragma[nomagic]
2525
private FunctionCall helper_functioncall(
2626
TemplateClass t, TemplateClass dependentBaseType, Function target, string name
2727
) {
@@ -53,7 +53,7 @@ FunctionCall getConfusingFunctionCall(
5353
* Helper predicate that ensures we do not join on function pairs by name early on, as that creates
5454
* a large dataset on big databases with lots of name duplication.
5555
*/
56-
pragma[noinline, nomagic]
56+
pragma[nomagic]
5757
private FunctionAccess helper_functionaccess(
5858
TemplateClass t, TemplateClass dependentBaseType, Function target, string name
5959
) {
@@ -83,7 +83,7 @@ FunctionAccess getConfusingFunctionAccess(
8383
* Helper predicate that ensures we do not join on variable pairs by name early on, as that creates
8484
* a large dataset on big databases with lots of name duplication.
8585
*/
86-
pragma[noinline, nomagic]
86+
pragma[nomagic]
8787
private VariableAccess helper_memberaccess(
8888
TemplateClass t, TemplateClass dependentBaseType, Variable target, string name
8989
) {

0 commit comments

Comments
 (0)