Jump to content

User:Legalize/Refactorings

From Wikipedia, the free encyclopedia
  • Replace malloc + memset with calloc
  • Replace malloc(X*Y) with reallocarray(X, Y)

Clang Matchers

[edit]
  • Match return expression on returnStmt
  • Extend hasParameter to FunctionProtoType nodes
  • Extend returns to FunctionProtoType nodes
  • Extend parameterCountIs to FunctionProtoType nodes
  • Extend hasAnyParameter to FunctionProtoType nodes
  • Match statement ordering in a compoundStmt block