I'm not sure that this is a bug or whether I'm doing something wrong (not unusual, that's why I like cppcheck :)
"using" has been around since C++11 and I've specified C++17 on the command line but I'm still getting "syntax error" from the check.
$ cppcheck --std=c++17 -q --enable=all --inconclusive foo.h foo.h:3:0: error: syntax error [syntaxError] using array_p = const array_t *;
Where foo.h is this:
#define ARRAY_SIZE 16 typedef unsigned char array_t[ARRAY_SIZE]; using array_p = const array_t *;
https://en.cppreference.com/w/cpp/language/type_alias
Thanks! We support using but it seems the syntax check is too noisy here. I created ticket: https://trac.cppcheck.net/ticket/9812
using
Log in to post a comment.
I'm not sure that this is a bug or whether I'm doing something wrong (not unusual, that's why I like cppcheck :)
"using" has been around since C++11 and I've specified C++17 on the command line but I'm still getting "syntax error" from the check.
Where foo.h is this:
https://en.cppreference.com/w/cpp/language/type_alias
Thanks! We support
using
but it seems the syntax check is too noisy here. I created ticket: https://trac.cppcheck.net/ticket/9812