================
@@ -1656,7 +1662,8 @@ void UnwrappedLineFormatter::formatFirstToken(
   // Preprocessor directives get indented before the hash only if specified. In
   // Javascript import statements are indented like normal statements.
   if (!Style.isJavaScript() &&
-      Style.IndentPPDirectives != FormatStyle::PPDIS_BeforeHash &&
+      (Style.IndentPPDirectives == FormatStyle::PPDIS_None ||
+       Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash) &&
----------------
owenca wrote:

Ditto.

https://github.com/llvm/llvm-project/pull/139750
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to