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

Function getTopMacroCallerLoc

lib/utils/ASTUtil.cpp:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130SourceLocation getTopMacroCallerLoc(const DynTypedNode &Node,
131 const SourceManager &SrcManager) {
132 if (const auto *D = Node.get<Decl>())
133 return SrcManager.getTopMacroCallerLoc(D->getBeginLoc());
134 if (const auto *S = Node.get<Stmt>())
135 return SrcManager.getTopMacroCallerLoc(S->getBeginLoc());
136 if (const auto *C = Node.get<CXXCtorInitializer>())
137 return SrcManager.getTopMacroCallerLoc(C->getSourceRange().getBegin());
138 assert(false && "Not Implemented Yet");
139}
140
141bool isDefaultArgument(clang::Expr &E, unsigned AIdx) {
142 auto Args = getArgExprs(E);

Callers 2

insertMacroNodeMethod · 0.85

Calls 1

getBeginLocMethod · 0.80

Tested by

no test coverage detected