79097777

Date: 2024-10-17 11:13:25
Score: 0.5
Natty:
Report link

if you want to synthesize a variable declaration from a QualType, you can use ASTContext::getTrivialTypeSourceInfo to create a TypeSourceInfo for the QualType, then construct a VarDecl using VarDecl::Create with the TypeSourceInfo and the appropriate declaration context.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: d3fco