[clang-tools-extra] [clang-tidy][NFC] Refactor `modernize-use-trailing-return-type-check` check code and tests (PR #140759)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Tue May 20 17:57:15 PDT 2025


================
@@ -113,7 +113,7 @@ struct UnqualNameVisitor : public RecursiveASTVisitor<UnqualNameVisitor> {
 };
 } // namespace
 
-constexpr llvm::StringLiteral Message =
+constexpr llvm::StringLiteral MessageFunction =
----------------
vbvictor wrote:

This came from https://github.com/llvm/llvm-project/pull/135383, I will need a second error message for lambdas. Maybe it's better to write `ErrorMessageOnFunction` and `ErrorMessageOnLambda` or `MessageOnFunction` and `MessageOnLambda` for short.

https://github.com/llvm/llvm-project/pull/140759


More information about the cfe-commits mailing list