We'll need to add more cases for Objective-C entities and adding
everything to err_module_odr_violation_mismatch_decl_diff makes it
harder to work with over time.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM if the changes is specific to C++. Otherwise we need to rename for that enumerate.
| clang/lib/Serialization/ASTReader.cpp | ||
|---|---|---|
| 9642 | Is this specific to C++? | |
Thanks for the review, Chuanqi!
| clang/lib/Serialization/ASTReader.cpp | ||
|---|---|---|
| 9642 | That is supposed to be for C++ only. In D128490 I'm moving it to bool ODRDiagsEmitter::diagnoseMismatch( const CXXRecordDecl *, const CXXRecordDecl *, const struct CXXRecordDecl::DefinitionData *) const so it will be even harder to use for non-C++ decls. And for pure C RecordDecl the plan is to move common checks there and call them from C++-specific code. So this enum should remain C++-specific. At most I might move some constants to ODRRecordDifference or something like that. | |
Is this specific to C++?