dolphin/Source/Core/Common
Pokechu22 0cced44142 Use __VA_OPT__(, ) __VA_ARGS__ instead of ##__VA_ARGS__
Per https://en.cppreference.com/w/cpp/preprocessor/replace#.23_and_.23.23_operators the `##` behavior is a nonstandard extension; this extension seems to be supported by all compilers we care about, but IntelliSense in visual studio doesn't correctly handle it, resulting in false errors in the IDE (but not when compiling).

Per https://en.cppreference.com/w/cpp/preprocessor/replace#Function-like_macros C++20 introduced a workaround, where `__VA_OPT__(, )` generates a comma if and only if `__VA_ARGS__` is non-empty.

This PR replaces all occurrences, with the exception of Externals, DSPSpy (which is not likely to be edited in MSVC and does not target C++20 currently), and JitArm64_Integer.cpp (which uses `Function(__VA_ARGS__)`, and thus does not ever need a comma).
2022-08-23 12:09:57 -07:00
..
Config Config: Allow unregistering callbacks. 2021-12-25 23:32:49 +01:00
Crypto Merge pull request #10941 from shuffle2/crypto-cleanup 2022-08-05 12:12:34 +02:00
Debug
GL GLX: Guard against redefinition of PFNGLXSWAPINTERVALEXTPROC 2022-05-29 13:50:32 -04:00
Logging Use __VA_OPT__(, ) __VA_ARGS__ instead of ##__VA_ARGS__ 2022-08-23 12:09:57 -07:00
Align.h
Analytics.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
Analytics.h
AndroidAnalytics.cpp Android: Mark s_android_send_report as static 2022-01-06 12:20:09 +01:00
AndroidAnalytics.h
Arm64Emitter.cpp Arm64Emitter: Fix encoding of size for ADD (vector) 2022-08-05 21:49:28 +02:00
Arm64Emitter.h Arm64Emitter: Simplify LogicalImm further 2022-07-10 22:17:09 +01:00
ArmCommon.h
ArmCPUDetect.cpp CPUDetect: improve win/arm64 support 2022-07-25 21:21:11 -07:00
ArmFPURoundMode.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
Assert.h Use __VA_OPT__(, ) __VA_ARGS__ instead of ##__VA_ARGS__ 2022-08-23 12:09:57 -07:00
BitField.h Make all custom fmt::formatter's format functions const 2022-01-13 11:11:08 -08:00
BitField.natvis Improve BitField natvis 2022-01-02 14:39:34 -08:00
BitSet.h
BitUtils.h Common: Remove unused stuff from BitUtils.h 2022-08-05 17:54:51 +02:00
BlockingLoop.h
CDUtils.cpp Move to C++20 for non-MSVC compilers 2022-07-30 23:35:53 +01:00
CDUtils.h
ChunkFile.h Resolve GCC Warnings 2022-06-30 15:26:48 -05:00
CMakeLists.txt crypto/sha1: add real workaround for msvc/arm64 bad codegen 2022-08-02 23:05:45 -07:00
CodeBlock.h Common/CodeBlock: Call ResetCodePtr when decreasing region_size 2022-02-12 17:51:32 +01:00
ColorUtil.cpp
ColorUtil.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
Common.h Common/MsgHandler: Remove non-format variants of PanicAlert 2022-01-09 12:44:14 -08:00
CommonFuncs.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
CommonFuncs.h
CommonPaths.h Common: Change default path for Wii SD cards to not be inside the Wii NAND. 2022-07-11 23:11:41 +02:00
CommonTypes.h
CompatPatches.cpp Add fmt/xchar includes where wstring is used 2022-01-13 11:11:08 -08:00
CPUDetect.h CPUDetect: improve win/arm64 support 2022-07-25 21:21:11 -07:00
DebugInterface.h Gekko constistancy changes. Add context item to codeview to show or copy a load/store target memory address from instructions at or near PC when paused. 2022-03-17 12:53:38 -07:00
DynamicLibrary.cpp
DynamicLibrary.h Common: Make DynamicLibrary non-copyable 2022-03-05 23:40:41 +01:00
ENetUtil.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
ENetUtil.h
EnumFormatter.h Merge pull request #10367 from Pokechu22/fmt-8.1.1 2022-01-20 21:14:41 +01:00
EnumMap.h Create EnumMap 2021-10-24 11:48:36 -07:00
EnumMap.natvis Create EnumMap natvis 2022-01-02 15:36:47 -08:00
Event.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
FatFsUtil.cpp FatFsUtil: Skip past entries with invalid filenames. 2022-07-11 23:11:42 +02:00
FatFsUtil.h Core: In deterministic mode, build SD cards with a consistent filename order and dummy timestamps. 2022-07-11 23:11:41 +02:00
FileSearch.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
FileSearch.h
FileUtil.cpp Common: Change default path for Wii SD cards to not be inside the Wii NAND. 2022-07-11 23:11:41 +02:00
FileUtil.h Config and UICommon: Add config option and user path for Wii SD card sync folder. 2022-07-11 23:11:40 +02:00
FixedSizeQueue.h Fix all uninitialized variable warnings (C26495) 2021-10-13 12:32:16 -07:00
Flag.h
FloatUtils.cpp
FloatUtils.h
FormatUtil.h
FPURoundMode.h
GekkoDisassembler.cpp Gekko constistancy changes. Add context item to codeview to show or copy a load/store target memory address from instructions at or near PC when paused. 2022-03-17 12:53:38 -07:00
GekkoDisassembler.h Gekko constistancy changes. Add context item to codeview to show or copy a load/store target memory address from instructions at or near PC when paused. 2022-03-17 12:53:38 -07:00
GenericCPUDetect.cpp
GenericFPURoundMode.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
Hash.cpp Common/Hash: use zlib-ng for adler32. small cleanups. 2022-08-01 10:07:27 -07:00
Hash.h Common/Hash: use zlib-ng for adler32. small cleanups. 2022-08-01 10:07:27 -07:00
HRWrap.cpp Common: Create HRWrap 2022-01-09 12:44:15 -08:00
HRWrap.h windows: buildfix if pch not used 2022-04-12 12:28:57 -07:00
HttpRequest.cpp Replace use of of unsigned char* with fmt 2022-01-13 11:11:08 -08:00
HttpRequest.h
Image.cpp Common::Timer: use chrono::steady_clock internally 2022-08-02 22:24:06 -07:00
Image.h replace libpng with libspng 2022-07-25 18:32:16 -07:00
IniFile.cpp StripSpaces: only strip spaces 2022-07-25 18:40:12 -07:00
IniFile.h Use Common::ToLower and Common::ToUpper 2022-01-16 17:00:12 -08:00
Inline.h Change _WIN32 check to a _MSC_VER check in Inline.h 2022-05-02 01:57:36 -05:00
Intrinsics.h
IOFile.cpp IOFile: Rename Clear() to ClearError() for clarity. 2022-01-29 06:49:22 +01:00
IOFile.h IOFile: Rename Clear() to ClearError() for clarity. 2022-01-29 06:49:22 +01:00
JitRegister.cpp JitRegister: Use fmt 2022-02-16 20:09:38 +00:00
JitRegister.h JitRegister: Use fmt 2022-02-16 20:09:38 +00:00
Lazy.h
LdrWatcher.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
LdrWatcher.h
LinearDiskCache.h IOFile: Rename Clear() to ClearError() for clarity. 2022-01-29 06:49:22 +01:00
make_scmrev.h.js
MathUtil.cpp
MathUtil.h MathUtil: Mark lo in SaturatingCast as [[maybe_unused]] 2022-02-13 14:38:59 -08:00
Matrix.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
Matrix.h
MemArena.h MemArena: Keep fastmem region mapped on Linux. 2022-02-14 22:14:41 +01:00
MemArenaAndroid.cpp MemArena: Prepare interface for proper memory reservation. 2021-12-25 20:20:36 +01:00
MemArenaUnix.cpp MemArena: Keep fastmem region mapped on Linux. 2022-02-14 22:14:41 +01:00
MemArenaWin.cpp MemArena: Load UnmapViewOfFileEx dynamically to restore Windows 7 support. 2022-02-14 21:57:18 +01:00
MemoryUtil.cpp MemoryUtil: Remove __builtin_available for macOS 10.14 2022-06-01 22:57:56 -04:00
MemoryUtil.h
MinizipUtil.h CMake: rename minizip to minizip-ng 2022-06-06 14:21:43 +02:00
MsgHandler.cpp Common/MsgHandler: Use caller's file and line number in log messages 2022-01-09 12:44:14 -08:00
MsgHandler.h Use __VA_OPT__(, ) __VA_ARGS__ instead of ##__VA_ARGS__ 2022-08-23 12:09:57 -07:00
NandPaths.cpp Core: Make format of D_WIIROOT_IDX consistent with the rest of the user directories. 2021-12-25 20:21:32 +01:00
NandPaths.h
Network.cpp Common/Network: Update IP checksum since total_len might have changed 2022-07-10 20:56:07 +04:00
Network.h Common/Network: Make Build() methods const 2022-07-10 20:12:07 +04:00
PcapFile.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
PcapFile.h
PerformanceCounter.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
PerformanceCounter.h
Profiler.cpp Common::Timer: use chrono::steady_clock internally 2022-08-02 22:24:06 -07:00
Profiler.h
QoSSession.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
QoSSession.h
Random.cpp
Random.h
Result.h
scmrev.h.in
SCMRevGen.vcxproj msbuild: simplify lang/scm projects a bit 2022-04-27 15:06:04 -07:00
ScopeGuard.h
SDCardUtil.cpp
SDCardUtil.h
Semaphore.h
SettingsHandler.cpp Use fmt::localtime instead of thread-unsafe std::localtime 2021-10-15 22:49:13 +02:00
SettingsHandler.h
SFMLHelper.cpp
SFMLHelper.h SFMLHelper: Add stream insertion overload helpers for enum types 2021-09-22 15:42:01 -04:00
SocketContext.cpp
SocketContext.h
SPSCQueue.h Fix all uninitialized variable warnings (C26495) 2021-10-13 12:32:16 -07:00
StringUtil.cpp Merge pull request #10876 from shuffle2/cpudetect 2022-07-26 12:52:50 +02:00
StringUtil.h Merge pull request #10876 from shuffle2/cpudetect 2022-07-26 12:52:50 +02:00
Swap.h
SymbolDB.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
SymbolDB.h
Thread.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
Thread.h
Timer.cpp add TODO for chrono in GetLocalTimeSinceJan1970 2022-08-06 22:25:30 -07:00
Timer.h Timer: protect usages of ms timers from rollover 2022-08-02 22:24:06 -07:00
TraversalClient.cpp NetPlayDialog: Display external IP/Port as seen by the traversal server when it's used. 2022-03-15 01:56:16 -05:00
TraversalClient.h NetPlayDialog: Display external IP/Port as seen by the traversal server when it's used. 2022-03-15 01:56:16 -05:00
TraversalProto.h NetPlayDialog: Display external IP/Port as seen by the traversal server when it's used. 2022-03-15 01:56:16 -05:00
TraversalServer.cpp licensing: convert "public domain" to CC0 1.0 2021-07-05 04:43:55 +02:00
TypeUtils.h Create EnumMap 2021-10-24 11:48:36 -07:00
UPnP.cpp
UPnP.h
VariantUtil.h
Version.cpp Fix static initialisation order fiasco issue for Version variables 2022-01-14 00:04:22 +01:00
Version.h Fix static initialisation order fiasco issue for Version variables 2022-01-14 00:04:22 +01:00
WindowSystemInfo.h
WorkQueueThread.h
x64ABI.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
x64ABI.h
x64CPUDetect.cpp CPUDetect: improve win/arm64 support 2022-07-25 21:21:11 -07:00
x64Emitter.cpp Common/Assert: Switch to fmt 2022-01-09 12:43:11 -08:00
x64Emitter.h
x64FPURoundMode.cpp Treewide: Adjust order of includes 2021-12-10 14:49:57 -08:00
x64Reg.h