56e97255ed4dee2f31b7100264a4113ea3218463
David Blume first commit

David Blume authored 8 years ago

1) #include <iostream>
2) #include "../include/my_lib.hpp"
3) 
4) using namespace std;
5) 
dblume Add .clang-format

dblume authored 1 year ago

6) namespace {
David Blume Make ctags and cscope more...

David Blume authored 6 years ago

7) 
dblume Add .clang-format

dblume authored 1 year ago

8) int my_lib_helper_fn(int x)
9) {
10)     cout << "The function " << __func__ << " with parameter " << x << " was called."
11)          << endl;
David Blume Make ctags and cscope more...

David Blume authored 6 years ago

12)     return x + 1;
13) }
14) 
dblume Add .clang-format

dblume authored 1 year ago

15) } // namespace
16) 
David Blume Have cscope ignore symbolic...

David Blume authored 6 years ago

17) namespace MY_LIB {
18) 
dblume Add .clang-format

dblume authored 1 year ago

19) my_lib_rect::my_lib_rect(int width, int height) : width_(width), height_(height) {}
David Blume Make ctags and cscope more...

David Blume authored 6 years ago

20) 
21) int my_lib_rect::area() const
22) {
David Blume Added some documentation fo...

David Blume authored 3 years ago

23)     return width_ * height_;
David Blume Make ctags and cscope more...

David Blume authored 6 years ago

24) }
25) 
dblume Remove declaration tags. Be...

dblume authored 2 years ago

26) int my_lib_fn()
27) {
David Blume Use __PRETTY_FUNCTION__ and...

David Blume authored 8 years ago

28)     cout << "The function " << __func__ << " was called." << endl;
David Blume first commit

David Blume authored 8 years ago

29)     return 0;
30) }
31) 
dblume Remove declaration tags. Be...

dblume authored 2 years ago

32) int my_lib_fn(int x)
33) {
David Blume Make ctags and cscope more...

David Blume authored 6 years ago

34)     int a = my_lib_helper_fn(x);
dblume Add .clang-format

dblume authored 1 year ago

35)     cout << "The function " << __PRETTY_FUNCTION__ << " with parameter " << x
36)          << " was called." << endl;
David Blume Make ctags and cscope more...

David Blume authored 6 years ago

37)     return x + a;
David Blume first commit

David Blume authored 8 years ago

38) }
David Blume Have cscope ignore symbolic...

David Blume authored 6 years ago

39)