All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.joern.ghidra2cpg.passes.MetaDataPass.scala Maven / Gradle / Ivy

The newest version!
package io.joern.ghidra2cpg.passes

import io.shiftleft.codepropertygraph.generated.Cpg
import io.shiftleft.codepropertygraph.generated.{Languages, nodes}
import io.shiftleft.passes.CpgPass

class MetaDataPass(filename: String, cpg: Cpg) extends CpgPass(cpg) {

  override def run(diffGraph: DiffGraphBuilder): Unit = {
    diffGraph.addNode(
      nodes
        .NewTypeDecl()
        .filename(filename)
        .fullName("")
        .name("")
    )

    diffGraph.addNode(
      nodes
        .NewMetaData()
        .language(Languages.GHIDRA)
        .version("0.1")
    )
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy