aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CodeGen/MachineInstrTest.cpp
diff options
context:
space:
mode:
authorMark Zeren <mzeren@vmware.com>2018-01-31 20:05:50 +0000
committerMark Zeren <mzeren@vmware.com>2018-01-31 20:05:50 +0000
commitd2b2ac68867ca80b9d6f9e0e516f1906e768fa58 (patch)
tree9d35a332b3d2176a2f37d9329f592c8105f82e5b /llvm/unittests/CodeGen/MachineInstrTest.cpp
parent1a9b7b911df456e4871e3f3b3ba5abe83f31016a (diff)
downloadllvm-d2b2ac68867ca80b9d6f9e0e516f1906e768fa58.zip
llvm-d2b2ac68867ca80b9d6f9e0e516f1906e768fa58.tar.gz
llvm-d2b2ac68867ca80b9d6f9e0e516f1906e768fa58.tar.bz2
[clang-format] Align preprocessor comments with #
Summary: 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 toggle: #ifndef HEADER_H #define HEADER_H #if 1 // comment # define A 0 #endif #endif #ifndef HEADER_H #define HEADER_H #if 1 // comment # define A 0 #endif #endif This happens because we check vertical alignment against the '#' yet indent to the level of the 'define'. This patch resolves this issue by aligning against the '#'. Reviewers: krasimir, klimek, djasper Reviewed By: krasimir Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D42408 llvm-svn: 323904
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
0 files changed, 0 insertions, 0 deletions