Go to file
Martin Probst 9d7178139c clang-format: fix a crash in comment wraps.
Summary:
Previously, clang-format would crash if it tried to wrap an overlong
single line comment, because two parts of the code inserted a break in
the same location.

    /** heregoesalongcommentwithnospace */

This wasn't previously noticed as it could only trigger for an overlong
single line comment that did have no breaking opportunities except for a
whitespace at the very beginning.

This also introduces a check for JavaScript to not ever wrap a comment
before an opening curly brace:

    /** @mods {donotbreakbeforethecurly} */

This is because some machinery parsing these tags sometimes supports
breaks before a possible `{`, but in some other cases does not.
Previously clang-format was careful never to wrap a line with certain
tags on it. The better solution is to specifically disable wrapping
before the problematic token: this allows wrapping and aligning comments
but still avoids the problem.

Reviewers: krasimir

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D50177

llvm-svn: 338706
2018-08-02 11:52:08 +00:00
clang clang-format: fix a crash in comment wraps. 2018-08-02 11:52:08 +00:00
clang-tools-extra Replace hardcoded format styles in a few tools with the default style in libFormat. 2018-08-02 10:30:56 +00:00
compiler-rt Add header guard to asan_report.h 2018-08-02 11:05:07 +00:00
debuginfo-tests [DWARF] Change a test to ensure the creation of a __debug_ranges section. 2018-07-31 19:37:29 +00:00
libclc atom: Use volatile pointers for cl_khr_{global,local}_int32_{base,extended}_atomics 2018-06-21 19:27:39 +00:00
libcxx Implement P1023: constexpr comparison operators for std::array 2018-08-02 02:11:06 +00:00
libcxxabi Update version to 8.0.0svn 2018-08-01 14:25:03 +00:00
libunwind Bump version number to 8.0.0svn 2018-08-01 15:22:27 +00:00
lld [lld] Make tests calling llvm-ar more robust 2018-08-02 11:33:54 +00:00
lldb Unit test for Symtab::InitNameIndexes 2018-08-02 10:13:18 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm [llvm-ar] Correct help text 2018-08-02 11:27:38 +00:00
openmp [OMPT,tests] Fix taskloop testcase scheduling effects 2018-08-01 16:15:18 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly [JSONExporter] Print instead of ignoring parser error. 2018-08-02 00:11:14 +00:00
README.md

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.