| 1310 | } |
| 1311 | |
| 1312 | CXChildVisitResult Visitor::buildMacroExpansion(CXCursor cursor) |
| 1313 | { |
| 1314 | buildUse(cursor); |
| 1315 | |
| 1316 | // cache that we encountered a macro expansion at this location |
| 1317 | unsigned int offset; |
| 1318 | clang_getSpellingLocation(clang_getCursorLocation(cursor), nullptr, nullptr, nullptr, &offset); |
| 1319 | m_macroExpansionLocations << offset; |
| 1320 | |
| 1321 | return CXChildVisit_Recurse; |
| 1322 | } |
| 1323 | |
| 1324 | template<CXCursorKind CK> |
| 1325 | CXChildVisitResult Visitor::buildCompoundStatement(CXCursor cursor) |