llvm-capstone/clang/test/Misc
Richard Trieu 15b66535ca When checking the template argument list, use a copy of that list for changes
and only update the orginal list on a valid arugment list.  When checking an
individual expression template argument, and conversions are required, update
the expression in the template argument.  Since template arguments are
speculatively checked, the copying of the template argument list prevents
updating the template arguments when the list does not match the template.

Additionally, clean up the integer checking code in the template diffing code.
The code performs unneccessary conversions from APSInt to APInt.

Fixes PR21758.

This essentially reverts r224770 to recommits r224667 and r224668 with extra
changes to prevent the template instantiation problems seen in PR22006.
A test to catch the discovered problem is also added.

llvm-svn: 226983
2015-01-24 02:48:32 +00:00
..
Inputs Serialized diagnostic severity levels should be stable. 2014-03-03 18:29:52 +00:00
ast-dump-arm-attr.c Prune CRLF. 2014-10-27 12:37:26 +00:00
ast-dump-attr.cpp Sema: Variable definitions cannot be __attribute__((alias)) 2015-01-19 09:00:28 +00:00
ast-dump-color.cpp ASTDumper: print whether a function is constexpr 2014-12-05 22:38:57 +00:00
ast-dump-comment.cpp Comment parsing: fix a crash when dumping comment ast for a function template 2014-03-19 14:03:47 +00:00
ast-dump-decl.c Add the location of Decls to ast dump. 2014-04-02 05:48:29 +00:00
ast-dump-decl.cpp Don't print 'NULL TYPE' when dumping a delegating constructor. 2014-09-12 21:20:53 +00:00
ast-dump-decl.m Fixes PR18762, stop the StmtPrinter for ObjCPropertyRefExpr from crashing on 2014-02-06 23:26:23 +00:00
ast-dump-decl.mm
ast-dump-invalid.cpp Remove an assert that's not true on invalid code. 2015-01-04 20:32:12 +00:00
ast-dump-lookups.cpp Modify behavior of -ast-dump-lookups: if -ast-dump is not also provided, dump 2014-08-11 22:11:07 +00:00
ast-dump-msp430-attr.c Prune CRLF. 2014-10-27 12:37:26 +00:00
ast-dump-stmt.c
ast-dump-stmt.cpp
ast-dump-stmt.m
ast-dump-templates.cpp When pretty-printing a declaration of a pack, put the ellipsis before the name 2014-07-23 03:17:06 +00:00
ast-dump-wchar.cpp
ast-print-objectivec.m Patch to wrap up '_' as separator in version numbers 2014-10-06 16:46:02 +00:00
ast-print-pragmas-xfail.cpp Adds a Pragma spelling for attributes to tablegen and makes use of it for loop 2014-06-13 17:57:25 +00:00
ast-print-pragmas.cpp Allow constant expressions in pragma loop hints. 2014-10-12 20:46:07 +00:00
attr-source-range.cpp Prune CRLF. 2014-10-27 12:37:26 +00:00
backend-optimization-failure.cpp Adjust test to handle fallout from r217102. 2014-09-03 23:20:58 +00:00
backend-stack-frame-diagnostics-fallback.cpp Implement -Wframe-larger-than backend diagnostic 2014-06-05 22:10:59 +00:00
backend-stack-frame-diagnostics.cpp Prevent link warnings due to -Wframe-larger-than= 2014-07-10 02:13:29 +00:00
caret-diags-macros.c
caret-diags-scratch-buffer.c
dev-fd-fs.c
diag-aka-types.cpp
diag-format.c Driver: bifurcate extended and basic MSC versioning 2014-07-16 03:13:50 +00:00
diag-line-wrapping.cpp
diag-macro-backtrace.c
diag-mapping2.c Improve specificity in the diag-mapping2.c test 2014-06-10 06:08:41 +00:00
diag-mapping.c
diag-presumed.c
diag-special-chars.c Attempt to fix test from r225423 to get build bots green. 2015-01-08 02:40:08 +00:00
diag-template-diffing-color.cpp
diag-template-diffing-cxx98.cpp
diag-template-diffing.cpp When checking the template argument list, use a copy of that list for changes 2015-01-24 02:48:32 +00:00
diag-trailing-null-bytes.cpp
diag-verify.cpp
diagnostic-crash.cpp
driver-verify.c Tweak test run line for readability 2014-01-17 03:35:04 +00:00
emit-html-insert.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
emit-html.c Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
error-limit-multiple-notes.cpp When sorting overload candidates, sort arity mismatches in ascending 2014-05-01 21:15:24 +00:00
error-limit.c
freebsd-arm-size_t.c
include-stack-for-note-flag.cpp
integer-literal-printing.cpp
interpreter.c Add speculative clang-interpreter test 2014-05-05 06:22:21 +00:00
languageOptsOpenCL.cl [OpenCL] Variables in the constant address space must be initialized. 2014-01-03 14:16:55 +00:00
macro-backtrace.c
message-length.c
permissions.cpp
predefines.c
remap-file.c
serialized-diags-driver.c Driver: Include driver diagnostics when we --serialize-diagnostics 2014-10-23 22:20:11 +00:00
serialized-diags-frontend.c
serialized-diags-no-category.c
serialized-diags-no-issue.c
serialized-diags-single-issue.c
serialized-diags-stable.c Re-fix previous commit. 2014-03-03 19:46:28 +00:00
serialized-diags.c
serialized-diags.h
serialized-diags.m Correctly handle reading locations from serialized diagnostics 2014-10-10 22:20:26 +00:00
show-diag-options.c
tabstop.c
unnecessary-elipses.cpp
unprintable.c
verify.c
warn-in-system-header.c
warn-in-system-header.h
warn-sysheader.cpp Split out header integration tests 2014-05-04 13:00:32 +00:00
warning-flags-enabled.c
warning-flags-tree.c
warning-flags.c Objective-C. Provide group name for warning 2014-12-18 19:41:11 +00:00
win32-macho.c Remove dev/null redirect and x86 backend requirement from new test. 2014-06-11 20:19:07 +00:00
working-directory.c
wrong-encoding2.c
wrong-encoding.c