Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Dietrich
clang-hash
Commits
dd69af56
Commit
dd69af56
authored
Mar 17, 2016
by
Moritz Koenig
Browse files
Not as conservative now, I guess
parent
375fb194
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/hash-visitor.cc
View file @
dd69af56
...
...
@@ -767,7 +767,7 @@ bool HashVisitor::VisitBlockDecl(const BlockDecl *Node)
bool
HashVisitor
::
VisitFunctionDecl
(
const
FunctionDecl
*
Node
){
//Ignore extern declarations
if
(
Node
->
getStorageClass
()
==
StorageClass
::
SC_Extern
||
Node
->
getStorageClass
()
==
StorageClass
::
SC_PrivateExtern
||
!
Node
->
hasBody
()){
if
(
Node
->
getStorageClass
()
==
StorageClass
::
SC_Extern
||
Node
->
getStorageClass
()
==
StorageClass
::
SC_PrivateExtern
||
!
Node
->
isThisDeclarationADefinition
()){
doNotHashThis
=
true
;
return
true
;
}
...
...
test/tests_Moe/FD_void_unused.c
0 → 100644
View file @
dd69af56
void
func
(
void
);
{{
A
}}
{{
B
}}
int
main
(){
return
0
;
}
/*
* check-name: void FuncDecl unused
* B == A
*/
test/tests_Moe/FD_void_used.c
0 → 100644
View file @
dd69af56
void
func
(
void
);
{{
A
}}
{{
B
}}
int
main
(){
func
();
{{
A
}}
return
0
;
}
/*
* check-name: void FuncDecl used
* B != A
*/
Write
Preview
Supports
Markdown
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