Skip to content

Constificator: false positive on array parameter #36

Description

@PeterSommerlad

Expected Behavior

for the following code, no const should be suggested for the array element type:

void takeintarray(int a[], size_t const len) {
	for(size_t i=0; i <len;++i)
		a[i] = a[i] < 0? -a[i]:a[i];
}

Actual Behavior

suggest and changes a to int const a[]

Cevelop Version, Operating System and Compiler

Cevelop C++ IDE

Version: 1.13.0-201910070714

Constificator 1.13.0.201910091317 com.cevelop.constificator.feature.feature.group IFS Institute for Software

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions