aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-06-07 16:02:52 +0000
committerAlexander Kornienko <alexfh@google.com>2013-06-07 16:02:52 +0000
commitdd7ece53a2958ab3910007f6521bbb078b33505c (patch)
tree8b16bfa4d9034dc88a102d1683c1ef6d1f937cba /llvm/lib/CodeGen/StackProtector.cpp
parentcead69d4a3f80fa8684f5636a9469d043f4f7285 (diff)
downloadllvm-dd7ece53a2958ab3910007f6521bbb078b33505c.zip
llvm-dd7ece53a2958ab3910007f6521bbb078b33505c.tar.gz
llvm-dd7ece53a2958ab3910007f6521bbb078b33505c.tar.bz2
Fixed calculation of penalty when breaking tokens.
Summary: Introduced two new style parameters: PenaltyBreakComment and PenaltyBreakString. Add penalty for each character of a breakable token beyond the column limit (this relates mainly to comments, as they are broken only on whitespace). Tuned PenaltyBreakComment to prefer comment breaking over breaking inside most binary expressions. Fixed a bug that prevented *, & and && from being considered TT_BinaryOperator in the presense of adjacent comments. Reviewers: klimek, djasper Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D933 llvm-svn: 183530
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions