[PATCH] D71037: [Diagnostic] Add ftabstop to -Wmisleading-indentation

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 31 02:33:28 PST 2019


mstorsjo added a comment.

This broke my builds. A configure test that tries to compile `int main (void) { for( int i = 0; i < 9; i++ ); return 0; }` (a single line source file), with `-Wall` enabled, now triggers failed asserts:

  clang-10: ../tools/clang/lib/Parse/ParseStmt.cpp:1236: static unsigned int {anonymous}::MisleadingIndentationChecker::getVisualIndentation(clang::SourceManager&, clang::SourceLocation): Assertion `FIDAndOffset.second > ColNo && "Column number smaller than file offset?"' failed.
  
  <cut>
  
  1.      oneline.c:1:49: current parser token 'return'
  2.      oneline.c:1:17: parsing function body 'main'
  3.      oneline.c:1:17: in compound statement ('{}')


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71037/new/

https://reviews.llvm.org/D71037





More information about the cfe-commits mailing list