1// RUN: %check_clang_tidy -std=c++20 %s misc-use-internal-linkage %t -- -- -I%S/Inputs/use-internal-linkage
2
3module;
4
5export module test;
6
7export void single_export_fn() {}
8export int single_export_var;
9
10export {
11 void group_export_fn1() {}
12 void group_export_fn2() {}
13 int group_export_var1;
14 int group_export_var2;
15}
16
17export namespace aa {
18void namespace_export_fn() {}
19int namespace_export_var;
20} // namespace aa
21

Provided by KDAB

Privacy Policy
Improve your Profiling and Debugging skills
Find out more

source code of clang-tools-extra/test/clang-tidy/checkers/misc/use-internal-linkage-module.cpp