[PATCH] D80514: [clang-tidy] modernize-use-trailing-return-type support for C++20 concepts and decltype
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 21 11:04:52 PDT 2020
aaron.ballman added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp:430
+ AT->getKeyword() == AutoTypeKeyword::Auto &&
+ !hasAnyNestedLocalQualifiers(F->getDeclaredReturnType()))
+ return;
----------------
aaron.ballman wrote:
> Why do we need to check that there aren't any nested local qualifiers?
I'm still wondering about this.
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/modernize-use-trailing-return-type.cpp:1
-// RUN: %check_clang_tidy -std=c++14,c++17 %s modernize-use-trailing-return-type %t -- -- -fdeclspec -fexceptions
+// RUN: %check_clang_tidy -std=c++14-or-later %s modernize-use-trailing-return-type %t -- -- -fdeclspec -fexceptions -DCOMMAND_LINE_INT=int
// FIXME: Fix the checker to work in C++20 mode, it is performing a
----------------
The change to the language standard line makes me wonder if the fixme below it is now stale, or if the test will fail in C++20 mode.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80514/new/
https://reviews.llvm.org/D80514
More information about the cfe-commits
mailing list