llvm-project/clang/lib/Parse
Bruno Cardoso Lopes 1383ddc40b [SemaObjC] Improve ObjCDictionaryLiteral and ObjCArryLiteral diagnostics
Sema actions on ObjCDictionaryLiteral and ObjCArryLiteral are currently
done as a side-effect of Sema upon parent expressions, which incurs of
delayed typo corrections for such literals to be performed by TypoTransforms
upon the ObjCDictionaryLiteral and ObjCArryLiteral themselves instead of
its elements individually.

This is specially bad because it was not designed to act on several
elements; searching through all possible combinations of corrections for
several elements is very expensive. Additionally, when one of the
elements has no correction candidate, we still explore all options and
at the end emit no typo corrections whatsoever.

Do the proper sema actions by acting on each element alone during appropriate
literal parsing time to get proper diagonistics and decent compile time
behavior.

Differential Revision: http://reviews.llvm.org/D22183

rdar://problem/21046678

llvm-svn: 276020
2016-07-19 20:21:18 +00:00
..
CMakeLists.txt [CMake] Reorder libdeps by alphabetical order. 2014-07-14 04:59:27 +00:00
ParseAST.cpp Prune four superfluous ExternalSemaSource.h includes and one forward declaration in Sema.h 2016-05-13 14:53:19 +00:00
ParseCXXInlineMethods.cpp Fix a few issues while skipping function bodies 2016-06-16 21:40:06 +00:00
ParseDecl.cpp [ObjC] Implement @available in the Parser and AST 2016-07-16 00:35:23 +00:00
ParseDeclCXX.cpp [AST] Keep track of the left brace source location of a tag decl. 2016-07-15 18:11:33 +00:00
ParseExpr.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
ParseExprCXX.cpp P0305R1: Parsing support for init-statements in 'if' and 'switch' statements. 2016-06-29 21:17:59 +00:00
ParseInit.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
ParseObjc.cpp [SemaObjC] Improve ObjCDictionaryLiteral and ObjCArryLiteral diagnostics 2016-07-19 20:21:18 +00:00
ParseOpenMP.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
ParsePragma.cpp Add loop pragma for Loop Distribution 2016-06-14 12:04:26 +00:00
ParseStmt.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
ParseStmtAsm.cpp Fix a funny Dvorak typo. 2016-05-19 00:16:09 +00:00
ParseTemplate.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
ParseTentative.cpp P0305R1: Parsing support for init-statements in 'if' and 'switch' statements. 2016-06-29 21:17:59 +00:00
Parser.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
RAIIObjectsForParser.h Add a new error for unexpected semi-colon before closing delimiter. 2015-05-12 21:36:35 +00:00