Changeset 589 for CMT/HEAD


Ignore:
Timestamp:
Nov 28, 2011, 11:24:18 AM (12 years ago)
Author:
rybkin
Message:

See C.L. 466

Location:
CMT/HEAD
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/ChangeLog

    r588 r589  
     12011-11-28    <rybkin@lal.in2p3.fr> 466
     2
     3        * source/cmt_constituent.cxx: In class Constituent, in function parse,
     4        keep associated tag target_<name> only if this tag is used in tag or symbol
     5        expression
     6       
    172011-11-27    <rybkin@lal.in2p3.fr> 465
    28
  • CMT/HEAD/source/cmt_constituent.cxx

    r588 r589  
    389389    }
    390390
     391  if (has_target_tag && (Document != type || "cmt_actions" != group->name ()))
     392    {
     393      const Tag* tag = Tag::find ("target_" + name);
     394      if (!Tag::check_tag_used (tag) && !Symbol::check_tag_used (tag))
     395        {
     396          // Keep associated tag target_<name>
     397          // only if this tag is used somewhere
     398          // in tag or symbol expression
     399          has_target_tag = false;
     400          CmtMessage::verbose ("discarded tag target_" + name + " for "
     401                               + (type == Application ? "application " :
     402                                  (type == Library ? "library " : "document "))
     403                               + name);
     404        }
     405    }
     406
    391407  parameters.clear ();
    392408}
     
    437453  constituent->group = Group::add ("cmt_actions");
    438454
    439   // Do NOT assign target_<name> by default
     455  // Do NOT associate target_<name> by default
    440456  // but only if this tag is used somewhere
     457  // in tag or symbol expression
    441458  if (target_tag_used)
    442459    constituent->has_target_tag = true;
Note: See TracChangeset for help on using the changeset viewer.