Menu

#379 ctags can't find any tags in this C++ file

open
nobody
None
5
2019-11-11
2019-11-10
Uday Reddy
No

ctags can't detect any tags from this C++ file.

$ ctags --version
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: Jan 31 2019, 16:34:25
Addresses: dhiebert@users.sourceforge.net, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex

1 Attachments

Related

Bugs: #379

Discussion

  • Masatake YAMATO

    Masatake YAMATO - 2019-11-10

    --langmap option may help you. See ctags(1) man page.

    $ ctags --langmap=C++:.inc -o - Ops.h.inc | head 
    AddFOp  Ops.h.inc   /^class AddFOp : public Op<AddFOp, OpTrait::OneResult, OpTrait::HasNoSideEffect, OpTrait::SameOperandsAndResultType, OpTrait::NOperands<2>::Impl> {$/;" c
    AddFOpOperandAdaptor    Ops.h.inc   /^class AddFOpOperandAdaptor {$/;"  c
    AddIOp  Ops.h.inc   /^class AddIOp : public Op<AddIOp, OpTrait::OneResult, OpTrait::IsCommutative, OpTrait::HasNoSideEffect, OpTrait::SameOperandsAndResultType, OpTrait::NOperands<2>::Impl> {$/;" c
    AddIOpOperandAdaptor    Ops.h.inc   /^class AddIOpOperandAdaptor {$/;"  c
    AllocOp Ops.h.inc   /^class AllocOp : public Op<AllocOp, OpTrait::OneResult, OpTrait::VariadicOperands> {$/;"   c
    AllocOpOperandAdaptor   Ops.h.inc   /^class AllocOpOperandAdaptor {$/;" c
    AllocaOp    Ops.h.inc   /^class AllocaOp : public Op<AllocaOp, OpTrait::OneResult, OpTrait::VariadicOperands> {$/;" c
    AllocaOpOperandAdaptor  Ops.h.inc   /^class AllocaOpOperandAdaptor {$/;"    c
    AndOp   Ops.h.inc   /^class AndOp : public Op<AndOp, OpTrait::OneResult, OpTrait::IsCommutative, OpTrait::HasNoSideEffect, OpTrait::SameOperandsAndResultType, OpTrait::NOperands<2>::Impl> {$/;"   c
    AndOpOperandAdaptor Ops.h.inc   /^class AndOpOperandAdaptor {$/;"   c
    
     
    • Uday Reddy

      Uday Reddy - 2019-11-11

      Thanks very much!

      Uday

      On Sun, Nov 10, 2019 at 5:59 PM Masatake YAMATO m_yamato@users.sourceforge.net wrote:

      --langmap option may help you. See ctags(1) man page.

      $ ctags --langmap=C++:.inc -o - Ops.h.inc | head
      AddFOp Ops.h.inc /^class AddFOp : public Op<addfop, optrait::sameoperandsandresulttype,="" optrait::oneresult,="" optrait::hasnosideeffect,="" optrait::noperands<2="">::Impl> {$/;" cAddFOpOperandAdaptor Ops.h.inc /^class AddFOpOperandAdaptor {$/;" c
      AddIOp Ops.h.inc /^class AddIOp : public Op<addiop, optrait::sameoperandsandresulttype,="" optrait::oneresult,="" optrait::iscommutative,="" optrait::hasnosideeffect,="" optrait::noperands<2="">::Impl> {$/;" cAddIOpOperandAdaptor Ops.h.inc /^class AddIOpOperandAdaptor {$/;" c
      AllocOp Ops.h.inc /^class AllocOp : public Op<allocop, optrait::oneresult,="" optrait::variadicoperands=""> {$/;" cAllocOpOperandAdaptor Ops.h.inc /^class AllocOpOperandAdaptor {$/;" c
      AllocaOp Ops.h.inc /^class AllocaOp : public Op<allocaop, optrait::oneresult,="" optrait::variadicoperands=""> {$/;" cAllocaOpOperandAdaptor Ops.h.inc /^class AllocaOpOperandAdaptor {$/;" c
      AndOp Ops.h.inc /^class AndOp : public Op<andop, optrait::sameoperandsandresulttype,="" optrait::oneresult,="" optrait::iscommutative,="" optrait::hasnosideeffect,="" optrait::noperands<2="">::Impl> {$/;" cAndOpOperandAdaptor Ops.h.inc /^class AndOpOperandAdaptor {$/;" c</andop,></allocaop,></allocop,></addiop,></addfop,>


      Status: open
      Group:
      Created: Sun Nov 10, 2019 10:35 AM UTC by Uday Reddy
      Last Updated: Sun Nov 10, 2019 10:35 AM UTC
      Owner: nobody
      Attachments:

      ctags can't detect any tags from this C++ file.

      $ ctags --version
      Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
      Compiled: Jan 31 2019, 16:34:25
      Addresses: dhiebert@users.sourceforge.net, http://ctags.sourceforge.net
      Optional compiled features: +wildcards, +regex


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/ctags/bugs/379/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #379

  • Uday Reddy

    Uday Reddy - 2019-11-11

    Thanks very much! - please close this.

     
  • Masatake YAMATO

    Masatake YAMATO - 2019-11-11

    You are welcome.
    I'm not a member of project, so I cannot close this.

     

Log in to post a comment.