Martin Braun
ebd5dd03cf
Apply clang-formatting to all C/C++ files
...
- Used clang-format version 14
- Ran ./tools/clang-formatter.sh apply
2023-08-07 15:35:56 -05:00
Martin Braun
469af1ce66
uhd: When separating device_addr_t, keep indexed values
...
This changes the behaviour of uhd::separate_device_addr() in the
following way:
If a device addr dictionary contains both an indexed and a global value,
it will now favour the indexed value. Example:
```py
>>> a = uhd.types.DeviceAddr(
... "addr0=100,addr1=200,addr2=300,"
... "time_source=external,time_source2=internal")
>>> a_sep = uhd.types.separate_device_addr(a)
>>> print(a_sep[0].to_string())
'addr=100,time_source=external'
>>> print(a_sep[2].to_string())
'addr=300,time_source=internal'
```
Prior to this change, global values would take precedence.
Signed-off-by: Martin Braun <martin.braun@ettus.com>
2022-10-28 10:15:38 -05:00
Martin Braun
7044fcdca5
uhd: Remove includes of list_of.hpp where appropriate
...
This Boost header is included in some places, despite not being used.
2021-06-24 12:00:49 -05:00
Brent Stapleton
967be2a4e8
uhd: mpm: apply clang-format to all files
...
Applying formatting changes to all .cpp and .hpp files in the following
directories:
```
find host/examples/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/tests/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find host/utils/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
find mpm/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
```
Also formatted host/include/, except Cpp03 was used as a the language
standard instead of Cpp11.
```
sed -i 's/ Cpp11/ Cpp03/g' .clang-format
find host/include/ -iname *.hpp -o -iname *.cpp | \
xargs clang-format -i -style=file
```
Formatting style was designated by the .clang-format file.
2019-01-16 11:40:23 -08:00
Brent Stapleton
3f0e7d405f
lib: adding device_addr_t constructor from map
...
Adding constructor for device_addr_t that takes a map<string, string>
as an argument.
2018-04-02 13:38:45 -07:00
Martin Braun
ae5211d71d
uhd: Update license headers
...
All copyright is now attributed to "Ettus Research, a National
Instruments company".
SPDX headers were also updated to latest version 3.0.
2018-02-19 16:54:52 -08:00
Martin Braun
4f948e2c8b
Move all license headers to SPDX format.
2017-12-22 10:45:51 -08:00
Andrej Rode
26cc20847c
uhd: replace BOOST_FOREACH with C++11 range-based for loop
...
Note: This is the first commit that uses for-range, and range-based
for-loops are now usable for UHD development.
2017-02-10 16:44:33 -08:00
Martin Braun
befbaf97d0
uhd: Added an update() method for dicts
...
Very similar to Python's dict.update().
2015-01-27 09:58:02 +01:00
Josh Blum
c086dd883e
uhd: allow device addr (from string) to parse empty values
2011-11-03 19:28:43 -07:00
Josh Blum
95b966a599
uhd: update copyright headers with automated script
2011-03-23 18:48:30 -07:00
Josh Blum
132e622379
uhd: renamed test directory to tests to be consitent
2011-01-14 10:50:07 -08:00