Changeset 09f34a84 for driver


Ignore:
Timestamp:
Sep 16, 2022, 11:19:04 AM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master, pthread-emulation
Children:
4407b7e
Parents:
9a90092
Message:

Remove some of the warnings on the new clang

File:
1 edited

Legend:

Unmodified
Added
Removed
  • driver/cfa.cc

    r9a90092 r09f34a84  
    5353        return arg.substr( 0, pre.size() ) == pre;
    5454} // prefix
    55 
    56 static inline bool ends_with(const string & str, const string & sfix) {
    57         if (sfix.size() > str.size()) return false;
    58         return std::equal(str.rbegin(), str.rbegin() + sfix.size(), sfix.rbegin(), sfix.rend());
    59 }
    6055
    6156// check if string has suffix
Note: See TracChangeset for help on using the changeset viewer.