//===--- Source.cpp - Source expression tracking ----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "Source.h" #include "clang/AST/Expr.h" usingnamespaceclang; usingnamespaceclang::interp; SourceLocation SourceInfo::getLoc() const { … } SourceRange SourceInfo::getRange() const { … } const Expr *SourceInfo::asExpr() const { … } const Expr *SourceMapper::getExpr(const Function *F, CodePtr PC) const { … } SourceLocation SourceMapper::getLocation(const Function *F, CodePtr PC) const { … } SourceRange SourceMapper::getRange(const Function *F, CodePtr PC) const { … }