[clang] [clang-format] Handle AttributeMacro before access modifiers (PR #95503)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 14 12:52:48 PDT 2024
================
@@ -57,7 +57,10 @@ class LevelIndentTracker {
/// Update the indent state given that \p Line is going to be formatted
/// next.
void nextLine(const AnnotatedLine &Line) {
- Offset = getIndentOffset(*Line.First);
+ const auto *Tok = Line.First;
+ if (Tok->is(TT_AttributeMacro) && Tok->Next)
----------------
HazardyKnusperkeks wrote:
Shouldn't this be a loop?
https://github.com/llvm/llvm-project/pull/95503
More information about the cfe-commits
mailing list