Go to file
Ben Hamilton 1d6c6ee1cf [clang-format] Improve detection of ObjC for-in statements
Summary:
Previously, clang-format would detect the following as an
Objective-C for-in statement:

  for (int x = in.value(); ...) {}

because the logic only decided a for-loop was definitely *not*
an Objective-C for-in loop after it saw a semicolon or a colon.

To fix this, I delayed the decision of whether this was a for-in
statement until after we found the matching right-paren, at which
point we know if we've seen a semicolon or not.

Test Plan: New tests added. Ran tests with:
  make -j12 FormatTests && ./tools/clang/unittests/Format/FormatTests

Reviewers: krasimir, jolesiak

Reviewed By: jolesiak

Subscribers: djasper, cfe-commits, klimek

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

llvm-svn: 326815
2018-03-06 17:21:42 +00:00
clang [clang-format] Improve detection of ObjC for-in statements 2018-03-06 17:21:42 +00:00
clang-tools-extra [clangd] Don't end completion item labels with '::' 2018-03-06 16:45:21 +00:00
compiler-rt OpenBSD sanitizer common, define RLIMIT_AS constant 2018-03-06 08:24:16 +00:00
debuginfo-tests [Darwin] Specify DWARF 2/4 when running apple accelerator tests. 2018-02-26 20:56:45 +00:00
libclc utils: Adapt to llvm r325155 2018-02-23 07:37:03 +00:00
libcxx One more test for P0767: 2018-03-06 15:01:55 +00:00
libcxxabi [demangler] Modernize the rest of the demangler. 2018-03-06 14:21:10 +00:00
libunwind [libunwind][MIPS]: Add support for unwinding in N32 processes. 2018-02-27 21:24:02 +00:00
lld Improve duplicated version handling. 2018-03-06 17:05:12 +00:00
lldb Rewrite TestTargetSymbolsBuildidCase to be more focused 2018-03-06 15:56:20 +00:00
llgo
llvm Refactor check for dllimport in the Verifier. 2018-03-06 17:19:23 +00:00
openmp Improve OpenMP threadprivate implementation. 2018-03-05 18:42:01 +00:00
parallel-libs
polly [Polly][CMake] Fix lit setup for building the in the mono repo 2018-03-05 14:43:04 +00:00
README.md Add an svn project to contain the files that appear at the root of the 2017-10-19 21:09:49 +00:00

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.