File: basic.cpp

package info (click to toggle)
ycmd 0%2B20230103%2Bgitf53e7ac%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,904 kB
  • sloc: python: 41,740; cpp: 6,055; java: 295; sh: 271; cs: 194; javascript: 150; ansic: 82; makefile: 46; xml: 18; objc: 10
file content (32 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class Bar {
public:
  int x;
  int y;
  char c;

  void barbar() {
    x = 5;
  }
};

struct Foo {
  int x; //!< A docstring.
  int y;
  char c;

  int foobar( int a, float b = 3.0, char c = '\n' ) {
    return 5;
  }
};

typedef enum { VALUE_1, VALUE_2 } enum_test;

int main()
{
  Foo foo;
  Bar bar;
  // The location after the dots are lines 29 and 30, column 7
  bar.barbar();
  foo.x = 3;
  enum_test enumerate = VALUE_1;
}