get function declaration in C mode with tags

This is a discussion on get function declaration in C mode with tags within the Linux Programming forums, part of the Platform Specific Boards category; Hi, How to get declaration in C mode with tags in Emacs. I only know how to get definition of ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    159

    get function declaration in C mode with tags

    Hi,
    How to get declaration in C mode with tags in Emacs. I only know how to get definition of self defined functions. But how to jump to their declarations and also how to get the declarations of C++ standard library functions and classes? Thanks!

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,246
    Quote Originally Posted by lehe View Post
    Hi,
    How to get declaration in C mode with tags in Emacs. I only know how to get definition of self defined functions. But how to jump to their declarations and also how to get the declarations of C++ standard library functions and classes? Thanks!
    ctags is kind of primitive -- I'd recommend cscope + the cscope mode for emacs
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. get function declaration in C mode with tags?
    By lehe in forum C++ Programming
    Replies: 0
    Last Post: 03-01-2009, 09:44 PM
  2. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 12:03 PM
  3. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  4. errors initializing D3D
    By Vacation Guy in forum C++ Programming
    Replies: 3
    Last Post: 08-07-2005, 12:20 PM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21