Skip to content

Commit

Permalink
P2223R2の解説を修正 (#1405)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbadfca11 authored Jan 21, 2025
1 parent 97d2892 commit b394b14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/cpp23/trimming_whitespaces_before_line_splicing.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main() {
}
```

このコードにおいて「`// \`」のあとにはスペースがあり、EDG (ICCのフロントエンド)、GCC、Clangは行末スペースをトリミング (削除) して関数`f()``43`を返すが、MSVCはトリミングせず`1`を返していた。プラットフォーム間の動作差異をなくすために、実装は行末スペースをトリミングしなければならないよう提案することとした。
このコードにおいて「`// \`」のあとにはスペースがあり、EDG (ICCのフロントエンド)、GCC、Clangは行末スペースをトリミング (削除) して関数`f()``1`を返すが、MSVCはトリミングせず`43`を返していた。プラットフォーム間の動作差異をなくすために、実装は行末スペースをトリミングしなければならないよう提案することとした。

例として、IDEやツール (コードフォーマッタ) はそのような行末スペースを削除する可能性があり、Googleのコーディングスタイルでは行末スペースを禁止している。

Expand Down Expand Up @@ -66,4 +66,4 @@ int main() {


## 参照
- [P2223R2 Trimming whitespaces before line splicing](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2223r2.pdf)
- [P2223R2 Trimming whitespaces before line splicing](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2223r2.pdf)

0 comments on commit b394b14

Please sign in to comment.