Matching initializing operations inside a constructor

Hello,
I need to make a matcher that finds an initializing operation inside a constructor. In the following code is the underlined expression:

class X {
int a;
X(int b) {a=b;}
};

What I have for now is the following matcher:

DeclarationMatcher CID1_Matcher = constructorDecl(
isDefinition(),
forEachConstructorInitializer(
(isWritten(),
withInitializer(
compoundStmt(
binaryOperator(
hasOperatorName("=")
)
).bind(“CID1”)
))
)
);

But it doesn’t matches anything. What I’m doing wrong?

Hello,
I need to make a matcher that finds an initializing operation inside a
constructor. In the following code is the underlined expression:

class X {
   int a;
   X(int b) {*a=b;*}
};

What I have for now is the following matcher:

DeclarationMatcher CID1_Matcher = constructorDecl(
                  isDefinition(),
                  forEachConstructorInitializer(

What you're trying to match is not a constructor initializer. It's an
assignment inside the definition of the constructor...