[cfe-commits] Name clash causing troubles.
Enea Zaffanella
zaffanella at cs.unipr.it
Sat Jun 30 00:55:24 PDT 2012
In include/clang/AST/RawCommentList.h we have
class RawComment {
public:
enum CommentKind {
CK_Invalid, ///< Invalid comment
[...]
In include/clang/AST/OperationKinds.h the following macro is defined
#define CK_Invalid ((CastKind) -1)
In clang sources this is not causing immediate problems (the two header
files are not included together or, if they are, the former is included
before the latter).
In our own sources, the inclusion order happens to be the other way
round, leading to:
In file included from include/clang/AST/ASTContext.h:30:0,
[...]
include/clang/AST/RawCommentList.h:24:5: error: expected identifier
before ‘(’ token
Enea.
More information about the cfe-commits
mailing list