MaskRay added inline comments.
================ Comment at: clang/lib/Driver/Driver.cpp:2316 + if (LastInputArg->getIndex() < LastXArg->getIndex()) { + Diag(clang::diag::warn_drv_unused_x) << LastXArg->getValue(); + } ---------------- https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements Don’t Use Braces on Simple Single-Statement Bodies of if/else/loop Statements Is it guaranteed that both LastXArg and LastInputArg will be non-null? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121683/new/ https://reviews.llvm.org/D121683 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits