llvm-project/clang/lib/Format
Daniel Jasper 9cb1ac28b9 clang-format: Fixed missing space between Obj-C for/in and a typecast.
Fixes this bug: https://llvm.org/bugs/show_bug.cgi?id=24504

TokenAnnotator::spaceRequiredBetween was handling TT_ForEachMacro but
not TT_ObjCForIn, so lines that look like:

  for (id nextObject in (NSArray *)myArray)

would incorrectly turn into:

  for (id nextObject in(NSArray *)myArray)

Patch by Kent Sutherland, thank you.

llvm-svn: 249553
2015-10-07 15:09:08 +00:00
..
BreakableToken.cpp clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
BreakableToken.h Fix assertion in BreakableBlockComment (http://llvm.org/PR21916). 2015-01-12 13:11:12 +00:00
CMakeLists.txt clang-format: Factor out UnwrappedLineFormatter into a separate file. 2014-12-10 19:00:42 +00:00
ContinuationIndenter.cpp clang-format: Don't let a leading "template <..>" lead to wrapped initializers. 2015-08-27 11:59:31 +00:00
ContinuationIndenter.h [clang-format] Use in-class initializers to simplify constructor. 2015-06-12 14:39:08 +00:00
Encoding.h clang-format: Fix crasher when a UTF8 character is found in an escape 2015-07-20 23:28:07 +00:00
Format.cpp Make clang-format actually respect custom brace wrapping flags. 2015-10-07 04:06:10 +00:00
FormatToken.cpp clang-format: Add initial #include sorting capabilities. 2015-09-23 08:30:47 +00:00
FormatToken.h clang-format: [JS] handle let (ES6) 2015-09-28 14:28:08 +00:00
Makefile
TokenAnnotator.cpp clang-format: Fixed missing space between Obj-C for/in and a typecast. 2015-10-07 15:09:08 +00:00
TokenAnnotator.h clang-format: NFC. Add a function to test whether an annotated line 2015-06-17 09:43:56 +00:00
UnwrappedLineFormatter.cpp clang-format: Add a new brace style "custom" as well as flags to 2015-09-29 14:57:55 +00:00
UnwrappedLineFormatter.h clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
UnwrappedLineParser.cpp clang-format: Fix false ObjC block detection. 2015-10-07 03:43:10 +00:00
UnwrappedLineParser.h clang-format: NFC. Cleanup after r237895. 2015-05-31 08:51:54 +00:00
WhitespaceManager.cpp [clang-format] Stop alignment sequences on open braces and parens when 2015-10-07 15:03:26 +00:00
WhitespaceManager.h SourceRanges are small and trivially copyable, don't them by reference. 2015-10-04 04:53:55 +00:00