Skip to content

Commit 3cc9467

Browse files
jonsimantova-maurice
authored andcommitted
Fix it so only external C++ symbols matching the list of namespaces to rename
are renamed. C symbols that are external will not be renamed. Also adds a flag to turn off this new behavior, though it's on by default for now. PiperOrigin-RevId: 333613425
1 parent 782ec2a commit 3cc9467

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

merge_libraries_test_file.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,9 @@ extern void ExternFunctionWithParameter(test_namespace::TestClass&&, int);
8181
extern void ExternFunctionWithMultipleParameters(
8282
const test_namespace::TestClass&,
8383
std::unique_ptr<test_namespace::TestClass>, std::string);
84+
85+
namespace another_namespace {
86+
87+
extern void ExternFunctionNotUsingNamespace(std::string);
88+
89+
} // namespace another_namespace

0 commit comments

Comments
 (0)