MCPcopy Create free account
hub / github.com/KDAB/codebrowser / VisitDesignatedInitExpr

Method VisitDesignatedInitExpr

generator/browserastvisitor.h:167–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 bool VisitDesignatedInitExpr(clang::DesignatedInitExpr *e) {
168#if CLANG_VERSION_MAJOR==3 && CLANG_VERSION_MINOR<5
169 llvm::ArrayRef<clang::DesignatedInitExpr::Designator> designators{e->designators_begin(),
170 e->designators_end()};
171#else
172 auto designators = e->designators();
173#endif
174 for(auto it : designators) {
175 if (it.isFieldDesignator()) {
176 if (auto decl = it.getField()) {
177 annotator.registerUse(decl, it.getFieldLoc(), Annotator::Ref, currentContext,
178 Annotator::Use_Write);
179 }
180 }
181 }
182 return true;
183 }
184
185 bool VisitTypedefTypeLoc(clang::TypedefTypeLoc TL) {
186 clang::SourceRange range = TL.getSourceRange();

Callers

nothing calls this directly

Calls 1

registerUseMethod · 0.80

Tested by

no test coverage detected