Commit c38636fc authored by Moritz Koenig's avatar Moritz Koenig
Browse files

Trying to ignore more unimportant stuff

parent d401b560
......@@ -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){
if(Node->getStorageClass() == StorageClass::SC_Extern || Node->getStorageClass() == StorageClass::SC_PrivateExtern || !Node->hasBody()){
doNotHashThis = true;
return true;
}
......@@ -776,9 +776,7 @@ bool HashVisitor::VisitFunctionDecl(const FunctionDecl *Node){
Hash() << "FunctionDecl";
Hash() << Node->getNameInfo().getName().getAsString();
if(Node->hasBody()){
hashStmt(Node->getBody());
}
hashStmt(Node->getBody());
Hash() << Node->isDefined();
Hash() << Node->isThisDeclarationADefinition();
Hash() << Node->isVariadic();
......
......@@ -212,8 +212,7 @@ protected:
bool dummyFunctionDecl(FunctionDecl *fd){
//Ignore extern declarations
if(fd->getStorageClass() == StorageClass::SC_Extern || fd->getStorageClass() == StorageClass::SC_PrivateExtern){
doNotHashThis = true;
if(fd->getStorageClass() == StorageClass::SC_Extern || fd->getStorageClass() == StorageClass::SC_PrivateExtern || !fd->hasBody()){
return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment