Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bpftrace
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bpftrace
Commits
acb4991d
Commit
acb4991d
authored
Oct 15, 2018
by
Brendan Gregg
Committed by
GitHub
Oct 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #177 from sandip4n/ppc64-dev
Extend support for char type
parents
f2b0039c
ccc8649c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/clang_parser.cpp
src/clang_parser.cpp
+2
-1
No files found.
src/clang_parser.cpp
View file @
acb4991d
...
...
@@ -47,6 +47,7 @@ static SizedType get_sized_type(CXType clang_type)
switch
(
clang_type
.
kind
)
{
case
CXType_Char_S
:
case
CXType_Char_U
:
case
CXType_SChar
:
case
CXType_UChar
:
case
CXType_Short
:
...
...
@@ -83,7 +84,7 @@ static SizedType get_sized_type(CXType clang_type)
{
auto
elem_type
=
clang_getArrayElementType
(
clang_type
);
auto
size
=
clang_getArraySize
(
clang_type
);
if
(
elem_type
.
kind
==
CXType_Char_S
)
if
(
elem_type
.
kind
==
CXType_Char_S
||
elem_type
.
kind
==
CXType_Char_U
)
{
return
SizedType
(
Type
::
string
,
size
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment