clang, clang++, gcc, g++: standardize English page and Indonesian translation (#13751)
* clang, clang++, gcc, g++: standardize English page and add Indonesian translation
This commit adds the short and long-form parameters, enforce imperative mood, and standardizes the contents between `clang` and `gcc` as well as `clang++` and `g++`.
* clang++: Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* clang++: fix URL
* clang, clang++, gcc, g++: fix translation inconsistencies
* Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* Update pages/common/gcc.md
* Update pages.id/common/clang++.md
* Update pages.id/common/clang++.md
* clang++, g++: fix file extension
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
2024-09-23 12:52:44 +07:00
|
|
|
# clang++
|
|
|
|
|
|
|
|
> Susun kode C++.
|
|
|
|
> Part of LLVM.
|
|
|
|
> Informasi lebih lanjut: <https://clang.llvm.org>.
|
|
|
|
|
|
|
|
- Ubah suatu berkas kode sumber menjadi program:
|
|
|
|
|
2025-03-14 09:18:08 +02:00
|
|
|
`clang++ {{jalan/menuju/sumber1.cpp jalan/menuju/sumber2.cpp ...}} {{[-o|--output]}} {{jalan/menuju/program}}`
|
clang, clang++, gcc, g++: standardize English page and Indonesian translation (#13751)
* clang, clang++, gcc, g++: standardize English page and add Indonesian translation
This commit adds the short and long-form parameters, enforce imperative mood, and standardizes the contents between `clang` and `gcc` as well as `clang++` and `g++`.
* clang++: Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* clang++: fix URL
* clang, clang++, gcc, g++: fix translation inconsistencies
* Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* Update pages/common/gcc.md
* Update pages.id/common/clang++.md
* Update pages.id/common/clang++.md
* clang++, g++: fix file extension
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
2024-09-23 12:52:44 +07:00
|
|
|
|
2024-11-16 17:39:01 +01:00
|
|
|
- Tampilkan pesan peringatan dan galat dalam output:
|
clang, clang++, gcc, g++: standardize English page and Indonesian translation (#13751)
* clang, clang++, gcc, g++: standardize English page and add Indonesian translation
This commit adds the short and long-form parameters, enforce imperative mood, and standardizes the contents between `clang` and `gcc` as well as `clang++` and `g++`.
* clang++: Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* clang++: fix URL
* clang, clang++, gcc, g++: fix translation inconsistencies
* Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* Update pages/common/gcc.md
* Update pages.id/common/clang++.md
* Update pages.id/common/clang++.md
* clang++, g++: fix file extension
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
2024-09-23 12:52:44 +07:00
|
|
|
|
2025-03-14 09:18:08 +02:00
|
|
|
`clang++ {{jalan/menuju/sumber.cpp}} -Wall {{[-o|--output]}} {{jalan/menuju/program}}`
|
clang, clang++, gcc, g++: standardize English page and Indonesian translation (#13751)
* clang, clang++, gcc, g++: standardize English page and add Indonesian translation
This commit adds the short and long-form parameters, enforce imperative mood, and standardizes the contents between `clang` and `gcc` as well as `clang++` and `g++`.
* clang++: Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* clang++: fix URL
* clang, clang++, gcc, g++: fix translation inconsistencies
* Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* Update pages/common/gcc.md
* Update pages.id/common/clang++.md
* Update pages.id/common/clang++.md
* clang++, g++: fix file extension
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
2024-09-23 12:52:44 +07:00
|
|
|
|
2024-11-16 17:39:01 +01:00
|
|
|
- Izinkan peringatan dan simbol debug dalam output:
|
clang, clang++, gcc, g++: standardize English page and Indonesian translation (#13751)
* clang, clang++, gcc, g++: standardize English page and add Indonesian translation
This commit adds the short and long-form parameters, enforce imperative mood, and standardizes the contents between `clang` and `gcc` as well as `clang++` and `g++`.
* clang++: Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* clang++: fix URL
* clang, clang++, gcc, g++: fix translation inconsistencies
* Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* Update pages/common/gcc.md
* Update pages.id/common/clang++.md
* Update pages.id/common/clang++.md
* clang++, g++: fix file extension
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
2024-09-23 12:52:44 +07:00
|
|
|
|
2025-03-14 09:18:08 +02:00
|
|
|
`clang++ {{jalan/menuju/sumber.cpp}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{jalan/menuju/program}}`
|
clang, clang++, gcc, g++: standardize English page and Indonesian translation (#13751)
* clang, clang++, gcc, g++: standardize English page and add Indonesian translation
This commit adds the short and long-form parameters, enforce imperative mood, and standardizes the contents between `clang` and `gcc` as well as `clang++` and `g++`.
* clang++: Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* clang++: fix URL
* clang, clang++, gcc, g++: fix translation inconsistencies
* Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* Update pages/common/gcc.md
* Update pages.id/common/clang++.md
* Update pages.id/common/clang++.md
* clang++, g++: fix file extension
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
2024-09-23 12:52:44 +07:00
|
|
|
|
|
|
|
- Pilih standar bahasa untuk dikompilasi:
|
|
|
|
|
2025-03-14 09:18:08 +02:00
|
|
|
`clang++ {{jalan/menuju/sumber.cpp}} -std={{c++20}} {{[-o|--output]}} {{jalan/menuju/program}}`
|
clang, clang++, gcc, g++: standardize English page and Indonesian translation (#13751)
* clang, clang++, gcc, g++: standardize English page and add Indonesian translation
This commit adds the short and long-form parameters, enforce imperative mood, and standardizes the contents between `clang` and `gcc` as well as `clang++` and `g++`.
* clang++: Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* clang++: fix URL
* clang, clang++, gcc, g++: fix translation inconsistencies
* Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* Update pages/common/gcc.md
* Update pages.id/common/clang++.md
* Update pages.id/common/clang++.md
* clang++, g++: fix file extension
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
2024-09-23 12:52:44 +07:00
|
|
|
|
|
|
|
- Sertakan pustaka (library) dari direktori yang berbeda:
|
|
|
|
|
2025-03-14 09:18:08 +02:00
|
|
|
`clang++ {{jalan/menuju/sumber.cpp}} {{[-o|--output]}} {{jalan/menuju/program}} -I{{jalan/menuju/header}} -L{{jalan/menuju/pustaka}} -l{{nama_pustaka}}`
|
clang, clang++, gcc, g++: standardize English page and Indonesian translation (#13751)
* clang, clang++, gcc, g++: standardize English page and add Indonesian translation
This commit adds the short and long-form parameters, enforce imperative mood, and standardizes the contents between `clang` and `gcc` as well as `clang++` and `g++`.
* clang++: Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* clang++: fix URL
* clang, clang++, gcc, g++: fix translation inconsistencies
* Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* Update pages/common/gcc.md
* Update pages.id/common/clang++.md
* Update pages.id/common/clang++.md
* clang++, g++: fix file extension
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
2024-09-23 12:52:44 +07:00
|
|
|
|
|
|
|
- Susun kode sumber menjadi program dalam format LLVM Intermediate Representation (IR):
|
|
|
|
|
2025-03-14 09:18:08 +02:00
|
|
|
`clang++ {{[-S|--assemble]}} -emit-llvm {{jalan/menuju/sumber.cpp}} {{[-o|--output]}} {{jalan/menuju/program.ll}}`
|
clang, clang++, gcc, g++: standardize English page and Indonesian translation (#13751)
* clang, clang++, gcc, g++: standardize English page and add Indonesian translation
This commit adds the short and long-form parameters, enforce imperative mood, and standardizes the contents between `clang` and `gcc` as well as `clang++` and `g++`.
* clang++: Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* clang++: fix URL
* clang, clang++, gcc, g++: fix translation inconsistencies
* Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* Update pages/common/gcc.md
* Update pages.id/common/clang++.md
* Update pages.id/common/clang++.md
* clang++, g++: fix file extension
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
2024-09-23 12:52:44 +07:00
|
|
|
|
|
|
|
- [O]ptimalkan progam yang disusun agar dapat dijalankan lebih cepat:
|
|
|
|
|
2025-03-14 09:18:08 +02:00
|
|
|
`clang++ {{jalan/menuju/sumber.cpp}} -O{{1|2|3|fast}} {{[-o|--output]}} {{jalan/menuju/program}}`
|
clang, clang++, gcc, g++: standardize English page and Indonesian translation (#13751)
* clang, clang++, gcc, g++: standardize English page and add Indonesian translation
This commit adds the short and long-form parameters, enforce imperative mood, and standardizes the contents between `clang` and `gcc` as well as `clang++` and `g++`.
* clang++: Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* clang++: fix URL
* clang, clang++, gcc, g++: fix translation inconsistencies
* Apply suggestions from code review
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* Update pages/common/gcc.md
* Update pages.id/common/clang++.md
* Update pages.id/common/clang++.md
* clang++, g++: fix file extension
---------
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
2024-09-23 12:52:44 +07:00
|
|
|
|
|
|
|
- Tampilkan versi penyusun:
|
|
|
|
|
|
|
|
`clang++ --version`
|