#include "ReferenceToConstructedTemporaryCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::readability {
namespace {
struct NotExtendedByDeclBoundToPredicate { … };
AST_MATCHER_P(MaterializeTemporaryExpr, isExtendedByDeclBoundTo, StringRef,
ID) { … }
}
bool ReferenceToConstructedTemporaryCheck::isLanguageVersionSupported(
const LangOptions &LangOpts) const { … }
std::optional<TraversalKind>
ReferenceToConstructedTemporaryCheck::getCheckTraversalKind() const { … }
void ReferenceToConstructedTemporaryCheck::registerMatchers(
MatchFinder *Finder) { … }
void ReferenceToConstructedTemporaryCheck::check(
const MatchFinder::MatchResult &Result) { … }
}