Changeset b8665e3 for src/Common
- Timestamp:
- Mar 14, 2019, 11:53:28 AM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- b419abb
- Parents:
- fca6ca6
- Location:
- src/Common
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.cc
rfca6ca6 rb8665e3 17 17 18 18 PassVisitorStats pass_visitor_stats; 19 Stats::Counters::SimpleCounter* BaseSyntaxNode::new_nodes = nullptr; -
src/Common/Stats/Counter.h
rfca6ca6 rb8665e3 37 37 class SimpleCounter { 38 38 public: 39 inline void operator++() {} 39 40 inline void operator++(int) {} 40 41 inline void operator+=(size_t) {} … … 84 85 virtual void print(std::ostream & os) override { os << count; } 85 86 87 inline void operator++() { if(!enabled) return; count++; } 86 88 inline void operator++(int) { if(!enabled) return; count++; } 87 89 inline void operator+=(size_t value) { if(!enabled) return; count += value; }
Note: See TracChangeset
for help on using the changeset viewer.