mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
d6123bd861
This means we will now report function calls that happen in the global scope (previously, those would only show up for find all refs).
35 lines
579 B
C++
35 lines
579 B
C++
#if false
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct MyBar {
|
|
int x;
|
|
int aaaa1;
|
|
int aaaa2;
|
|
int aaaa3;
|
|
static int foobez;
|
|
|
|
// This is some awesome docs.
|
|
float MemberFunc(int a, char b, std::vector<int> foo);
|
|
float MemberFunc2(int a, char b, std::vector<int> foo);
|
|
|
|
// The names are some extra state.
|
|
std::vector<std::string> names;
|
|
};
|
|
|
|
int MyBar::foobez;
|
|
|
|
int foo() {
|
|
int a = 10;
|
|
MyBar foooo;
|
|
MyBar f;
|
|
MyBar f2;
|
|
}
|
|
|
|
float MyBar::MemberFunc(int a, char b, std::vector<int> foo) {
|
|
this->x = 100;
|
|
this->MemberFunc(0, 0, {});
|
|
|
|
return ::foo();
|
|
}
|
|
#endif |