[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests c672504 249/316: etc/srecode/c.s
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests c672504 249/316: etc/srecode/c.srt: New file, contents from cpp.srt |
Date: |
Fri, 27 Jan 2017 20:03:44 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit c6725040bd05dc3e3f1f586ce6d4abf1a0a6f315
Author: Eric Ludlam <address@hidden>
Commit: Edward John Steere <address@hidden>
etc/srecode/c.srt: New file, contents from cpp.srt
etc/srecode/cpp.srt: Delete parts moved to c.srt
lisp/cedet/ede.el:
(ede-configuration-forms-menu): Make robust to cases where there is no
current project.
lisp/cedet/srecode/cpp.el:
(srecode-semantic-handle-:c): Renamed from the srecode-semantic-handle-:cpp.
(srecode-semantic-handle-:cpp): Calls above.
(c-mode::srecode-semantic-apply-tag-to-dict): Moved from a cpp-mode
function to a c-mode function. Note this in doc.
(srecode-c-apply-templates): Renamed from srecode-cpp-apply-templates
tests/cit-cpp.el:
(cit-plain-c-tags): New variable
(cit-srecode-fill-cpp): Insert above into a new file as part of a new
program.
---
test/manual/cedet/cit-cpp.el | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/test/manual/cedet/cit-cpp.el b/test/manual/cedet/cit-cpp.el
index 4ad7c1c..c0ae360 100644
--- a/test/manual/cedet/cit-cpp.el
+++ b/test/manual/cedet/cit-cpp.el
@@ -1,6 +1,6 @@
;;; cit-cpp.el --- C++ specific things for our integ test.
-;; Copyright (C) 2008, 2009, 2010 Eric M. Ludlam
+;; Copyright (C) 2008, 2009, 2010, 2012 Eric M. Ludlam
;; Author: Eric M. Ludlam <address@hidden>
@@ -22,6 +22,7 @@
;;; Commentary:
;;
;; C++ specific code for the cedet integration tests.
+;; Add some C code too!
;;; Code:
@@ -104,6 +105,21 @@
)
"Tags to be inserted into a source file.")
+(defvar cit-plain-c-tags
+ (list
+ (semantic-tag-new-include "string.h" nil)
+ (semantic-tag-new-function
+ "main" "int"
+ (list (semantic-tag-new-variable "argc" "int")
+ (semantic-tag-new-variable "argv" "char"
+ nil
+ :pointer 2 ))
+ :code " int myInt = 0;
+ char *myStr = strdup(\"MOOSE\");
+")
+ )
+ "Tags to be inserted into plain.c.")
+
(defvar cit-main-cpp-tags
(list
(semantic-tag-new-include "foo.hpp" nil)
@@ -149,6 +165,11 @@ MAKE-TYPE is the type of make process to use."
;; 1 e) Tell EDE where the srcs are
(ede-add-file "Prog")
+ ;; Have some plain C code too to test the C code generator
+ (cit-srecode-fill-with-stuff "src/plain.c" cit-plain-c-tags)
+ (ede-new-target "Plain" "program" "n")
+ (ede-add-file "Plain")
+
(let ((p (ede-current-project)))
(if (string= make-type "Automake")
(oset p :variables '( ( "AM_CPPFLAGS" . "-I../include") ))
- [Emacs-diffs] scratch/merge-cedet-tests 5cc7300 264/316: Synchronize cedet/semantic with Emacs., (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 5cc7300 264/316: Synchronize cedet/semantic with Emacs., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 760fef4 309/316: Fix typo, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ce2952b 312/316: Revert rev. 6995, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a25699b 222/316: semantic/bovine/c: Parse C++ override/final correctly, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 2448a55 268/316: Fix unit testing for several tests and do better error checking., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 40f1fa1 163/316: Synchronize base 'cedet' with Emacs, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e54714f 227/316: Add header comments and provide., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests dfddc2d 262/316: (cit-make-dist): Use cit-check-compilation-for-error., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 6d5a631 277/316: Add header comments and provide., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 9b917c5 152/316: Major test restructure, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests c672504 249/316: etc/srecode/c.srt: New file, contents from cpp.srt,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests ecb61db 211/316: New test files combining macros and EDE, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e4d6b74 280/316: Use new create functions for db tools, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 0041d52 314/316: Add header comments and provide., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 0141378 247/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ede9f83 214/316: Simplify alias referencing and add tests., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests da4dd24 253/316: New test for testing ede/cpp-root projects., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests b0da906 144/316: New unit test for EDE project detection., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests ef840da 159/316: compdb: add project detection tests, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests fba6409 297/316: Add test for parsing local variables, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 658ff90 205/316: (cedet-utest): Add EDE sanity check to the end., Edward John Steere, 2017/01/27