Ignore:
Timestamp:
Nov 5, 2013, 3:40:52 PM (11 years ago)
Author:
rybkin
Message:

See C.L. 511

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_use.h

    r608 r652  
    128128  bool get_paths (Use* to, UsePtrVector& list);
    129129
    130   bool located () const;
    131 
    132   void change_path (const cmt_string& path);
     130  inline bool located () const { return m_located; }
     131
     132  void change_path (const cmt_string& path, const Project* project = 0);
    133133  void set_auto_imports (State context_state, State specified_state,
    134134                         cmt_map <Use*, bool>& visited);
     
    153153  ScopeType get_current_scope () const;
    154154
    155   Project* get_project ();
     155  const Project* get_project () const;
     156  inline void set_project (const Project* project) { m_project = project; }
    156157  cmt_string get_info () const;
    157158  bool is_head_version (const cmt_string& version);
     
    182183  bool discarded;                /* discarded by version strategy   */
    183184  bool selected;                 /* used for recursive access       */
    184   bool m_located;
     185  //  bool m_located;
    185186  bool m_hidden;
    186187  ScopeType initial_scope;
     
    213214                      bool skip_discarded = false, ostream& out = cout);
    214215  //  void show_sub_uses (const cmt_string& request, bool skip_discarded = false);
    215   bool select_alternate ();
     216  bool select_alternate (const Project* project = 0);
    216217  Use* get_selected_version ();
    217218  Use* set_selected_version (Use* selected_use);
     
    235236  //cmt_string m_package_name; /* directly read from requirements */
    236237
     238  //  Project* m_project;  /* the project the use is found in */
     239  const Project* m_project;  /* the project the use is found in */
     240
     241  bool m_located;
     242
    237243  bool m_has_native_version;
    238244
Note: See TracChangeset for help on using the changeset viewer.