My YCM configuration is working fine.
However, in one header file there is a "#ifdef' with a define that is, depending on the configuration, defined within the call to the compiler, see sample code below and attached. When it is defined, e.g. "-DDUSE_CK_PARSER", within the ".ycm_extra_conf.py" then everything is fine. I see no reason why clang should complain about when it is not defined.
Surprisingly, the errors shown below, are gone as soon as the line 'int i;' is activated (not as comment anymore).
Is this a bug? Which next steps do you suggest?
Best regards,
Claudius
#ifndef __CK_H_ // error: unterminated conditional directive
#define __CK_H_
// int i;
#ifdef USE_CK_PARSER // error: unterminated conditional directive
typedef enum
{
CK_DATA_TYPE = 0,
CK_DATA_TYPE_1 = 1
} CK_DATA_TYPE_t;
#endif /* USE_CK_PARSER */ // error: #endif without #if
#endif /* __CK_H_ */ // error: #endif without #if