A problem with forEachConstructorInitializer

Replying on cfe-dev.

Your issue is most confusing. You will need to show us the matcher code you’re trying to get working.

By the way, you do not need to place your own matchers in ASTMatchers.h, you can create an own header file, like so:

#include “clang/ASTMatchers/ASTMatchersMacros.h”

#include “clang/ASTMatchers/ASTMatchersInternal.h”

namespace clang {

namespace ast_matchers {

// your matchers here

} // end namespace ast_matchers

} // end namespace clang

Do not forget the header guard of course and anything else you may need.

As for your build issues: try doing a clean rebuild, i.e. reconfigure (or run cmake again), and then make. I have never used ninja, so no idea if the issue could be on that front. Also make sure that you’ve not accidentally corrupted your LLVM/Clang checkout… But I hope you already tried these.