mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Clang tool: Skip protobuf namespaces when emitting headers
The protobuf internals are not needed in the API header and will be made available as soon as user code includes any generated proto header. PiperOrigin-RevId: 557749772 Change-Id: Idc48a652ab1892dae559192afbde20ae34e4c7ce
This commit is contained in:
parent
0a0bf05dc3
commit
f378d22405
|
@ -484,6 +484,10 @@ void Emitter::EmitType(clang::TypeDecl* type_decl) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Skip Protocol Buffers namespaces
|
||||||
|
if (ns_root == "google" && ns_path.size() > 1 && ns_path[1] == "protobuf") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
ns_name = absl::StrJoin(ns_path, "::");
|
ns_name = absl::StrJoin(ns_path, "::");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user