hokein added inline comments.
================ Comment at: clang-reorder-fields/ReorderFieldsAction.cpp:236 + + // CXXRD will be nullptr if C code (not C++) is being processed + const CXXRecordDecl *CXXRD = dyn_cast<CXXRecordDecl>(RD); ---------------- Nit: missing a trailing `.`. I think we could use `Context.getLangOpts()` to determine whether the file being processed is C or C++. Use early return If the code is C. Repository: rL LLVM https://reviews.llvm.org/D35329 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits