Commit Graph

74 Commits

Author SHA1 Message Date
Thad House
f03b31f433 Adds warning printouts to gradle by updating native plugin (#45) 2017-11-09 09:25:22 -08:00
Peter Johnson
8e797a1a1d Import filesystem directory iterators from llvm. (#43)
Note: these are similar to the C++17 ones, but don't have quite the same API.
2017-11-03 11:40:42 -07:00
Thad House
a6c7789b5e Removes specific raspbian, armv7 and armv8 cross builds (#41)
Will make the cross platform build case easier. A bit more difficult to
consume, but will be easier in the long run.
2017-10-14 21:57:53 -07:00
Peter Johnson
9e8ad778dd Update wpilib-version-plugin to 2.0. (#39) 2017-10-01 10:55:17 -07:00
Thad House
9fdb33b6af Switches native linux arm build to be nativearm arch (#38)
Fixes gradle bug
2017-09-22 09:30:58 -07:00
Peter Johnson
3faecdb353 Add SHA1 algorithm implementation. (#32)
Largely based on https://github.com/vog/sha1 with some customizations and
optimizations.
2017-09-10 17:21:19 -07:00
Peter Johnson
ef85809690 Fix bug in raw_fd_istream::read_impl(). (#30)
It would not set error if read() returned 0 (indicating EOF).
2017-09-06 22:06:21 -07:00
Peter Johnson
041563f8ea Change UidVector to be LRU with a reuse threshold. (#29)
This keeps indexes from being instantly reused and reduces the risk of
accidentally using an old index.

Also change erase and emplace_back to return 0-based instead of 1-based
indexes.

This is a breaking change, but a noisy one due to the template parameter
change.
2017-09-06 19:54:58 -07:00
Thad House
c3f7c85f8a Adds wpi GetHostname function (#25) 2017-08-27 21:35:34 -07:00
Thad House
5d403a7b49 Makes an empty stringref have a valid Data pointer (#28)
Now acts similar to std::string, where an empty construction string is valid.
2017-08-26 10:04:11 -07:00
Thad House
8416b4e42c Add default parameter to StringRef to allow null termination on lengthed strings. (#27) 2017-08-23 21:02:11 -05:00
Thad House
1a0ed61f78 Force the java dev library to be built during build (#24) 2017-08-23 01:27:56 -05:00
Peter Johnson
68501759fa tcpsockets: Don't pull in platform-specific headers in headers. (#26)
This pollutes the namespace for all users of these headers.
This is particularly an issue on Windows.
2017-08-23 01:27:19 -05:00
Peter Johnson
43c103c0ac Update googletest and googlemock to 1.8.0. (#23) 2017-08-15 23:53:20 -07:00
Peter Johnson
fa7d5bc023 Add UidVector (used in both ntcore and cscore Notifier). (#22) 2017-08-14 22:58:11 -07:00
Peter Johnson
855df5d679 raw_mem_istream: Add StringRef constructor. 2017-08-13 12:18:19 -07:00
Peter Johnson
c8d9cc7e5b Add filename constructor to raw_fd_istream. 2017-08-13 12:18:19 -07:00
Peter Johnson
1c1fbf14cf Import LLVM openFileForRead and openFileForWrite. 2017-08-13 12:18:19 -07:00
Peter Johnson
7d9e6b7e22 Move ReadLine into raw_istream class as getline. (#20) 2017-08-13 00:56:35 -07:00
Peter Johnson
17b5cace5b Base64: Add raw_ostream and SmallString interfaces. (#19) 2017-08-13 00:55:56 -07:00
Thad House
2fa41b23b9 Add a java version of the dev app. (#16) 2017-08-12 23:52:08 -07:00
Thad House
9f5f6111d4 Add a cpp dev run task. (#17) 2017-08-12 23:51:25 -07:00
Thad House
5439fe7b16 Gradle 4.1 (#18) 2017-08-09 20:20:10 -07:00
Thad House
f0cc5d9ca8 Adds an all artifact to the published libraries (#15)
Better then the old desktop zips because it will include all artifacts
built, not just specifically the desktop ones. Also, the individual
artifacts are published as well so users can decide which artifacts they
specifically want, and can help decrease download sizes. The cpp plugin
will continue using the individual artifacts.
2017-08-07 17:44:07 -07:00
Peter Johnson
7e011bda6f Add HTTP utilities. (#7)
Imported from cscore.
2017-08-06 23:28:21 -07:00
Peter Johnson
8418c39120 Add Path and Twine components from LLVM. (#10) 2017-08-06 23:26:42 -07:00
Peter Johnson
25c8e873d0 TCPConnector: Add method to connect to server in parallel. (#6)
This substantially speeds up connection times compared to sequentially
trying to connect to each server in round-robin fashion.
2017-08-03 16:45:42 -05:00
Thad House
e24db75f08 Build updates to newest version of plugins and gradle, along with config file (#13) 2017-08-03 16:24:02 -05:00
Thad House
eb7331f2ab Actually makes the right classifier 2017-08-02 19:47:32 -07:00
Thad House
03bd0820cc Adds a java classifier whenever jenkins is building (#12)
Makes the jar much easier to find when attempting to combine.
2017-08-02 19:33:26 -07:00
Thad House
63768166ea Updates to plugin 1.2 (#9)
1.1 was a bad publish
2017-08-02 13:17:34 -07:00
Thad House
bd899a7a7c Fixes mac RuntimeDetector (#11) 2017-08-02 13:17:26 -07:00
Peter Johnson
301442ee43 Add json support to wpiutil.
This is a modified version of https://github.com/nlohmann/json.

It's been moved into the wpi namespace as many of the changes are not
compatible.  The amount of template code has been significantly reduced,
enabling many functions to be moved out-of-line, and for the result to
build on older compiler versions (in particular GCC 4.8).
2017-07-28 21:55:03 -07:00
Peter Johnson
de9dd1180b Include src/main/native/cpp when building test. 2017-07-28 21:55:03 -07:00
Peter Johnson
436ed4d1e3 Implement comparison operators for llvm::StringMap. 2017-07-28 21:55:03 -07:00
Peter Johnson
88aa273e55 license.txt: Add LLVM license. 2017-07-28 18:09:14 -07:00
Peter Johnson
d11d8409a8 license.txt: Remove leading asterisks 2017-07-28 18:09:14 -07:00
Peter Johnson
9385d1b6d8 GetJavaStackTrace: Provide llvm::StringRef excludeFuncPrefix. (#3)
This is a bit cleaner to use than the templated version (many compilers
have issues with templating on static strings, for example).
2017-07-28 18:08:54 -07:00
Peter Johnson
b90653f3e3 Logger: Add def_func and min_level constructors. (#2) 2017-07-28 18:08:31 -07:00
Thad House
1243cf04ea Adds new build system to repo (#1) 2017-07-28 07:29:49 -07:00
Thad House
4f5b5b1377 Adds gmock files 2017-07-27 00:04:00 -07:00
Thad House
067b1f3ee0 Adds a way to get the native handle from SafeThread (#198)
Useful to wpilib to enable easier changing of RT priorities.
2017-05-09 22:04:57 -07:00
Thad House
9a2ec13ba4 Fixes SetIntArrayRegion template for windows builds (#178) 2017-01-02 22:29:56 -08:00
Peter Johnson
e3f99a4a22 JStringRef: ensure string is null terminated so c_str() works correctly. 2016-12-26 14:13:15 -08:00
Peter Johnson
95ad4783f1 Revert "Fixes TCPAcceptor able to use an empty string (#172)"
This doesn't actually do anything since the outer if statement checks
for empty m_address already.

This reverts commit 6ad9f45d9a.
2016-12-26 13:55:21 -08:00
Thad House
9a0a1baa6b Fixes TCPAcceptor able to use an empty string (#172) 2016-12-26 12:27:08 -08:00
Peter Johnson
976ca80056 Use InetNtop on Win32 rather than WSAAddressToString. (#170)
Similarly, use InetPton rather than WSAStringToAddress.

The WSAAddressToString function is intended to provide a user-readable
string and thus includes the port number.  This breaks some use cases
on Windows which expect to get just the IP address.

Note: The InetPton and InetNtop functions are available only in Vista or above.
2016-12-25 01:30:12 -08:00
Peter Johnson
8c7338f2ba TCPAcceptor: Include port number in error messages. (#166) 2016-12-23 20:36:45 -06:00
Peter Johnson
bb9f5b7491 jni_util: Add JException wrapper class.
This allows more natural C++ Throw semantics (for a variety of string
data types) for any java exception that just takes a String argument.
2016-12-15 21:54:36 -08:00
Peter Johnson
57d053a8fb jni_util: Make JStringRef and JArrayRef null-safe.
They return empty string and empty array (to avoid crashes) but also
report an error with backtrace to stderr when called in that manner.
2016-12-14 23:59:06 -08:00