Commit Graph
15 Commits
Author SHA1 Message Date
Gil 9f728b8458 Remove checks for boolean migration (#3039)
There are too many false positives to mark with NOLINT:

  * BOOL is type in Win32
  * BOOL is used as an identifier in the nanopb API
  * YES and NO should be used when calling Objective-C APIs
  * YES and NO are in the instructions for using NSDefaults
2019-05-20 21:44:48 -07:00
Gil 6dd834d847 Ordered code fixes (#2968)
* Fix endianness detection in OrderedCode

(and prevent further regression.)

* Use static_assert for constant checks

* Add a benchmark for SkipToNextSpecialByte

* Move string_apple_benchmark next to string_apple_test

* Accept non-const references in benchmark functions

This is a port of cl/132348268.

* Adjust Xcode project

* Add GoogleBenchmark as a dependency
2019-05-09 19:22:18 -07:00
Gil ff8032ada0 Move the util::objc namespace to just objc (#2865)
* Move the util::objc namespace to just objc

This removes all the namespace objc = firebase::firestore::util::objc
gunk to make it seem as if this was really the arrangement.

This is motivated by wanting to put additional things in this namespace
and use them in headers without having to use util::objc::Foo

* Add CMake support for header-only cc_library targets

* Have the linter allow #include <objc/objc.h>, a C header
2019-04-19 10:02:21 -07:00
Gil 315effec4a Port FSTQueryListener to C++ (#2618) 2019-03-26 07:11:02 -07:00
Gil 080c64daba Rework the IWYU test to handle types with multiple valid sources (#2633) 2019-03-25 16:38:28 -07:00
Gil 675e74a535 Add missing #include <ostream> (#2616)
* Add a lint check for ostream

* Actaully #include <ostream> to undefined stream insertion operators at link time
2019-03-25 11:12:21 -07:00
Gil 86dc058729 Add a lint check for const references to absl::string_view (#1915)
* Check for const absl::string_view&, which should just be absl::string_view.

* Fix uses of const absl::string_view&
2018-10-05 13:58:43 -07:00
Konstantin Varlamov 4e067e55dd gRPC: use SCNetworkReachability to quickly end connections when reachability changes (#1843)
The reachability state is not (yet) used to determine whether it's possible to reconnect; rather, the its only use is to quickly end any existing connections. The benefit is potentially quicker reaction to network being disconnected than it would take for the connection to time out.
2018-10-01 15:27:11 -04:00
zxu f999fffbb6 fix common typo (#1833) 2018-09-17 13:00:50 -04:00
zxu 098f93c5ed fix import pattern (#1604)
* fix import pattern

* fix style

* move check into cpplint.py

* replace than with rather than
2018-07-31 10:30:49 -04:00
Konstantin Varlamov ff95ffc61b In FSTLocalDocumentsView, search for all batches affecting a set of keys in one go (#1505)
This uses the newly-added allMutationBatchesAffectingDocumentKeys to find/deserialize all such batches in one go and then reuse the batches while processing a set of keys.
2018-07-10 13:59:25 -04:00
Paul Beusterien ede57f84bb Add missing copyright and licenses (#1152) 2018-04-20 11:54:53 -07:00
Gil 0a66187053 Add lint checking for Objective-C++ sources (#1048)
* lint.sh now lints Objective-C++ too

* cpplint checks system-style includes that should be user-style

This prevents it from recognizing project sources as if they were C
system headers and then complaining that they're in the wrong place.

* cpplint checks #imports and #includes

* cpplint checks that C++ system headers aren't #imported

* cpplint checks for C system headers that could be C++ system headers

* cpplint checks that Objective-C sources include their headers
2018-04-09 11:54:39 -07:00
Gil 45e68a352d Clean up usages of std::make_unique that crept in (#996)
* Add std::make_unique rule

* Clean up usages of std::make_unique that crept in

This fails to build under Xcode 8.2
2018-03-29 13:23:41 -07:00
Gil 856c3a09f1 Add the C++ linter to the repo (#720) 2018-01-27 16:13:14 -08:00