Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/lib/Format/UnwrappedLineParser.cpp | ||
|---|---|---|
| 2338–2339 | So basically one would just need a Line.isComment() or so? The lastNonComment is not important, right? | |
Comment Actions
- Simplified the code that backtracks to the token which the right braces are to be inserted after.
- Added a missing newline in the new testcase.
| clang/lib/Format/UnwrappedLineParser.cpp | ||
|---|---|---|
| 2338–2339 | We don't really need a pointer to the last non-comment token here as we would return the last token of the line, but the pointer is still needed for the left brace above. | |
| clang/lib/Format/UnwrappedLineParser.cpp | ||
|---|---|---|
| 2338–2339 | We have to try to find either the first or the last non-comment token in L to determine if it's a comment line, for L can be something like: /* comment */ f(); // comment | |
So basically one would just need a Line.isComment() or so? The lastNonComment is not important, right?