Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
902116fd
Commit
902116fd
authored
1 year ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[parser] ignore _Nullable attribute
parent
75986ada
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/kernel_internals/parsing/clexer.mll
+1
-0
1 addition, 0 deletions
src/kernel_internals/parsing/clexer.mll
src/kernel_internals/parsing/cparser.mly
+2
-1
2 additions, 1 deletion
src/kernel_internals/parsing/cparser.mly
with
3 additions
and
1 deletion
src/kernel_internals/parsing/clexer.mll
+
1
−
0
View file @
902116fd
...
...
@@ -161,6 +161,7 @@ let init_lexicon _ =
STATIC_ASSERT
loc
);
(
"__attribute__"
,
fun
loc
->
ATTRIBUTE
loc
);
(
"__attribute"
,
fun
loc
->
ATTRIBUTE
loc
);
(
"_Nullable"
,
fun
loc
->
NOP_ATTRIBUTE
loc
);
(
"__blockattribute__"
,
fun
_
->
BLOCKATTRIBUTE
);
(
"__blockattribute"
,
fun
_
->
BLOCKATTRIBUTE
);
(
"__asm__"
,
fun
loc
->
ASM
loc
);
...
...
This diff is collapsed.
Click to expand it.
src/kernel_internals/parsing/cparser.mly
+
2
−
1
View file @
902116fd
...
...
@@ -368,7 +368,7 @@ let in_ghost_block ?(battrs=[]) l =
%
token
<
Cabs
.
cabsloc
>
IF
TRY
EXCEPT
FINALLY
%
token
ELSE
%
token
<
Cabs
.
cabsloc
>
ATTRIBUTE
INLINE
NORETURN
STATIC_ASSERT
ASM
TYPEOF
FUNCTION__
PRETTY_FUNCTION__
%
token
<
Cabs
.
cabsloc
>
NOP_ATTRIBUTE
ATTRIBUTE
INLINE
NORETURN
STATIC_ASSERT
ASM
TYPEOF
FUNCTION__
PRETTY_FUNCTION__
%
token
LABEL__
%
token
<
Cabs
.
cabsloc
>
BUILTIN_VA_ARG
%
token
BLOCKATTRIBUTE
...
...
@@ -1587,6 +1587,7 @@ attributes_with_asm:
attribute_nocv
:
ATTRIBUTE
LPAREN
paren_attr_list
RPAREN
{
(
"__attribute__"
,
$
3
)
,
$
1
}
|
NOP_ATTRIBUTE
{
(
"__attribute__"
,
[]
)
,
$
1
}
|
DECLSPEC
paren_attr_list_ne
{
(
"__declspec"
,
$
2
)
,
$
1
}
|
MSATTR
{
(
fst
$
1
,
[]
)
,
snd
$
1
}
/*
ISO
6
.
7
.
3
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment