[LOW] Support C++14 integer literal digit separators
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing the examples in the issue with Wave and gcc, covering decimal and hexadecimal C++14 literals containing single-quote separators. Done means Wave accepts these literals as single integer values and produces the same outputs shown in the issue.
Written by the indexing model from the issue text.
Description
Filing this chiefly for the record. cppreference states that since C++14:
Optional single quotes(') may be inserted between the digits as a separator. They are ignored by the compiler.
I verified this is true in gcc. At this time Wave does not understand them. For example:
#include <iostream>
// can insert single quotes between digits starting in C++14:
int foo = 1'2'3; // wave thinks this is two ints and one char literal
int bar = 0x2'3; // wave thinks this is two ints and a single quote
int main() {
std::cout << foo << "\n"; // 123
std::cout << bar << "\n"; // 35
return 0;
}
I don't need this functionality but wanted to record it for some future maintainer.
- Dominant language
- C++
- Stars
- 29
- Forks
- 55
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 1
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/wave
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Switch to reusable CI flowMay be free again @jefftrull claimed this 193 days ago, and no pull request is open. Open
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Is it possible? Dumping preprocessor state at end of output so that preprocessing can be resumed?Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
espressif/esp-matter#1867 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
cuAmpcorParameter.cpp (CPU pycuampcor) does not compile with libc++: EXIT_FAILURE is undeclaredOpen
Difficulty 1/5 Under an hour Newbie friendliness 92/100
isce-framework/isce3#387 ·
-
upstream update
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
conan-io/conan-center-index#31055 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day