MCPcopy Create free account
hub / github.com/Samsung/UTopia / getDebugLoc

Function getDebugLoc

lib/utils/ASTUtil.cpp:85–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85clang::SourceLocation getDebugLoc(const clang::Stmt &S) {
86 if (const auto *E = dyn_cast<CXXOperatorCallExpr>(&S))
87 return E->getOperatorLoc();
88 else if (const auto *E = dyn_cast<CXXMemberCallExpr>(&S))
89 return E->getExprLoc();
90 return S.getBeginLoc();
91}
92
93FunctionDecl *getFunctionDecl(Expr &E) {
94 if (auto *CE = dyn_cast<CallExpr>(&E))

Callers 5

ASTDefNodeMethod · 0.85
insertMacroNodeMethod · 0.85
updateCallMapMethod · 0.85
checkMethod · 0.85
TEST_FFunction · 0.85

Calls 1

getBeginLocMethod · 0.80

Tested by 1

TEST_FFunction · 0.68