Closed
Description
After making clang-tidy skip processing system headers by default, the following test case no longer works:
This is because the CXXRecordDecl
corresponding to the global anonymous union is not picked up by the ASTConsumer::handleTopLevelDecl
function, i.e. it is not considered a top-level declaration. Most likely because it's anonymous i.e. it does not have a name. Due to this, the AST traversal does not find it and so the check cannot process this case.