Cevelop / cevelop

The C++ IDE for professional developers
Eclipse Public License 2.0
5 stars 0 forks source link

Attributes get lost when rewriting code #23

Open PeterSommerlad opened 5 years ago

PeterSommerlad commented 5 years ago

Expected Behavior

#ifndef FOO_H_
#define FOO_H_

[[nodiscard]] int foo(){ return 42;}

#endif /* FOO_H_ */

when applying Toggle Function the nodiscard attribute is lost.

Also using the Autosar plug-in fails to generate attributes when suppressing a rule.

Actual Behavior

#ifndef FOO_H_
#define FOO_H_

int foo();

#endif /* FOO_H_ */

Cevelop Version, Operating System and Compiler

Cevelop C++ IDE

Version: 1.11.0-201901181421

PeterSommerlad commented 5 years ago

works in Version: 1.10.1-201809130520

Darnor commented 4 years ago

Created a bug report upstream: https://bugs.eclipse.org/bugs/show_bug.cgi?id=549965