[PATCH] D75901: [clang-tidy] misc-unconventional-assign-operator suggest to use rvalue references in C++03 mode
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 10 05:12:15 PDT 2020
njames93 added a comment.
Please add a test case for this
================
Comment at: clang-tools-extra/clang-tidy/misc/UnconventionalAssignOperatorCheck.cpp:76-77
} else {
+ const ASTContext *ASTCtx = Result.Context;
+ const LangOptions &Opts = ASTCtx->getLangOpts();
static const char *const Messages[][2] = {
----------------
Remove these lines and change below to be `getLangOpts().CPlusPlus11`. `getLangOpts()` is a protected method in `ClangTidyCheck`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75901/new/
https://reviews.llvm.org/D75901
More information about the cfe-commits
mailing list