https://bugs.kde.org/show_bug.cgi?id=410895
Bug ID: 410895
Summary: Raw C++ literals on more than two lines with custom
start/end text break formatter
Product: kdevelop
Version: 5.4.1
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Astyle
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
When using C++11 raw literals which use three or more lines AND custom text for
termination, formatter stops doing its job after meeting one.
Part of file before one, however, is still changed properly.
STEPS TO REPRODUCE
1. Create C++ file
2. Use raw literal which take three or more lines in it and use custom text for
termination (example below)
3. Use option "Reformat source"
OBSERVED RESULT
Only lines before raw literal are properly formatted.
EXPECTED RESULT
All the lines are formatted.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 19.04/NA
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
ADDITIONAL INFORMATION
Reproduced both on mainstream Ubuntu package (5.3.2) and kf5 PPA build (5.4.1).
Test cases:
Work fine:
R"(
Work fine
)";
R"TEST(Work fine)TEST";
R"TEST(
Work fine)TEST";
R"TEST(Work fine
)TEST";
Break formatter:
R"TEST(
Time to break formatting!
)TEST";
--
You are receiving this mail because:
You are watching all bug changes.