xref: /llvm-project/clang/test/Analysis/Inputs/ctu-lookup-name-with-space.cpp (revision 9f90254286dc6ec9be39648200712dfe2e4b1fda)
1 void f(void (*)());
2 void f(void (*)(int));
3 
4 struct G {
GG5   G() {
6     // multiple definitions are found for the same key in index
7     f([]() -> void {});    // USR: c:@S@G@F@G#@Sa@F@operator void (*)()#1
8     f([](int) -> void {}); // USR: c:@S@G@F@G#@Sa@F@operator void (*)(int)#1
9 
10     // As both lambda exprs have the same prefix, if the CTU index parser uses
11     // the first space character as the delimiter between USR and file path, a
12     // "multiple definitions are found for the same key in index" error will
13     // be reported.
14   }
15 };
16 
importee()17 void importee() {}
18