[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests f916b8f 125/316: C/C++: Fix func
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests f916b8f 125/316: C/C++: Fix function pointer parsing |
Date: |
Fri, 27 Jan 2017 20:03:33 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit f916b8f7d40ee0c3e60bc228317f2069a3d76561
Author: David Engster <address@hidden>
Commit: Edward John Steere <address@hidden>
C/C++: Fix function pointer parsing
* semantic/bovine/c.by (variablearg-opt-name): Support parsing of
function pointers inside an argument list.
* semantic/bovine/c.el (semantic-c-reconstitute-token): Change
handling of function pointers; instead of seeing them as variables,
handle them as functions with a 'function-pointer' attribute. Also,
correctly deal with function pointers as function arguments.
(semantic-c-reconstitute-function-arglist): New function to parse
function pointers inside an argument list.
(semantic-format-tag-name): Use 'function-pointer' attribute instead
of the old 'functionpointer-flag'.
* tests/cedet/semantic/test/manual/cedet/testsppreplace.c:
* tests/cedet/semantic/test/manual/cedet/testsppreplaced.c: Disable
test which now breaks due to improved function pointer parsing.
This test is broken anyway, since it just succeeded because the
argument list was not parsed at all before this commit. The
underlying bug was always present in the semantic preprocessor.
---
test/manual/cedet/cedet/semantic/tests/testsppreplaced.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/manual/cedet/cedet/semantic/tests/testsppreplaced.c
b/test/manual/cedet/cedet/semantic/tests/testsppreplaced.c
index 49a982a..105d6ac 100644
--- a/test/manual/cedet/cedet/semantic/tests/testsppreplaced.c
+++ b/test/manual/cedet/cedet/semantic/tests/testsppreplaced.c
@@ -101,9 +101,11 @@ int ABtest;
/* TEST: Macro Recursion limits in arguments to a macro.
* This code is from ALSA, noticed by Yupeng. */
+/* See commentary in testsppreplace.c. This test is broken.
+
struct mr_moose_ops {
int (*mr_moose_disconnect)(struct mr_moose *dev);
};
-
+*/
/* End */
- [Emacs-diffs] scratch/merge-cedet-tests 690c256 092/316: ("Lisp"): Add :versionsource, and :aux-packages, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 690c256 092/316: ("Lisp"): Add :versionsource, and :aux-packages, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests fac8155 094/316: ("cit"): Add speedbar aux package., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests f300a36 100/316: (Lisp): Add cit-symref.el., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a6f2191 103/316: (Lisp): Add cit-arduino, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 8c4e7fd 111/316: Added arduino and better suggestions, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 901dc28 119/316: New test file., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a375d40 093/316: ("cit"): Give it a new name. (Misc): New target., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d2dcc15 112/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 19ff260 128/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 64c305b 137/316: Test files contributed by Barry OReilly, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests f916b8f 125/316: C/C++: Fix function pointer parsing,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests f3a937b 143/316: Test project file., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 377e041 142/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ae78cf0 140/316: Tests: Add ERT test for the C Bovinator, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 0897a28 127/316: Test file for Project.ede proj., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 3fd7717 192/316: Synchronize cedet/srecode with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 558874e 169/316: Update comments, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests db5f56b 172/316: (cedet-integ-test): Post a PASSED message., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 40b4bd4 204/316: Adedd `ede-detect-utest', Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 24be9ac 184/316: Insert tag's code if it's there, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 6bd181e 224/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27