[PATCH] D80514: [clang-tidy] modernize-use-trailing-return-type support for C++20 concepts and decltype

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 25 09:38:10 PDT 2020


njames93 added inline comments.


================
Comment at: clang-tools-extra/test/clang-tidy/checkers/modernize-use-trailing-return-type.cpp:550
+
+#if __cplusplus > 201703L /* C++2a and later */
+
----------------
bernhardmgruber wrote:
> How do you want to handle these tests which require C++20? I have seen other checks use a separate file for tests which require a different language version.
Yes, move them into a seperate file and specify `-std=c++20` in the run line


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80514/new/

https://reviews.llvm.org/D80514





More information about the cfe-commits mailing list