llvm-project/clang/lib
Kaelyn Uhrain 9ea8f7e6c5 Improve the error message when a function overload candidate is rejected
because it expects a reference and receives a non-l-value.

For example, given:

  int foo(int &);
  template<int x> void b() { foo(x); }

clang will now print "expects an l-value for 1st argument" instead of
"no known conversion from 'int' to 'int &' for 1st argument". The change
in wording (and associated code to detect the case) was prompted by
comment #5 in PR3104, and should be the last bit of work needed for the
bug.

llvm-svn: 158691
2012-06-19 00:37:47 +00:00
..
ARCMigrate Insert a space if necessary when suggesting CFBridgingRetain/Release. 2012-06-07 01:10:31 +00:00
AST Explicitly build __builtin_va_list. 2012-06-16 03:34:49 +00:00
Analysis -Wuninitialized bugfix: when entering the scope of a variable with no 2012-06-16 23:34:14 +00:00
Basic Documentation cleanup: escaped # characters in Doxygen comments. 2012-06-17 03:22:59 +00:00
CodeGen [MSExtensions] Add support for __forceinline. 2012-06-18 07:00:48 +00:00
Driver [VS Toolchain] Correctly forward -l linker inputs to link.exe. 2012-06-18 16:56:04 +00:00
Edit [objcmt] When in ARC mode, also convert "[[.. alloc] init]" messages to literals, 2012-06-06 22:23:12 +00:00
Frontend Sink definition of IBOutlet, IBOutletCollection, and IBAction into 2012-06-19 00:37:39 +00:00
FrontendTool Support -frewrite-includes as an option while preprocessing. 2012-06-14 17:36:09 +00:00
Headers Headers/xopintrin.h: Try to fix r158492. Did you mean, mm256? 2012-06-15 13:37:44 +00:00
Lex Documentation cleanup: Use \brief for summaries, and escape # characters. 2012-06-17 03:41:54 +00:00
Parse Handle C++11 attribute namespaces automatically. 2012-06-18 16:13:52 +00:00
Rewrite Documentation cleanup: Escaped backslashes in Doxygen comments. 2012-06-15 22:33:08 +00:00
Sema Improve the error message when a function overload candidate is rejected 2012-06-19 00:37:47 +00:00
Serialization Explicitly build __builtin_va_list. 2012-06-16 03:34:49 +00:00
StaticAnalyzer [analyzer] Add a comment: why we treat array compound literals as lvalues. 2012-06-18 21:31:27 +00:00
Tooling Fixed a problem related to resolution of built-in headers in case a path of tool's binary contains sym-links. 2012-06-04 19:02:59 +00:00
CMakeLists.txt Remove the unused, unmaintained, incomplete 'Index' library. 2012-04-13 16:31:46 +00:00
Makefile Remove the unused, unmaintained, incomplete 'Index' library. 2012-04-13 16:31:46 +00:00