[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests d08bd3b 117/316: C/C++: Fix func
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests d08bd3b 117/316: C/C++: Fix function pointer parsing |
Date: |
Fri, 27 Jan 2017 20:03:32 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit d08bd3b61ba26f2dcc95e892f54d9aa036830fa4
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. ---
tests/cedet/semantic/test/manual/cedet/testsppreplace.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
test/manual/cedet/cedet/semantic/tests/testsppreplace.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/manual/cedet/cedet/semantic/tests/testsppreplace.c
b/test/manual/cedet/cedet/semantic/tests/testsppreplace.c
index 757a53c..ae04d07 100644
--- a/test/manual/cedet/cedet/semantic/tests/testsppreplace.c
+++ b/test/manual/cedet/cedet/semantic/tests/testsppreplace.c
@@ -151,11 +151,19 @@ OBJ(test) /* expands to ABtest */
/* TEST: Macro Recursion limits in arguments to a macro.
* This code is from ALSA (with names changed to moose), noticed by Yupeng. */
+
+/* David Engster:
+ This test is broken. The problem is not an infinite recursion, but that
+ the mr_moose macro shouldn't be applied when there are no arguments.
+ That this test succeeded was simply a bug in the function pointer
+ parser.
+
#define mr_moose(n) list_entry(n, struct mr_moose, list)
struct mr_moose_ops {
int (*mr_moose_disconnect)(struct mr_moose *dev);
};
+*/
/* END */
- [Emacs-diffs] scratch/merge-cedet-tests 167edac 002/316: Test system load file., (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 167edac 002/316: Test system load file., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 026efb3 008/316: First changes to make them work., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 322251e 005/316: Disable semanticdb-file saving. Disable srecode map saving., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests dacde10 013/316: Fix unit testing for several tests and do better error checking., Edward John Steere, 2017/01/27
- [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/27
- [Emacs-diffs] scratch/merge-cedet-tests b4eab4f 029/316: (Lisp_LISP): Add cit-gnustep.el, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ecfcde6 028/316: (all, dist): Add scripts (scripts): New, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 534648f 051/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c856c20 052/316: New test file., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 541cc30 053/316: (cpprootsys.h, projincmacros.h): New includes (projmacro_a): New fcn., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d08bd3b 117/316: C/C++: Fix function pointer parsing,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests cd08101 179/316: Added cit uml, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e96e309 178/316: Added new subdir and ensure that the base dir, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 765b8f9 208/316: (cedet-utest-test-alist): Add ede-detect-linux-utest., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests de289a9 189/316: Compare Code And Documtation For Tags, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 7177e01 210/316: Add compdb EDE project, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 284144e 154/316: Fixes for test execution, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests fd40e7f 212/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 404d4da 242/316: Improve compilation active detection, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 3cb2319 243/316: Added code for test tags, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 05006be 049/316: Semantic Symref testing., Edward John Steere, 2017/01/27