[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 1c4ec31 045/316: Add test for pa
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 1c4ec31 045/316: Add test for parsing local variables |
Date: |
Sat, 28 Jan 2017 09:09:44 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 1c4ec31f34a619289209665461d35444dfb05f7c
Author: David Engster <address@hidden>
Commit: Edward John Steere <address@hidden>
Add test for parsing local variables
* tests/cedet/semantic/test/manual/cedet/testlocalvars.cpp: New file.
* tests/cedet/semantic/test/manual/cedet/Project.ede: Add above.
* tests/cedet/semantic/test/manual/cedet/Makefile: Regenerate.
* tests/cedet/semantic/ia-utest.el (semantic-ia-utest-file-list): Add
new test file.
---
.../cedet/cedet/semantic/tests/testlocalvars.cpp | 33 ++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/test/manual/cedet/cedet/semantic/tests/testlocalvars.cpp
b/test/manual/cedet/cedet/semantic/tests/testlocalvars.cpp
new file mode 100644
index 0000000..4bba0ff
--- /dev/null
+++ b/test/manual/cedet/cedet/semantic/tests/testlocalvars.cpp
@@ -0,0 +1,33 @@
+// Test parsing of local variables
+
+class foo {
+ foo *member;
+ char[10] anArray;
+};
+
+void func()
+{
+ foo local1;
+ foo* local2 = localvar.member;
+ foo* local3 = new foo();
+ foo local4[10];
+ char local5[5] = {'1','2','3','4','5'};
+ char *local6 = "12345";
+ char local7 = local.anArray[0];
+
+ // Check that all of the above was parsed
+ local//-1-
+ ; //#1# ("local1" "local2" "local3" "local4" "local5" "local6" "local7")
+
+ local1.//-2-
+ ; //#2# ("anArray" "member")
+
+ local2->//-3-
+ ; //#3# ("anArray" "member")
+
+ local3->//-4-
+ ; //#4# ("anArray" "member")
+
+ local4[0].//-5-
+ ; //#5# ("anArray" "member")
+}
- [Emacs-diffs] scratch/merge-cedet-tests 8c4e7fd 111/316: Added arduino and better suggestions, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 8c4e7fd 111/316: Added arduino and better suggestions, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 6945c33 126/316: Expand preprocessor to handle macros which open or close scope., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 89526ab 134/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0e41dab 116/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 8ba639f 150/316: (ede-detect-utest-project-list): Add jvm-base projects for ant, lein, maven, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 284144e 154/316: Fixes for test execution, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests fa54ec1 162/316: (isFooLike, A, B, main2): New test tweaked from example by Liang Wang, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests cebc72c 228/316: Make unit tests use randomized file names, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 7fce11d 056/316: Uniquafy names from last example from Martin to include ms_ prefix., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 779f839 032/316: (LOADPATH): Add speedbar. (EMACSFLAGS): New variable (Lisp): Use above., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 1c4ec31 045/316: Add test for parsing local variables,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 05006be 049/316: Semantic Symref testing., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests c2fada4 230/316: Force srecode repo location and add decorations to debug output, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests f916b8f 125/316: C/C++: Fix function pointer parsing, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests c40401d 273/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 19646a7 141/316: semantic/bovine/c: Add support for typedef references, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 5ef7a99 157/316: tests: Fix typo in ede/detect-utest, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 14c75f7 175/316: (cit-version): New variable. (semantic): New require, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 0781aac 164/316: Add comments, require cedet-files., Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 47b5933 185/316: Move compilation error handling to new function, Edward John Steere, 2017/01/28
- [Emacs-diffs] scratch/merge-cedet-tests 2c1d730 190/316: Ignore Members On Extra Tags, Edward John Steere, 2017/01/28