VectorCAST Error while Parsing Restrict Keyword
Why do I get a parse error in the form of
error: expected a ")"
void *memcpy(void *restrict __DST, const void *restrict __SRC, size_t __LEN) __attribute__(__format__(__memcpy__,1,2,3)));
It’s likely that the failure appears because VectorCAST has not been told the compiler, that it is compiling for C99 code and thus the compile does not see restrict as a keyword.
In VectorCAST please add under Tools | Options | C/C++ | Language | Parser flags
Then rebuild to resolve.