hanchenye-llvm-project/clang/lib
Manuel Klimek 8e07a1b64b Fix layout of blocks inside statements.
Previously, we would not indent:
SOME_MACRO({
  int i;
});
correctly. This is fixed by adding the trailing }); to the unwrapped
line starting with SOME_MACRO({, so the formatter can correctly match
the braces and indent accordingly.

Also fixes incorrect parsing of initializer lists, like:
int a[] = { 1 };

llvm-svn: 172058
2013-01-10 11:52:21 +00:00
..
ARCMigrate [arcmt] Follow-up for r171484; make sure when adding brackets enclosing case statements, 2013-01-08 00:58:25 +00:00
AST Issue warning when case value is too large to fit 2013-01-09 23:04:56 +00:00
ASTMatchers Implements multiple parents in the parent map. 2012-12-06 14:42:48 +00:00
Analysis CFG.cpp: Fix wrapping logic when printing block preds/succs. 2013-01-07 09:51:17 +00:00
Basic Enable intel_ocl_bicc for x86_64 target only. Remove fix from 171969 that enabled this extension for multiple targets. 2013-01-10 10:41:05 +00:00
CodeGen Testing with a full OpenCL compiler (based on clang) reveals r71734 missed 2013-01-10 09:11:33 +00:00
Driver Prepare for the upcoming version of Debian (jessie) 2013-01-06 08:09:29 +00:00
Edit EditedSource.cpp: Appease msvc, to add <cctype>. 2012-12-21 00:21:02 +00:00
Format Fix layout of blocks inside statements. 2013-01-10 11:52:21 +00:00
Frontend Be more careful about updating the failed-modules set 2013-01-10 02:04:18 +00:00
FrontendTool use early returns to simplify and de-nest 2013-01-06 07:49:41 +00:00
Headers unwind.h: Add include guards and don't mess with visibility if HIDE_EXPORTS is specified. 2013-01-09 19:54:57 +00:00
Lex Rework the realpath nonsense for framework lookups to deal more 2013-01-10 01:43:00 +00:00
Parse Remove the unused Parser::ParseTranslationUnit function 2013-01-09 21:49:51 +00:00
Rewrite Fix indent and remove parameter with a matching default value. 2013-01-04 22:40:33 +00:00
Sema Issue warning when case value is too large to fit 2013-01-09 23:04:56 +00:00
Serialization [PCH] (De)serialize the end location of MacroInfo. 2013-01-07 19:16:23 +00:00
StaticAnalyzer Do not model loads from complex types, since we don't accurately model the imaginary and real parts yet. 2013-01-09 18:46:17 +00:00
Tooling Style and Doc fix for CommonOptionsParser 2012-12-14 18:58:25 +00:00
CMakeLists.txt Initial version of formatting library. 2012-12-03 18:12:45 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00