This revision was automatically updated to reflect the committed changes.
Closed by commit rL323904: [clang-format] Align preprocessor comments with #
(authored by mzeren-vmw, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D42408?vs=13
krasimir added inline comments.
Comment at: unittests/Format/FormatTest.cpp:2613
Style));
- // FIXME: The comment indent corrector in TokenAnnotator gets thrown off by
- // preprocessor indentation.
- EXPECT_EQ("#if 1\n"
-" // comment\n"
-
mzeren-vmw created this revision.
mzeren-vmw added reviewers: krasimir, klimek, djasper.
r312125, which introduced preprocessor indentation, shipped with a known
issue where "indentation of comments immediately before indented
preprocessor lines is toggled on each run". For example these two forms