[clang] [clang] Fix typo in __cplusplus macro (PR #235489)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 25 10:01:15 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Stuart Hayhurst (stuarthayhurst)
<details>
<summary>Changes</summary>
Found a possible typo where `__cplusplus` was written as `__cpluscplus`, since I made the same typo while doing a search.
Corrected to `__cplusplus`, feel free to close if this wasn't a mistake :)
---
Full diff: https://github.com/llvm/llvm-project/pull/235489.diff
1 Files Affected:
- (modified) clang/test/SemaCXX/cxx2b-p2266-disable-with-msvc-compat.cpp (+1-1)
``````````diff
diff --git a/clang/test/SemaCXX/cxx2b-p2266-disable-with-msvc-compat.cpp b/clang/test/SemaCXX/cxx2b-p2266-disable-with-msvc-compat.cpp
index 9323dea24bd75b..6b4a3bc4f77d3a 100644
--- a/clang/test/SemaCXX/cxx2b-p2266-disable-with-msvc-compat.cpp
+++ b/clang/test/SemaCXX/cxx2b-p2266-disable-with-msvc-compat.cpp
@@ -9,7 +9,7 @@
#if __INCLUDE_LEVEL__ == 0
-#if __cpluscplus > 202002L && __cpp_implicit_move < 202207L
+#if __cplusplus > 202002L && __cpp_implicit_move < 202207L
#error "__cpp_implicit_move not defined correctly"
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/235489
More information about the cfe-commits
mailing list