#
af77f827 |
| 23-Jun-2023 |
William A. Kennington III <wak@google.com> |
treewide: Add clang-tidy
Change-Id: I1aab00b0ff8c016650225fcd1c83678a91808941 Signed-off-by: William A. Kennington III <wak@google.com>
|
#
89d734b9 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: Ia4966a0790437eb0fc011c747f3be2a52884e4d8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
301e8ad6 |
| 15-Nov-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Add support for checking file existence
This will be used to reduce the number of config parser errors printed to the logs.
Change-Id: Ia0337da386bc5dbe32c04bf2c3264997a9ad6da1 Signe
config_parser: Add support for checking file existence
This will be used to reduce the number of config parser errors printed to the logs.
Change-Id: Ia0337da386bc5dbe32c04bf2c3264997a9ad6da1 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
f55b7d8e |
| 25-Oct-2022 |
William A. Kennington III <wak@google.com> |
treewide: Remove redundant inline
Change-Id: Ibfc3d9cad1ae31c46bf432c90e406007e84df4d0 Signed-off-by: William A. Kennington III <wak@google.com>
|
#
be3bd2fc |
| 11-Oct-2022 |
William A. Kennington III <wak@google.com> |
treewide: Clean up string parameters
Change-Id: I0d3ea6a83465181d3edec1587ff824103489072e Signed-off-by: William A. Kennington III <wak@google.com>
|
#
409f1a66 |
| 11-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Add function for writing files
This will be used by the configuration writers shortly.
Change-Id: I6e72b181e365e34808c8e5e4790c446124dc13a3 Signed-off-by: William A. Kennington III <
config_parser: Add function for writing files
This will be used by the configuration writers shortly.
Change-Id: I6e72b181e365e34808c8e5e4790c446124dc13a3 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
34bb3e20 |
| 18-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Allow modifying Parser map
This makes it possible to mutate the map owned by the parser. This will eventually be used for implementing write updates.
Change-Id: I89deb4073a0a3bd59528
config_parser: Allow modifying Parser map
This makes it possible to mutate the map owned by the parser. This will eventually be used for implementing write updates.
Change-Id: I89deb4073a0a3bd59528c6b70fc55b49bc6cd944 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
0dd0937d |
| 18-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Add type checking to config map
In order to guarantee the output file is consistent, the constructed values are checked for safety.
Change-Id: Ib70e369471e9f2f47a1cdb5522f4a3bebc3780
config_parser: Add type checking to config map
In order to guarantee the output file is consistent, the constructed values are checked for safety.
Change-Id: Ib70e369471e9f2f47a1cdb5522f4a3bebc37805e Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
e21a5cf9 |
| 09-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Split up sections
We can't always combine sections together in network files as sections like
[Address] Address=::1/128 Peer=fe80::1 [Address] Address=::2/128 Peer=fe80::2
Require t
config_parser: Split up sections
We can't always combine sections together in network files as sections like
[Address] Address=::1/128 Peer=fe80::1 [Address] Address=::2/128 Peer=fe80::2
Require that they are grouped accordingly. Rewrite the storage logic of the config parser to support this logical organization.
Change-Id: I34ae1523202f8770fe3dcac010fb6226dd28b9ec Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
a520a39d |
| 08-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Reduce number of file reads
This changes focuses on reducing the number of Parser() constructions to limit the number of duplicate file reads.
Change-Id: I05df943844c70dc6aa729ab744d
config_parser: Reduce number of file reads
This changes focuses on reducing the number of Parser() constructions to limit the number of duplicate file reads.
Change-Id: I05df943844c70dc6aa729ab744d2d405cbfe2c76 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
150753f3 |
| 05-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Add common boolean parser
This more accurately parses systemd values instead of just comparing to "false" or "true".
Change-Id: I0d70ef418075d555bf6f090fefa0b34332491ed0 Signed-off-b
config_parser: Add common boolean parser
This more accurately parses systemd values instead of just comparing to "false" or "true".
Change-Id: I0d70ef418075d555bf6f090fefa0b34332491ed0 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
bc52d93d |
| 18-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Add parser warnings
This makes it possible to determine if the file had formatting issues and should be rewritten.
Change-Id: I1a1fd683b5733bff1841703dcd7be99688b66c54 Signed-off-by:
config_parser: Add parser warnings
This makes it possible to determine if the file had formatting issues and should be rewritten.
Change-Id: I1a1fd683b5733bff1841703dcd7be99688b66c54 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
61ef4f2b |
| 18-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Rewrite file parsing logic
This grealty improves the correctness of the config parser to better match the way systemd parses config files. It also allows us to provide errors / warnin
config_parser: Rewrite file parsing logic
This grealty improves the correctness of the config parser to better match the way systemd parses config files. It also allows us to provide errors / warnings when the file format doesn't match expectations.
Tested: On an existing BMC system to verify NTP / DHCP settings were still parsed as expected.
Change-Id: I1f0cb631f680f5957a29accaa749d491e6f68faf Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
25511a1c |
| 04-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Cleanups and modern c++ standards
This was exposing many functions and semantics that are unused by the application. The goal is to simplify the interface and convert to using types l
config_parser: Cleanups and modern c++ standards
This was exposing many functions and semantics that are unused by the application. The goal is to simplify the interface and convert to using types like `string_view` and referenceable lists where possible.
Change-Id: I4cba6326f9a96a943d384165e656f8589f931959 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
1bbe3d1e |
| 14-May-2021 |
William A. Kennington III <wak@google.com> |
build: Split c++ sources into a subdirectory
Change-Id: Iedea50c688189ae4953195105e323f7173d17a4b Signed-off-by: William A. Kennington III <wak@google.com>
|