[clang] [clang-format] treat continuation as indent for aligned lines (PR #191217)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 9 13:08:36 PDT 2026


================
@@ -860,14 +862,35 @@ struct FormatToken {
                               /*CPlusPlus11=*/true);
   }
 
-  /// Returns the previous token ignoring comments.
-  [[nodiscard]] FormatToken *getPreviousNonComment() const {
+  template <typename T>
+  [[nodiscard]] FormatToken *getPreviousOneOf(T A1) const {
----------------
HazardyKnusperkeks wrote:

For consistency:
```suggestion
  [[nodiscard]] FormatToken *getPrevious(T A1) const {
```

https://github.com/llvm/llvm-project/pull/191217


More information about the cfe-commits mailing list