Correct //+private file bug
This commit is contained in:
1 parent
9cbf46e689
commit
3c2ed3bb69
1 file changed
+3
-3
+3
-3
@@ -3477,10 +3477,10 @@ void check_collect_value_decl(CheckerContext *c, Ast *decl) {
|
||||
if (entity_visibility_kind == EntityVisiblity_Public &&
|
||||
(c->scope->flags&ScopeFlag_File) &&
|
||||
c->scope->file) {
|
||||
if (c->scope->file->flags & AstFile_IsPrivatePkg) {
|
||||
entity_visibility_kind = EntityVisiblity_PrivateToPackage;
|
||||
} else if (c->scope->file->flags & AstFile_IsPrivateFile) {
|
||||
if (c->scope->file->flags & AstFile_IsPrivateFile) {
|
||||
entity_visibility_kind = EntityVisiblity_PrivateToFile;
|
||||
} else if (c->scope->file->flags & AstFile_IsPrivatePkg) {
|
||||
entity_visibility_kind = EntityVisiblity_PrivateToPackage;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user