Commit Graph

247 Commits

Author SHA1 Message Date
Eduardo Almeida
b9562ba520 Fix formatting of braced-init-lists by adding trailing comma 2022-11-24 16:13:09 +00:00
Gabriel Arrobo
829e5869f8 network: Add TimestampTag 2022-11-12 18:17:47 +00:00
Tommaso Pecorella
0346179372 network: allow graceful failure on creation of Ipv[4,6]Address from string 2022-11-11 10:18:25 +00:00
Eduardo Almeida
7c182618ed Fix clang-tidy readability-redundant-string-cstr warnings 2022-10-28 16:05:20 +00:00
Eduardo Almeida
bfb737a0d9 Remove unnecessary [[maybe_unused]] specifiers 2022-10-24 11:58:49 +00:00
Eduardo Almeida
b048f70912 Fix the [[maybe_unused]] specifier placement to always come after the variable name 2022-10-24 11:58:49 +00:00
Eduardo Almeida
85ade4e18d Fix Doxygen comment formatting and typos 2022-10-16 14:49:21 +01:00
Eduardo Almeida
95e95f8904 Fix clang-tidy warnings in brite, click, mpi, openflow, p2p, visualizer 2022-10-14 16:58:17 +00:00
Eduardo Almeida
dfc6fb9d2d Remove emacs comment from C++ files 2022-10-14 14:13:12 +00:00
Eduardo Almeida
e25ff966fe Apply clang-format to codebase 2022-10-07 20:08:35 +00:00
Eduardo Almeida
afb0f160d4 Fix clang-tidy performance-faster-string-find warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
c1e7757315 Fix clang-tidy readability-isolate-declaration warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
1b78ecc117 Fix clang-tidy readability-braces-around-statements warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
f87b53bbc5 Fix clang-tidy modernize-use-emplace warnings 2022-10-07 11:48:11 +00:00
Eduardo Almeida
4af0fe4b85 Fix clang-tidy modernize-use-nullptr warnings 2022-10-07 11:48:10 +00:00
Eduardo Almeida
be07b6487a Fix clang-tidy modernize-use-override warnings 2022-10-07 11:48:10 +00:00
Eduardo Almeida
6bb6383562 Fix clang-tidy modernize-redundant-void-arg warnings 2022-10-07 11:48:10 +00:00
Eduardo Almeida
4c318dde52 Fix missing includes 2022-10-06 20:41:07 +00:00
Eduardo Almeida
3e39cb0724 Fix formatting of some files before clang-format application 2022-10-06 20:41:07 +00:00
Gabriel Ferreira
db492fd84f network: Document PacketDataCalculators::DoDispose 2022-09-30 19:14:46 -03:00
Eduardo Almeida
820ad760b8 Fix clang-tidy readability-redundant-control-flow warnings 2022-09-29 20:06:57 +01:00
Eduardo Almeida
6e541f9c87 network: Isolate variables declaration in NS_PCAP_TEST_EXPECT_EQ()
Also convert tabs to spaces.
2022-09-28 19:05:12 +00:00
Tommaso Pecorella
c04254fc75 core: (fixes #705) prevents GCC 12 warnings 2022-08-18 17:53:33 +00:00
Peter D. Barnes, Jr
e461e54d5a Update Ptr validity checks to new Ptr<>::operator bool 2022-08-18 08:59:30 -07:00
Eduardo Almeida
180d71b7fa core (fixes #560): Unify TypeNameGet() in type-name.h and traced-value-callback-typedef-test-suite.cc 2022-08-06 21:50:25 +00:00
Tolik Zinovyev
81bae65d4a network: (merges !1010) Prevent time overflow in DataRate. 2022-07-11 21:40:54 -07:00
Gabriel Ferreira
60e1e4032c fixing dead links 2022-06-18 17:57:05 -03:00
Stefano Avallone
693517ce0f network: Queue container can hold elements of type different than queue items
It is required that the container defines a public method that transforms
an iterator pointing to a container element into the corresponding queue item.
2022-06-08 15:31:44 +02:00
Stefano Avallone
7c73228e78 network: Remove begin() and end() from Queue class
begin() and end() are not necessarily meaningful for all the containers.
A GetContainer() method returning a const reference to the container is
added, so that begin() and end() can be called through it.
2022-06-08 15:31:44 +02:00
Stefano Avallone
e5805a53fb network: Queue uses a generic type of container to store items internally 2022-06-08 15:31:44 +02:00
Stefano Avallone
70ea7891fc core: Get the full type name for template classes
Also add a macro for class templates with two template parameters.
2022-06-08 15:31:44 +02:00
Tommaso Pecorella
e0f20a49c0 network: (fixes #611) Reset MAC address allocation pool between runs 2022-06-07 22:04:12 +00:00
Tom Henderson
b6a5ee8151 Run utils/trim-trailing-whitespace.py on codebase 2022-06-05 21:01:11 -07:00
Eduardo Almeida
e9c98de72c Mark more deleted copy constructors and operator= with delete keyword (fixes #279) 2022-06-04 20:40:44 +01:00
Gabriel Arrobo
10d4dd2023 network: Remove unnecessary casts 2022-03-14 12:29:24 -07:00
Eduardo Almeida
a4d174f8bf core (fixes #565): Change TypeId constructor to accept std::string 2022-02-25 12:08:10 +00:00
Gabriel Ferreira
44d311cd3b network: Add function to check if a queue would overflow 2022-01-15 01:09:28 +00:00
Tommaso Pecorella
a8fc1b6235 doxygen: fix warnings in various modules 2022-01-05 00:22:31 -06:00
Peter Barnes
0e685cbdbb Use [[maybe_unused]] attribute directly, instead of NS_UNUSED 2021-12-21 10:32:43 +00:00
Eduardo Almeida
4ebdc0c6c6 Mark deleted ctors and operator= with delete keyword 2021-12-18 15:22:44 -08:00
Eduardo Almeida
a2efceffb2 Simplify trivial bool statements 2021-11-04 14:19:29 -07:00
Tom Henderson
d8ed317f2d network: Fix Doxygen error 2021-09-18 11:21:15 -07:00
Tom Henderson
73c106911d network: Remove deprecated methods 2021-07-31 07:48:30 -07:00
Stefano Avallone
2492614707 Variable length arrays are not supported by C++ 2021-07-22 07:29:42 +00:00
Tommaso Pecorella
4aae49c568 network: Bit serialization and deserialization 2021-06-16 08:10:52 +00:00
Tom Henderson
10ef08140a network: (fixes #404) Use Queue::Dispose() for SimpleNetDevice::DoDispose() 2021-05-22 13:43:29 -07:00
Tom Henderson
f34d4c5025 network: Add Queue::DoDispose method 2021-05-22 13:41:33 -07:00
Tommaso Pecorella
30bf1d3f76 network: add Ipv6Prefix to Ipv6Address conversion 2021-05-13 15:11:03 +00:00
Tommaso Pecorella
324644f86e doxygen: fix warnings in network, mobility 2021-05-02 21:42:55 +02:00
Ameya Deshpande
705ad52930 network: (fixes #372) Remove std::unary_function
Remove `std::unary_function` usage from `Ipv*AddressHash`.
Use std::hash instead of class Hash (in ns-3). This is because
speed is more important than cryptographic robustness.

Signed-off-by: Ameya Deshpande <ameyanrd@outlook.com>
2021-04-06 13:38:17 +00:00