MCPcopy Create free account
hub / github.com/KDE/kdevelop / buildMacroExpansion

Method buildMacroExpansion

plugins/clang/duchain/builder.cpp:1312–1322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1310}
1311
1312CXChildVisitResult 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
1324template<CXCursorKind CK>
1325CXChildVisitResult Visitor::buildCompoundStatement(CXCursor cursor)

Callers 1

visitCursorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected