| 128 | } |
| 129 | |
| 130 | SourceLocation 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 | |
| 141 | bool isDefaultArgument(clang::Expr &E, unsigned AIdx) { |
| 142 | auto Args = getArgExprs(E); |
no test coverage detected