~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/cpp/examples/includecompletion.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*! multi line
 
2
* comment header */
 
3
 
 
4
void fun1()
 
5
{
 
6
    // invoke code completion.
 
7
    Foo f;
 
8
    f.
 
9
    // include should be added underneath the file comment
 
10
}
 
11
 
 
12
#include "dummy.h"
 
13
 
 
14
void fun2()
 
15
{
 
16
    // invoke code completion.
 
17
    Bar b;
 
18
    b.
 
19
    // include should be added under dummy.h
 
20
}
 
21
 
 
22
class Baz;
 
23
void fun3()
 
24
{
 
25
    // invoke code completion
 
26
    Baz b;
 
27
    b.
 
28
    // include should be added somewhere in front
 
29
}
 
30
 
 
31
void fun4()
 
32
{
 
33
    // invoke code completion
 
34
    Foo f;
 
35
    f.
 
36
    // include should added in front of the FIRST Foo declaration
 
37
}
 
38
 
 
39
#include "dummy.moc"