citra/src/common
Pengfei f85bde3ca3
Replace &vec[0] with vec.data()
When the vector is empty, using `&vec[0]` involves undefined behaviour. While that works fine most of the time, Flatpak builds aborted on a failed `__builtin_expect`.

I searched for such occurences across the codebase with the regex `(?<!&)&\w+\[0\]` and fixed those that would potentially cause issues.
2021-07-14 17:01:14 +08:00
..
logging Delete the old log file before rotating (#5675) 2021-01-03 14:53:23 -05:00
serialization Fix memory region serialization (OSK crash) 2020-04-10 16:51:01 +01:00
x64 Merge pull request #5501 from FearlessTobi/port-1064-3948 2021-04-23 22:58:08 -07:00
alignment.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
announce_multiplayer_room.h core, web_service: Check for error when registering rooms 2019-04-20 12:50:14 +08:00
archives.h Code review actions (plus hopefully fix the linux CI) 2020-03-31 17:54:28 +01:00
assert.h Make UNIMPLEMENTED_MSG consistent with UNIMPLEMENTED (#5631) 2020-12-06 23:36:04 +01:00
bit_field.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
bit_set.h Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
cityhash.cpp Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
cityhash.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
CMakeLists.txt common: Remove chunk_file.h 2020-05-01 08:23:59 -04:00
color.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
common_funcs.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
common_paths.h core, citra_qt: Implement a save states file format and slot UI 2020-02-18 13:19:52 +08:00
common_types.h Sources: Run clang-format on everything. 2016-09-18 09:38:01 +09:00
construct.h Code review - general gardening 2020-03-29 16:14:36 +01:00
detached_tasks.cpp Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
detached_tasks.h Review comments - part 5 2018-10-20 10:35:55 -04:00
file_util.cpp Replace &vec[0] with vec.data() 2021-07-14 17:01:14 +08:00
file_util.h file_util: Add a function to update the user path 2021-04-17 23:48:30 +02:00
hash.h gl_shader_gen: Mark hash implementations as noexcept 2020-04-30 22:57:36 -04:00
linear_disk_cache.h Sources: Run clang-format on everything. 2016-09-18 09:38:01 +09:00
math_util.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
memory_ref.cpp Added copyright notices on new files 2020-03-28 15:21:10 +00:00
memory_ref.h Code review actions (plus hopefully fix the linux CI) 2020-03-31 17:54:28 +01:00
microprofile.cpp Integrate the MicroProfile profiling library 2015-08-24 22:16:28 -03:00
microprofile.h Sources: Run clang-format on everything. 2016-09-18 09:38:01 +09:00
microprofileui.h Common: Remove section measurement from profiler (#1731) 2016-04-29 00:07:10 -07:00
misc.cpp Prefix all size_t with std:: 2018-09-06 16:03:28 -04:00
param_package.cpp core/dumping: Allow format/encoder selection+configuration 2020-02-27 16:55:10 +08:00
param_package.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
quaternion.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
ring_buffer.h gcc 11 compatibility fix (suggestion) (#5778) 2021-05-10 22:10:29 -05:00
scm_rev.cpp.in Add shader cache version generation 2020-01-15 19:58:33 -07:00
scm_rev.h Add shader cache version generation 2020-01-15 19:58:33 -07:00
scope_exit.h common/scope_exit: Replace std::move with std::forward in ScopeExit() 2019-04-15 17:55:44 +02:00
string_util.cpp string_util: Remove MSVC workaround for converting between UTF8/UTF16 2021-02-11 00:16:33 +01:00
string_util.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
swap.h general: Fix various spelling errors 2021-01-03 02:39:41 +01:00
telemetry.cpp common/telemetry: Migrate namespace into the Common namespace 2021-01-04 05:17:13 +01:00
telemetry.h common/telemetry: Migrate namespace into the Common namespace 2021-01-04 05:17:13 +01:00
texture.cpp new-line that clang-format didn't fix 2019-11-09 12:56:17 -07:00
texture.h specify size of buffer and use openglstate in getteximageoes 2019-11-09 12:58:17 -07:00
thread_queue_list.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
thread.cpp Fix thread naming on Linux, which limits names to 15 bytes. 2020-09-03 03:15:14 +02:00
thread.h Port yuzu-emu/yuzu#4587 and yuzu-emu/yuzu#4588: Fix data races (#5545) 2020-09-19 18:42:21 +02:00
threadsafe_queue.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
timer.cpp Address review comments 2018-09-06 00:00:21 +02:00
timer.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
vector_math.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00
web_result.h Put WebResult into a seperate file 2018-10-27 00:39:02 +02:00
zstd_compression.cpp Address review and update zstd 2020-01-15 19:58:34 -07:00
zstd_compression.h Port yuzu-emu/yuzu#4528: "common: Make use of [[nodiscard]] where applicable" (#5535) 2020-08-31 21:06:16 +02:00