- 03 Apr, 2020 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 02 Apr, 2020 9 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Use std::string_view to avoid modifying the string for the temporary null terminators.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
This method gets called a lot during MPD startup, via FindChild() and directory_load_subdir(), so this is worth optimizing at the expense of code readability. This speeds up MPD startup by 10%.
-
- 26 Mar, 2020 2 commits
-
-
Rosen Penev authored
Found with readability-uppercase-literal-suffix Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Max Kellermann authored
-
- 19 Mar, 2020 1 commit
-
-
Rosen Penev authored
Found with modernize-use-default-member-init Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 16 Mar, 2020 2 commits
-
-
Rosen Penev authored
[[maybe_unused]] (introduced in C++17) is standard C++. https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused says that this is equivalent to the GNU unused attribute. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 13 Mar, 2020 1 commit
-
-
Rosen Penev authored
The former is deprecated by C++14. The standard says they are the same: The header defines all types and macros the same as the C standard library header<stdint.h>. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 12 Mar, 2020 4 commits
-
-
Rosen Penev authored
The former was deprecated with C++14. The standard says they are the same with one exception: The header<climits>defines all macros the same as the C standard library header<limits.h>. [Note:The types of the constants defined by macros in<climits>are not required to match the types to which themacros refer.— end note] Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
The former is deprecated by C++14. It's also functionally the same. From the standard: 19.4 The header<cerrno>is described in Table 43. Its contents are the same as the POSIX header<errno.h>,except that errno shall be defined as a macro. [Note: The intent is to remain in close alignment with the POSIX standard.] A separate errno value shall be provided for each thread. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Introduced in C++17. It replaces gcc's warn_unused_result. Found with modernize-use-nodiscard. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 07 Mar, 2020 1 commit
-
-
Max Kellermann authored
Merge some duplicate code in a central library.
-
- 20 Feb, 2020 1 commit
-
-
Rosen Penev authored
Found with performance-move-const-arg Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 17 Feb, 2020 3 commits
-
-
Rosen Penev authored
Found with modernize-use-using Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with hicpp-use-emplace Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with modernize-use-equals-default Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 04 Feb, 2020 1 commit
-
-
Rosen Penev authored
Found with readability-uppercase-literal-suffix Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 02 Feb, 2020 6 commits
-
-
Rosen Penev authored
Found with performance-unnecessary-value-param Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with modernize-pass-by-value Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with modernize-redundant-void-arg Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with readability-simplify-boolean-expr Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with modernize-avoid-bind Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with modernize-make-unique Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 01 Feb, 2020 4 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Rosen Penev authored
Found with modernize-use-override Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 18 Jan, 2020 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Prevents compiling those sources many times, once for each debug program using it.
-