[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests a2c77d6 022/316: Move tests in c
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests a2c77d6 022/316: Move tests in cedet/semantic |
Date: |
Sat, 28 Jan 2017 09:09:43 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit a2c77d6ed85ad021aca877cd16fa21b4cb877f4d
Author: xscript <address@hidden>
Commit: Edward John Steere <address@hidden>
Move tests in cedet/semantic
---
.../cedet/cedet/semantic/tests/testfriends.cpp | 37 ++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/test/manual/cedet/cedet/semantic/tests/testfriends.cpp
b/test/manual/cedet/cedet/semantic/tests/testfriends.cpp
new file mode 100644
index 0000000..f84ed5a
--- /dev/null
+++ b/test/manual/cedet/cedet/semantic/tests/testfriends.cpp
@@ -0,0 +1,37 @@
+// Test parsing of friends and how they are used in completion.
+/*
+ >> Thanks Damien Profeta for the nice example.
+ >
+ > I paste a small example.
+ > It would be great if friend can be well parsed and even greater if
+ > class B can access to all the members of A.
+*/
+
+class Af // %2% ( ( "testfriends.cpp" ) ( "Af" "B::testB" ) )
+{
+public:
+ int pubVar;
+private:
+ int privateVar;
+
+ friend class B;
+
+};
+
+class B
+{
+public:
+ int testB();
+ int testAB();
+
+};
+
+
+int B::testB() {
+ Af classA;
+ classA.//-1-
+ ; //#1# ( "privateVar" "pubVar" )
+}
+
+int B::testAB() { // %1% ( ( "testfriends.cpp" ) ( "B" "B::testAB" ) )
+}
- [Emacs-diffs] scratch/merge-cedet-tests 46053c1 010/316: Don't init semantic mode at this point, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 46053c1 010/316: Don't init semantic mode at this point, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 692209d 011/316: Disable saving EDE's cache file., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests fb048d1 006/316: (semantic-c): Hack for Emacs 21 to get things running., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests c43f15e 015/316: Test project configuration file., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 026efb3 008/316: First changes to make them work., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 439ca10 007/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 1a9f3c4 009/316: Disable `ede-project-directories' checking during tests., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 39b4ea6 019/316: Test Makefile.am for subdir in project-am detector., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 812f259 012/316: Add header comments and provide., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests d9b806d 016/316: New template file testing the PROJECT variable setting., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests a2c77d6 022/316: Move tests in cedet/semantic,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests d15788e 025/316: (Lisp_LISP): Add cit-cpp, cit-el, cit-texi, cit-load, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 23862f3 023/316: Test friends, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 066e017 024/316: New Makefile., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests ecfcde6 028/316: (all, dist): Add scripts (scripts): New, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests a4cba68 020/316: New test for project variables., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 8899bf4 017/316: Add header comments and provide., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests b13b432 031/316: (LOADPATH): Add contrib. (Misc): New (dist): Add Misc, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests cdcc2c4 037/316: (Lisp_LISP): Add cit-dist.el, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 42e1106 034/316: (Lisp_LISP): Add cit-uml.el (Misc_MISC): Add cit-uml.cgr, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 1d79c16 042/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/28