Skip to content

Commit

Permalink
fix: File format and update schema and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper committed Apr 19, 2024
1 parent 4d29fca commit 324acb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ SELECT DISTINCT name AS function_name FROM functions
| is_static | Boolean | Return ture if a C++ member function is static. |
| is_const | Boolean | Return ture if a C++ member function is const. |
| has_template | Boolean | True if it's has template |
| access_modifier | Integer | Returns the access control level for method, 1 for public, 2 protected, 3 provide, 0 for invalid. |

---

Expand Down
2 changes: 1 addition & 1 deletion src/clang_function_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ extern "C" fn visit_children(
is_static,
is_const,
has_template,
access_modifier
access_modifier,
});

clang_disposeString(cursor_name);
Expand Down
2 changes: 2 additions & 0 deletions src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ lazy_static! {
map.insert("is_static", DataType::Boolean);
map.insert("is_const", DataType::Boolean);
map.insert("has_template", DataType::Boolean);
map.insert("access_modifier", DataType::Integer);
map
};
}
Expand All @@ -37,6 +38,7 @@ lazy_static! {
"is_static",
"is_const",
"has_template",
"access_modifier",
],
);
map
Expand Down

0 comments on commit 324acb7

Please sign in to comment.