================
@@ -142,6 +147,9 @@ void ConstCorrectnessCheck::registerMatchers(MatchFinder
*Finder) {
const auto FunctionPointerRef =
hasType(hasCanonicalType(referenceType(pointee(functionType()))));
+ // 'const' cannot be combined with 'decltype(auto)'.
+ const auto DecltypeAutoType = hasTypeLoc(hasContainedDecltypeAutoType());
----------------
zwuis wrote:
`hasType(autoType(/* custom AST matcher */))`
https://github.com/llvm/llvm-project/pull/224465
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits