Skip to content

Commit

Permalink
update cdt (#25)
Browse files Browse the repository at this point in the history
* update cdt

Signed-off-by: Prabhu Subramanian <[email protected]>

* support more cpp extensions

Signed-off-by: Prabhu Subramanian <[email protected]>

---------

Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu authored Oct 24, 2023
1 parent f1de4bc commit 29a56c3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "chen"
ThisBuild / organization := "io.appthreat"
ThisBuild / version := "0.5.0"
ThisBuild / version := "0.5.1"
ThisBuild / scalaVersion := "3.3.1"

val cpgVersion = "1.4.22"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ package object cpgcreation {
* io.appthreat.c2cpg.parser.FileDefaults
*/
private def isCFile(filename: String): Boolean =
Seq(".c", ".cc", ".cpp", ".h", ".hpp", ".hh").exists(filename.endsWith)
Seq(".c", ".cc", ".cpp", ".h", ".hpp", ".hh", ".ccm", ".cxxm", ".c++m").exists(filename.endsWith)

private def isYamlFile(filename: String): Boolean =
Seq(".yml", ".yaml").exists(filename.endsWith)
Expand Down
2 changes: 1 addition & 1 deletion platform/frontends/c2cpg/lib/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
org.eclipse.cdt jars were downloaded from

https://download.eclipse.org/tools/cdt/releases/11.2/cdt-11.2.0/plugins/
https://download.eclipse.org/tools/cdt/releases/11.3/cdt-11.3.1/plugins/
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ object FileDefaults {

val HEADER_FILE_EXTENSIONS: Set[String] = Set(C_HEADER_EXT, CPP_HEADER_EXT, OTHER_HEADER_EXT)

private val CPP_FILE_EXTENSIONS = Set(CC_EXT, CPP_EXT, CPP_HEADER_EXT)
private val CPP_FILE_EXTENSIONS = Set(CC_EXT, CPP_EXT, CPP_HEADER_EXT, ".ccm", ".cxxm", ".c++m")

def isHeaderFile(filePath: String): Boolean =
HEADER_FILE_EXTENSIONS.exists(filePath.endsWith)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "appthreat-chen"
version = "0.5.0"
version = "0.5.1"
description = "Code Hierarchy Exploration Net (chen)"
authors = ["Team AppThreat <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 29a56c3

Please sign in to comment.